Class: Apache::Hadoop::Hbase::Thrift2::TColumnValue
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::TColumnValue
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/hbase_types.rb
Overview
Represents a single cell and its value.
Constant Summary collapse
- FAMILY =
1
- QUALIFIER =
2
- VALUE =
3
- TIMESTAMP =
4
- TAGS =
5
- FIELDS =
{ FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family', :binary => true}, QUALIFIER => {:type => ::Thrift::Types::STRING, :name => 'qualifier', :binary => true}, VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}, TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :binary => true, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
90 |
# File 'lib/hbase/hbase_types.rb', line 90 def struct_fields; FIELDS; end |
#validate ⇒ Object
92 93 94 95 96 |
# File 'lib/hbase/hbase_types.rb', line 92 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field family is unset!') unless @family raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field qualifier is unset!') unless @qualifier raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value end |