Class: Hive2::Thrift::TExecuteStatementReq
- Inherits:
-
Object
- Object
- Hive2::Thrift::TExecuteStatementReq
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- SESSIONHANDLE =
1
- STATEMENT =
2
- CONFOVERLAY =
3
- RUNASYNC =
4
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::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} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1141 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1141 def struct_fields; FIELDS; end |
#validate ⇒ Object
1143 1144 1145 1146 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1143 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 |