Class: Impala::Protocol::THostPort
- Inherits:
-
Object
- Object
- Impala::Protocol::THostPort
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/types_types.rb
Constant Summary collapse
- HOSTNAME =
1
- IPADDRESS =
2
- PORT =
3
- FIELDS =
{ HOSTNAME => { :type => ::Thrift::Types::STRING, :name => 'hostname' }, IPADDRESS => { :type => ::Thrift::Types::STRING, :name => 'ipaddress' }, PORT => { :type => ::Thrift::Types::I32, :name => 'port' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
54 |
# File 'lib/impala/protocol/types_types.rb', line 54 def struct_fields; FIELDS; end |
#validate ⇒ Object
56 57 58 59 60 |
# File 'lib/impala/protocol/types_types.rb', line 56 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hostname is unset!') unless @hostname raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ipaddress is unset!') unless @ipaddress raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field port is unset!') unless @port end |