Class: Apache::Hadoop::Hbase::Thrift2::THRegionInfo
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::THRegionInfo
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/hbase_types.rb
Constant Summary collapse
- REGIONID =
1
- TABLENAME =
2
- STARTKEY =
3
- ENDKEY =
4
- OFFLINE =
5
- SPLIT =
6
- REPLICAID =
7
- FIELDS =
{ REGIONID => {:type => ::Thrift::Types::I64, :name => 'regionId'}, TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}, STARTKEY => {:type => ::Thrift::Types::STRING, :name => 'startKey', :binary => true, :optional => true}, ENDKEY => {:type => ::Thrift::Types::STRING, :name => 'endKey', :binary => true, :optional => true}, OFFLINE => {:type => ::Thrift::Types::BOOL, :name => 'offline', :optional => true}, SPLIT => {:type => ::Thrift::Types::BOOL, :name => 'split', :optional => true}, REPLICAID => {:type => ::Thrift::Types::I32, :name => 'replicaId', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
488 |
# File 'lib/hbase/hbase_types.rb', line 488 def struct_fields; FIELDS; end |
#validate ⇒ Object
490 491 492 493 |
# File 'lib/hbase/hbase_types.rb', line 490 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field regionId is unset!') unless @regionId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tableName is unset!') unless @tableName end |