Class: Impala::Protocol::Hive::TGetSchemasReq

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/cli_service_types.rb

Constant Summary collapse

SESSIONHANDLE =
1
CATALOGNAME =
2
SCHEMANAME =
3
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Impala::Protocol::Hive::TSessionHandle},
  CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
  SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1028
# File 'lib/impala/protocol/cli_service_types.rb', line 1028

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


1030
1031
1032
# File 'lib/impala/protocol/cli_service_types.rb', line 1030

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
end