Class: Impala::Protocol::TPlanFragmentDestination

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/impala_internal_service_types.rb

Constant Summary collapse

FRAGMENT_INSTANCE_ID =
1
SERVER =
2
FIELDS =
{
FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId },
SERVER => { :type => ::Thrift::Types::STRUCT, :name => 'server', :class => Impala::Protocol::THostPort }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



103
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 103

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


105
106
107
108
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 105

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