LongHashedRelation
LongHashedRelation
is a HashedRelation that is used when HashedRelation
is requested for a concrete HashedRelation instance when the single key is of type long.
LongHashedRelation
is also a Java Externalizable
, i.e. when persisted, only the identity is written in the serialization stream and it is the responsibility of the class to save and restore the contents of its instances.
LongHashedRelation
is created when:
-
HashedRelation
is requested for a concrete HashedRelation (and apply factory method is used) -
LongHashedRelation
is requested for a read-only copy (whenBroadcastHashJoinExec
is requested to execute)
writeExternal
Method
1 2 3 4 5 |
writeExternal(out: ObjectOutput): Unit |
Note
|
writeExternal is part of Java’s Externalizable Contract to…FIXME.
|
writeExternal
…FIXME
Note
|
writeExternal is used when…FIXME
|
readExternal
Method
1 2 3 4 5 |
readExternal(in: ObjectInput): Unit |
Note
|
readExternal is part of Java’s Externalizable Contract to…FIXME.
|
readExternal
…FIXME
Note
|
readExternal is used when…FIXME
|
Creating LongHashedRelation Instance
LongHashedRelation
takes the following when created:
LongHashedRelation
initializes the internal registries and counters.
Creating Read-Only Copy of LongHashedRelation — asReadOnlyCopy
Method
1 2 3 4 5 |
asReadOnlyCopy(): LongHashedRelation |
Note
|
asReadOnlyCopy is part of HashedRelation Contract to…FIXME.
|
asReadOnlyCopy
…FIXME
Getting Value Row for Given Key — getValue
Method
1 2 3 4 5 |
getValue(key: InternalRow): InternalRow |
Note
|
getValue is part of HashedRelation Contract to give the value internal row for a given key.
|
getValue
checks if the input key
is null at 0
position and if so gives null
. Otherwise, getValue
takes the long value at position 0
and gets the value.
Creating LongHashedRelation Instance — apply
Factory Method
1 2 3 4 5 6 7 8 9 |
apply( input: Iterator[InternalRow], key: Seq[Expression], sizeEstimate: Int, taskMemoryManager: TaskMemoryManager): LongHashedRelation |
apply
…FIXME
Note
|
apply is used exclusively when HashedRelation is requested for a concrete HashedRelation.
|