public abstract class LongHybridHashTable extends BaseHybridHashTable
See LongHashPartition.
TODO add min max long filter and bloomFilter to spilled partition.
allocatedFloatingNum, availableMemory, buildRowCount, buildSpillRetBufferNumbers, buildSpillReturnBuffers, closed, compressionBlockSize, compressionCodecFactory, compressionEnable, currentEnumerator, currentRecursionDepth, currentSpilledBuildSide, currentSpilledProbeSide, initPartitionFanOut, ioManager, LOG, MAX_NUM_PARTITIONS, MAX_RECURSION_DEPTH, numSpillFiles, reservedNumBuffers, segmentSize, segmentSizeBits, segmentSizeMask, spillInBytes, tryDistinctBuildRow| Constructor and Description |
|---|
LongHybridHashTable(org.apache.flink.configuration.Configuration conf,
Object owner,
BinaryRowSerializer buildSideSerializer,
BinaryRowSerializer probeSideSerializer,
org.apache.flink.runtime.memory.MemoryManager memManager,
long reservedMemorySize,
long preferredMemorySize,
long perRequestMemorySize,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int avgRecordLen,
long buildRowCount) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearPartitions() |
void |
close()
Closes the hash table.
|
int |
compressionBlockSize() |
BlockCompressionFactory |
compressionCodecFactory() |
boolean |
compressionEnable() |
void |
endBuild() |
void |
free() |
abstract long |
getBuildLongKey(BaseRow row)
For code gen get build side long key.
|
LongHashPartition.MatchIterator |
getBuildSideIterator() |
BaseRow |
getCurrentProbeRow() |
abstract long |
getProbeLongKey(BaseRow row)
For code gen get probe side long key.
|
boolean |
nextMatching() |
abstract BinaryRow |
probeToBinary(BaseRow row)
For code gen probe side to BinaryRow.
|
void |
putBuildRow(BinaryRow row) |
int |
spillPartition() |
boolean |
tryProbe(BaseRow record) |
createInputView, ensureNumBuffersReturned, free, freeCurrent, getFreedMemory, getNextBuffer, getNextBuffers, getNotNullNextBuffer, getNumSpillFiles, getSpillInBytes, getUsedMemoryInBytes, hash, maxInitBufferOfBucketArea, maxNumPartition, nextSegment, pageSize, readAllBuffers, remainBuffers, returnAllpublic LongHybridHashTable(org.apache.flink.configuration.Configuration conf,
Object owner,
BinaryRowSerializer buildSideSerializer,
BinaryRowSerializer probeSideSerializer,
org.apache.flink.runtime.memory.MemoryManager memManager,
long reservedMemorySize,
long preferredMemorySize,
long perRequestMemorySize,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int avgRecordLen,
long buildRowCount)
public void putBuildRow(BinaryRow row) throws IOException
IOExceptionpublic void endBuild()
throws IOException
IOExceptionpublic boolean tryProbe(BaseRow record) throws IOException
IOExceptionpublic boolean nextMatching()
throws IOException
IOExceptionpublic BaseRow getCurrentProbeRow()
public LongHashPartition.MatchIterator getBuildSideIterator()
public void close()
BaseHybridHashTableclose in class BaseHybridHashTablepublic void free()
free in class BaseHybridHashTablepublic abstract long getBuildLongKey(BaseRow row)
public abstract long getProbeLongKey(BaseRow row)
public abstract BinaryRow probeToBinary(BaseRow row)
public int spillPartition()
throws IOException
spillPartition in class BaseHybridHashTableIOExceptionprotected void clearPartitions()
clearPartitions in class BaseHybridHashTablepublic boolean compressionEnable()
public BlockCompressionFactory compressionCodecFactory()
public int compressionBlockSize()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.