Class: Apache::Hadoop::Hbase::Thrift2::THRegionLocation
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::THRegionLocation
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/hbase_types.rb
Constant Summary collapse
- SERVERNAME =
1- REGIONINFO =
2- FIELDS =
{ SERVERNAME => {:type => ::Thrift::Types::STRUCT, :name => 'serverName', :class => ::Apache::Hadoop::Hbase::Thrift2::TServerName}, REGIONINFO => {:type => ::Thrift::Types::STRUCT, :name => 'regionInfo', :class => ::Apache::Hadoop::Hbase::Thrift2::THRegionInfo} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
529 |
# File 'lib/hbase/hbase_types.rb', line 529 def struct_fields; FIELDS; end |
#validate ⇒ Object
531 532 533 534 |
# File 'lib/hbase/hbase_types.rb', line 531 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serverName is unset!') unless @serverName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field regionInfo is unset!') unless @regionInfo end |