Class: Apache::Hadoop::Hbase::Thrift::TCell

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/rbase/thrift/hbase_types.rb

Overview

TCell - Used to transport a cell value (byte[]) and the timestamp it was stored with together as a result for get and getRow methods. This promotes the timestamp of a cell to a first-class value, making it easy to take note of temporal data. Cell is used all the way from HStore up to HTable.

Constant Summary collapse

VALUE =
1
TIMESTAMP =
2
FIELDS =
{
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



26
# File 'lib/rbase/thrift/hbase_types.rb', line 26

def struct_fields; FIELDS; end

#validateObject



28
29
# File 'lib/rbase/thrift/hbase_types.rb', line 28

def validate
end