Class: Apache::Hadoop::Hbase::Thrift2::TServerName

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/hbase/hbase_types.rb

Constant Summary collapse

HOSTNAME =
1
PORT =
2
STARTCODE =
3
FIELDS =
{
  HOSTNAME => {:type => ::Thrift::Types::STRING, :name => 'hostName'},
  PORT => {:type => ::Thrift::Types::I32, :name => 'port', :optional => true},
  STARTCODE => {:type => ::Thrift::Types::I64, :name => 'startCode', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



510
# File 'lib/hbase/hbase_types.rb', line 510

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


512
513
514
# File 'lib/hbase/hbase_types.rb', line 512

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hostName is unset!') unless @hostName
end