class Impala::Protocol::TStatus

Constants

ERROR_MSGS
FIELDS
STATUS_CODE

Public Instance Methods

struct_fields() click to toggle source
# File lib/impala/protocol/status_types.rb, line 33
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/impala/protocol/status_types.rb, line 35
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status_code is unset!') unless @status_code
  unless @status_code.nil? || ::Impala::Protocol::TStatusCode::VALID_VALUES.include?(@status_code)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status_code!')
  end
end