Class: Apache::Hadoop::Hbase::Thrift2::TIncrement
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::TIncrement
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/hbase_types.rb
Overview
You can specify how this Increment should be written to the write-ahead Log (WAL) by changing the durability. If you don’t provide durability, it defaults to column family’s default setting for durability.
Constant Summary collapse
- ROW =
1- COLUMNS =
2- ATTRIBUTES =
4- DURABILITY =
5- CELLVISIBILITY =
6- FIELDS =
{ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}, COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift2::TColumnIncrement}}, ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true}, DURABILITY => {:type => ::Thrift::Types::I32, :name => 'durability', :optional => true, :enum_class => ::Apache::Hadoop::Hbase::Thrift2::TDurability}, CELLVISIBILITY => {:type => ::Thrift::Types::STRUCT, :name => 'cellVisibility', :class => ::Apache::Hadoop::Hbase::Thrift2::TCellVisibility, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
337 |
# File 'lib/hbase/hbase_types.rb', line 337 def struct_fields; FIELDS; end |
#validate ⇒ Object
339 340 341 342 343 344 345 |
# File 'lib/hbase/hbase_types.rb', line 339 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field row is unset!') unless @row raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columns is unset!') unless @columns unless @durability.nil? || ::Apache::Hadoop::Hbase::Thrift2::TDurability::VALID_VALUES.include?(@durability) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field durability!') end end |