Class: Impala::Protocol::TNetworkAddress
- Inherits:
-
Object
- Object
- Impala::Protocol::TNetworkAddress
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/types_types.rb
Constant Summary collapse
- HOSTNAME =
1- PORT =
2- FIELDS =
{ HOSTNAME => {:type => ::Thrift::Types::STRING, :name => 'hostname'}, PORT => {:type => ::Thrift::Types::I32, :name => 'port'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
182 |
# File 'lib/impala/protocol/types_types.rb', line 182 def struct_fields; FIELDS; end |
#validate ⇒ Object
184 185 186 187 |
# File 'lib/impala/protocol/types_types.rb', line 184 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 port is unset!') unless @port end |