Class HashSetOpRecordBatch
java.lang.Object
org.apache.drill.exec.record.AbstractRecordBatch<T>
org.apache.drill.exec.record.AbstractBinaryRecordBatch<T>
org.apache.drill.exec.physical.impl.join.AbstractHashBinaryRecordBatch<SetOp>
org.apache.drill.exec.physical.impl.setop.HashSetOpRecordBatch
- All Implemented Interfaces:
AutoCloseable
,Iterable<VectorWrapper<?>>
,CloseableRecordBatch
,RecordBatch
,VectorAccessible
Implements the runtime execution for the Hash-SetOp operator supporting EXCEPT,
EXCEPT ALL, INTERSECT, and INTERSECT ALL
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.physical.impl.join.AbstractHashBinaryRecordBatch
AbstractHashBinaryRecordBatch.Metric, AbstractHashBinaryRecordBatch.SpilledPartition, AbstractHashBinaryRecordBatch.Updater
Nested classes/interfaces inherited from class org.apache.drill.exec.record.AbstractRecordBatch
AbstractRecordBatch.BatchState
Nested classes/interfaces inherited from interface org.apache.drill.exec.record.RecordBatch
RecordBatch.IterOutcome
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.join.AbstractHashBinaryRecordBatch
allocator, baseHashTable, bloomFilter2buildId, bloomFilterDef2buildId, bloomFilters, bloomFiltersGenerated, buildBatch, buildComplete, buildJoinColumns, buildSchema, buildSideIsEmpty, canSpill, enableRuntimeFilter, firstOutputBatch, hash64, isRowKeyJoin, joinIsLeftOrFull, joinIsRightOrFull, logger, maxBatchesInMemory, numPartitions, originalPartition, outputRecords, partitions, prefetchedBuild, prefetchedProbe, probe, probeBatch, probeFields, probeSchema, probeSideIsEmpty, RECORDS_PER_BATCH, rightExpr, rightHVColPosition, rkJoinState, runtimeFilterDef, runtimeFilterReporter, semiJoin, skipHashTableBuild, spilledInners, spilledState, spillSet, wasKilled
Fields inherited from class org.apache.drill.exec.record.AbstractBinaryRecordBatch
batchMemoryManager, left, LEFT_INDEX, leftUpstream, numInputs, right, RIGHT_INDEX, rightUpstream
Fields inherited from class org.apache.drill.exec.record.AbstractRecordBatch
batchStatsContext, container, context, oContext, state, stats, unionTypeEnabled
Fields inherited from interface org.apache.drill.exec.record.RecordBatch
MAX_BATCH_ROW_COUNT
-
Constructor Summary
ConstructorDescriptionHashSetOpRecordBatch
(SetOp popConfig, FragmentContext context, RecordBatch left, RecordBatch right) The constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected HashTableConfig
void
dump()
Perform dump of this batch's state to logs.void
Methods inherited from class org.apache.drill.exec.physical.impl.join.AbstractHashBinaryRecordBatch
buildSchema, cancelIncoming, close, executeBuildPhase, getCalculatorImpl, getRecordCount, innerNext, isSpilledInner, makeDebugString, updateMetrics
Methods inherited from class org.apache.drill.exec.record.AbstractBinaryRecordBatch
checkForEarlyFinish, getBatchMemoryManager, prefetchFirstBatchFromBothSides, updateBatchMemoryManagerStats, verifyOutcomeToSetBatchState
Methods inherited from class org.apache.drill.exec.record.AbstractRecordBatch
cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HashSetOpRecordBatch
public HashSetOpRecordBatch(SetOp popConfig, FragmentContext context, RecordBatch left, RecordBatch right) throws OutOfMemoryException The constructor- Parameters:
popConfig
- SetOpcontext
- FragmentContextleft
- probe/outer side incoming inputright
- build/inner side incoming input- Throws:
OutOfMemoryException
- out of memory exception
-
-
Method Details
-
buildHashTableConfig
- Specified by:
buildHashTableConfig
in classAbstractHashBinaryRecordBatch<SetOp>
-
createProbe
- Specified by:
createProbe
in classAbstractHashBinaryRecordBatch<SetOp>
-
setupProbe
- Specified by:
setupProbe
in classAbstractHashBinaryRecordBatch<SetOp>
- Throws:
SchemaChangeException
-
dump
public void dump()Description copied from interface:RecordBatch
Perform dump of this batch's state to logs.
-