Class: Apache::Hadoop::Hbase::Thrift2::TRowMutations
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::TRowMutations
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/hbase_types.rb
Overview
A TRowMutations object is used to apply a number of Mutations to a single row.
Constant Summary collapse
- ROW =
1- MUTATIONS =
2- FIELDS =
{ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}, MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift2::TMutation}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
458 |
# File 'lib/hbase/hbase_types.rb', line 458 def struct_fields; FIELDS; end |
#validate ⇒ Object
460 461 462 463 |
# File 'lib/hbase/hbase_types.rb', line 460 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 mutations is unset!') unless @mutations end |