Class: Hexspace::TFetchResultsReq

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

Constant Summary collapse

OPERATIONHANDLE =
1
ORIENTATION =
2
MAXROWS =
3
FETCHTYPE =
4
FIELDS =
{
  OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle},
  ORIENTATION => {:type => ::Thrift::Types::I32, :name => 'orientation', :default =>       0, :enum_class => ::Hexspace::TFetchOrientation},
  MAXROWS => {:type => ::Thrift::Types::I64, :name => 'maxRows'},
  FETCHTYPE => {:type => ::Thrift::Types::I16, :name => 'fetchType', :default => 0, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1890
# File 'lib/hexspace/tcli_service_types.rb', line 1890

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


1892
1893
1894
1895
1896
1897
1898
1899
# File 'lib/hexspace/tcli_service_types.rb', line 1892

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