public class LongHashPartition
extends org.apache.flink.runtime.memory.AbstractPagedInputView
implements org.apache.flink.core.memory.SeekableDataInputView
LongHybridHashTable.
The layout of the buckets inside a memory segment is as follows:
Hash mode: +----------------------------- Bucket area ---------------------------- | long key (8 bytes) | address (8 bytes) | | long key (8 bytes) | address (8 bytes) | | long key (8 bytes) | address (8 bytes) | | ... +----------------------------- Data area -------------------------- | size & address of next row with the same key (8bytes) | binary row | | size & address of next row with the same key (8bytes) | binary row | | size & address of next row with the same key (8bytes) | binary row | | ...
Dense mode: +----------------------------- Bucket area ---------------------------- | address1 (8 bytes) | address2 (8 bytes) | address3 (8 bytes) | ... Directly addressed by the index of the corresponding array of key values.
| Modifier and Type | Class and Description |
|---|---|
class |
LongHashPartition.MatchIterator
Iterator for probe match.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deserializeFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.io.disk.iomanager.ChannelReaderInputView inView,
BinaryRowDataSerializer buildSideSerializer) |
LongHashPartition.MatchIterator |
get(long key,
int hashCode)
Returns an iterator for all the values for the given key, or null if no value found.
|
org.apache.flink.core.memory.MemorySegment[] |
getBuckets() |
protected int |
getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment) |
protected org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current) |
void |
serializeToPages(org.apache.flink.table.data.binary.BinaryRowData row) |
void |
setReadPosition(long pointer) |
advance, clear, doAdvance, getCurrentPositionInSegment, getCurrentSegment, getCurrentSegmentLimit, getHeaderLength, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seekInput, skipBytes, skipBytesToReadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, skipBytesToReadreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytespublic LongHashPartition.MatchIterator get(long key, int hashCode)
public org.apache.flink.core.memory.MemorySegment[] getBuckets()
public void setReadPosition(long pointer)
setReadPosition in interface org.apache.flink.core.memory.SeekableDataInputViewprotected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current)
throws IOException
nextSegment in class org.apache.flink.runtime.memory.AbstractPagedInputViewIOExceptionprotected int getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment)
getLimitForSegment in class org.apache.flink.runtime.memory.AbstractPagedInputViewpublic void serializeToPages(org.apache.flink.table.data.binary.BinaryRowData row)
throws IOException
IOExceptionpublic static void deserializeFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.io.disk.iomanager.ChannelReaderInputView inView,
BinaryRowDataSerializer buildSideSerializer)
throws IOException
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.