Class: Impala::Protocol::TTransmitDataParams

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

Constant Summary collapse

PROTOCOL_VERSION =
1
DEST_FRAGMENT_INSTANCE_ID =
2
DEST_NODE_ID =
4
ROW_BATCH =
5
EOS =
6
FIELDS =
{
PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion },
DEST_FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'dest_fragment_instance_id', :class => Impala::Protocol::TUniqueId, :optional => true },
DEST_NODE_ID => { :type => ::Thrift::Types::I32, :name => 'dest_node_id', :optional => true },
ROW_BATCH => { :type => ::Thrift::Types::STRUCT, :name => 'row_batch', :class => Impala::Protocol::TRowBatch, :optional => true },
EOS => { :type => ::Thrift::Types::BOOL, :name => 'eos', :optional => true }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


335
336
337
338
339
340
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 335

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
  unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
  end
end