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.
| 限定符和类型 | 类和说明 |
|---|---|
class |
LongHashPartition.MatchIterator
Iterator for probe match.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, waitreadBoolean, 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 在接口中 org.apache.flink.core.memory.SeekableDataInputViewprotected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current)
throws IOException
nextSegment 在类中 org.apache.flink.runtime.memory.AbstractPagedInputViewIOExceptionprotected int getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment)
getLimitForSegment 在类中 org.apache.flink.runtime.memory.AbstractPagedInputViewpublic void serializeToPages(org.apache.flink.table.data.binary.BinaryRowData row)
throws IOException
IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.