Class: Hive2::Thrift::TOperationHandle

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

Constant Summary collapse

OPERATIONID =
1
OPERATIONTYPE =
2
HASRESULTSET =
3
MODIFIEDROWCOUNT =
4
FIELDS =
{
  OPERATIONID => {:type => ::Thrift::Types::STRUCT, :name => 'operationId', :class => ::Hive2::Thrift::THandleIdentifier},
  OPERATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'operationType', :enum_class => ::Hive2::Thrift::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_fieldsObject


930
# File 'lib/thrift/t_c_l_i_service_types.rb', line 930

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

932
933
934
935
936
937
938
939
# File 'lib/thrift/t_c_l_i_service_types.rb', line 932

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? || ::Hive2::Thrift::TOperationType::VALID_VALUES.include?(@operationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!')
  end
end