Class: Hexspace::TExecuteStatementReq

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb

Constant Summary collapse

SESSIONHANDLE =
1
STATEMENT =
2
CONFOVERLAY =
3
RUNASYNC =
4
QUERYTIMEOUT =
5
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::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},
  RUNASYNC => {:type => ::Thrift::Types::BOOL, :name => 'runAsync', :default => false, :optional => true},
  QUERYTIMEOUT => {:type => ::Thrift::Types::I64, :name => 'queryTimeout', :default => 0, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1317
# File 'lib/hexspace/tcli_service_types.rb', line 1317

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


1319
1320
1321
1322
# File 'lib/hexspace/tcli_service_types.rb', line 1319

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