Class: Apache::Hadoop::Hbase::Thrift2::TColumn

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

Overview

in a HBase table by column family and optionally a column qualifier and timestamp

Constant Summary collapse

FAMILY =
1
QUALIFIER =
2
TIMESTAMP =
3
FIELDS =
{
  FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family', :binary => true},
  QUALIFIER => {:type => ::Thrift::Types::STRING, :name => 'qualifier', :binary => true, :optional => true},
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



64
# File 'lib/hbase/hbase_types.rb', line 64

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


66
67
68
# File 'lib/hbase/hbase_types.rb', line 66

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