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

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/massive_record/adapters/thrift/hbase/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



25
# File 'lib/massive_record/adapters/thrift/hbase/hbase_types.rb', line 25

def struct_fields; FIELDS; end

#validateObject



27
28
# File 'lib/massive_record/adapters/thrift/hbase/hbase_types.rb', line 27

def validate
end