Class: Impala::Protocol::TClientRequest
- Inherits:
-
Object
- Object
- Impala::Protocol::TClientRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/frontend_types.rb
Constant Summary collapse
- STMT =
1
- QUERYOPTIONS =
2
- SESSIONSTATE =
3
- FIELDS =
{ STMT => { :type => ::Thrift::Types::STRING, :name => 'stmt' }, QUERYOPTIONS => { :type => ::Thrift::Types::STRUCT, :name => 'queryOptions', :class => Impala::Protocol::TQueryOptions }, SESSIONSTATE => { :type => ::Thrift::Types::STRUCT, :name => 'sessionState', :class => Impala::Protocol::TSessionState } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
179 |
# File 'lib/impala/protocol/frontend_types.rb', line 179 def struct_fields; FIELDS; end |
#validate ⇒ Object
181 182 183 184 185 |
# File 'lib/impala/protocol/frontend_types.rb', line 181 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field stmt is unset!') unless @stmt raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field queryOptions is unset!') unless @queryOptions raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionState is unset!') unless @sessionState end |