Class: Hive2::Thrift::TFetchResultsReq

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

OPERATIONHANDLE =
1
ORIENTATION =
2
MAXROWS =
3
FIELDS =
{
  OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hive2::Thrift::TOperationHandle},
  ORIENTATION => {:type => ::Thrift::Types::I32, :name => 'orientation', :default =>         0, :enum_class => ::Hive2::Thrift::TFetchOrientation},
  MAXROWS => {:type => ::Thrift::Types::I64, :name => 'maxRows'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1612
1613
1614
1615
1616
1617
1618
1619
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1612

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