Class: Impala::Protocol::Hive::TFetchResultsReq
- Inherits:
-
Object
- Object
- Impala::Protocol::Hive::TFetchResultsReq
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_service_types.rb
Constant Summary collapse
- OPERATIONHANDLE =
1
- ORIENTATION =
2
- MAXROWS =
3
- FIELDS =
{ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Impala::Protocol::Hive::TOperationHandle}, ORIENTATION => {:type => ::Thrift::Types::I32, :name => 'orientation', :default => 0, :enum_class => ::Impala::Protocol::Hive::TFetchOrientation}, MAXROWS => {:type => ::Thrift::Types::I64, :name => 'maxRows'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1378 |
# File 'lib/impala/protocol/cli_service_types.rb', line 1378 def struct_fields; FIELDS; end |
#validate ⇒ Object
1380 1381 1382 1383 1384 1385 1386 1387 |
# File 'lib/impala/protocol/cli_service_types.rb', line 1380 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field orientation is unset!') unless @orientation raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field maxRows is unset!') unless @maxRows unless @orientation.nil? || ::Impala::Protocol::Hive::TFetchOrientation::VALID_VALUES.include?(@orientation) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field orientation!') end end |