Class: HbaseClient::Thrift::Hbase::CheckAndPut_args

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

Constant Summary collapse

TABLENAME =
1
ROW =
2
COLUMN =
3
VALUE =
5
MPUT =
6
ATTRIBUTES =
7
FIELDS =
{
  # name of table
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
  # row key
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
  # column name
  COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
  # the expected value for the column parameter, if not
# provided the check is for the non-existence of the
# column in question
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
  # mutation for the put
  MPUT => {:type => ::Thrift::Types::STRUCT, :name => 'mput', :class => ::HbaseClient::Thrift::Mutation},
  # Mutation attributes
  ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3080
# File 'lib/hbase-client/thrift/hbase.rb', line 3080

def struct_fields; FIELDS; end

#validateObject



3082
3083
# File 'lib/hbase-client/thrift/hbase.rb', line 3082

def validate
end