public abstract class LongHybridHashTable extends BaseHybridHashTable
See LongHashPartition.
TODO add min max long filter and bloomFilter to spilled partition.
buildRowCount, buildSpillRetBufferNumbers, buildSpillReturnBuffers, closed, compressionBlockSize, compressionCodecFactory, compressionEnable, currentEnumerator, currentRecursionDepth, currentSpilledBuildSide, currentSpilledProbeSide, initPartitionFanOut, internalPool, ioManager, LOG, MAX_NUM_PARTITIONS, MAX_RECURSION_DEPTH, numSpillFiles, segmentSize, segmentSizeBits, segmentSizeMask, spillInBytes, totalNumBuffers, tryDistinctBuildRow| 构造器和说明 |
|---|
LongHybridHashTable(org.apache.flink.configuration.Configuration conf,
Object owner,
BinaryRowDataSerializer buildSideSerializer,
BinaryRowDataSerializer probeSideSerializer,
org.apache.flink.runtime.memory.MemoryManager memManager,
long reservedMemorySize,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int avgRecordLen,
long buildRowCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
clearPartitions() |
void |
close()
Closes the hash table.
|
int |
compressionBlockSize() |
org.apache.flink.runtime.io.compression.BlockCompressionFactory |
compressionCodecFactory() |
boolean |
compressionEnable() |
void |
endBuild() |
void |
free() |
abstract long |
getBuildLongKey(org.apache.flink.table.data.RowData row)
For code gen get build side long key.
|
LongHashPartition.MatchIterator |
getBuildSideIterator() |
org.apache.flink.table.data.RowData |
getCurrentProbeRow() |
abstract long |
getProbeLongKey(org.apache.flink.table.data.RowData row)
For code gen get probe side long key.
|
boolean |
nextMatching() |
abstract org.apache.flink.table.data.binary.BinaryRowData |
probeToBinary(org.apache.flink.table.data.RowData row)
For code gen probe side to BinaryRowData.
|
void |
putBuildRow(org.apache.flink.table.data.binary.BinaryRowData row) |
int |
spillPartition() |
boolean |
tryProbe(org.apache.flink.table.data.RowData record) |
createInputView, ensureNumBuffersReturned, freeCurrent, freePages, getNextBuffer, getNextBuffers, getNotNullNextBuffer, getNumSpillFiles, getSpillInBytes, getUsedMemoryInBytes, hash, maxInitBufferOfBucketArea, maxNumPartition, nextSegment, pageSize, readAllBuffers, remainBuffers, returnAll, returnPagepublic LongHybridHashTable(org.apache.flink.configuration.Configuration conf,
Object owner,
BinaryRowDataSerializer buildSideSerializer,
BinaryRowDataSerializer probeSideSerializer,
org.apache.flink.runtime.memory.MemoryManager memManager,
long reservedMemorySize,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int avgRecordLen,
long buildRowCount)
public void putBuildRow(org.apache.flink.table.data.binary.BinaryRowData row)
throws IOException
IOExceptionpublic void endBuild()
throws IOException
IOExceptionpublic boolean tryProbe(org.apache.flink.table.data.RowData record)
throws IOException
IOExceptionpublic boolean nextMatching()
throws IOException
IOExceptionpublic org.apache.flink.table.data.RowData getCurrentProbeRow()
public LongHashPartition.MatchIterator getBuildSideIterator()
public void close()
BaseHybridHashTableclose 在类中 BaseHybridHashTablepublic void free()
free 在类中 BaseHybridHashTablepublic abstract long getBuildLongKey(org.apache.flink.table.data.RowData row)
public abstract long getProbeLongKey(org.apache.flink.table.data.RowData row)
public abstract org.apache.flink.table.data.binary.BinaryRowData probeToBinary(org.apache.flink.table.data.RowData row)
public int spillPartition()
throws IOException
spillPartition 在类中 BaseHybridHashTableIOExceptionprotected void clearPartitions()
clearPartitions 在类中 BaseHybridHashTablepublic boolean compressionEnable()
public org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory()
public int compressionBlockSize()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.