Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::PutMultiple_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
TPUTS =
2
FIELDS =
{
  # the table to put data in
  TABLE => {:type => ::Thrift::Types::STRING, :name => 'table', :binary => true},
  # a list of TPuts to commit
  TPUTS => {:type => ::Thrift::Types::LIST, :name => 'tputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift2::TPut}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


744
745
746
747
# File 'lib/hbase/t_h_base_service.rb', line 744

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 tputs is unset!') unless @tputs
end