Class: Impala::Protocol::Hive::TOperationHandle
- Inherits:
-
Object
- Object
- Impala::Protocol::Hive::TOperationHandle
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_service_types.rb
Constant Summary collapse
- OPERATIONID =
1
- OPERATIONTYPE =
2
- HASRESULTSET =
3
- MODIFIEDROWCOUNT =
4
- FIELDS =
{ OPERATIONID => {:type => ::Thrift::Types::STRUCT, :name => 'operationId', :class => ::Impala::Protocol::Hive::THandleIdentifier}, OPERATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'operationType', :enum_class => ::Impala::Protocol::Hive::TOperationType}, HASRESULTSET => {:type => ::Thrift::Types::BOOL, :name => 'hasResultSet'}, MODIFIEDROWCOUNT => {:type => ::Thrift::Types::DOUBLE, :name => 'modifiedRowCount', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
706 |
# File 'lib/impala/protocol/cli_service_types.rb', line 706 def struct_fields; FIELDS; end |
#validate ⇒ Object
708 709 710 711 712 713 714 715 |
# File 'lib/impala/protocol/cli_service_types.rb', line 708 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationId is unset!') unless @operationId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationType is unset!') unless @operationType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasResultSet is unset!') if @hasResultSet.nil? unless @operationType.nil? || ::Impala::Protocol::Hive::TOperationType::VALID_VALUES.include?(@operationType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!') end end |