Class: Impala::Protocol::Hive::TExecuteStatementReq

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
STATEMENT =
2
CONFOVERLAY =
3
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Impala::Protocol::Hive::TSessionHandle},
  STATEMENT => {:type => ::Thrift::Types::STRING, :name => 'statement'},
  CONFOVERLAY => {:type => ::Thrift::Types::MAP, :name => 'confOverlay', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


917
918
919
920
# File 'lib/impala/protocol/cli_service_types.rb', line 917

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