Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::GetMultiple_args

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

Constant Summary collapse

TABLE =
1
TGETS =
2
FIELDS =
{
  # the table to get from
  TABLE => {:type => ::Thrift::Types::STRING, :name => 'table', :binary => true},
  # a list of TGets to fetch, the Result list
# will have the Results at corresponding positions
# or null if there was an error
  TGETS => {:type => ::Thrift::Types::LIST, :name => 'tgets', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift2::TGet}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



607
# File 'lib/hbase/t_h_base_service.rb', line 607

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


609
610
611
612
# File 'lib/hbase/t_h_base_service.rb', line 609

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table is unset!') unless @table
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tgets is unset!') unless @tgets
end