class Impala::Protocol::Hive::TOpenSessionResp

Constants

CONFIGURATION
FIELDS
SERVERPROTOCOLVERSION
SESSIONHANDLE
STATUS

Public Instance Methods

struct_fields() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 760
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 762
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serverProtocolVersion is unset!') unless @serverProtocolVersion
  unless @serverProtocolVersion.nil? || ::Impala::Protocol::Hive::TProtocolVersion::VALID_VALUES.include?(@serverProtocolVersion)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field serverProtocolVersion!')
  end
end