Class ExecOpBinaryUnion
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BinaryExecutableOpBase
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.ExecOpBinaryUnion
- All Implemented Interfaces:
StatsProvider,BinaryExecutableOp,ExecutableOperator
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BinaryExecutableOpBase
timeAtCurrentLeftProcStart, timeAtCurrentRightProcStartFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
collectExceptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_processBlockFromChild1(IntermediateResultBlock input, IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to process the given input block coming from the first operand and send the produced result elements (if any) to the given sink.protected void_processBlockFromChild2(IntermediateResultBlock input, IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to process the given input block coming from the second operand and send the produced result elements (if any) to the given sink.protected void_wrapUpForChild1(IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to finish up any processing related to the input coming from the first operand and send the remaining result elements (if any) to the given sink.protected void_wrapUpForChild2(IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to finish up any processing related to the input coming from the second operand and send the remaining result elements (if any) to the given sink.protected ExecutableOperatorStatsImplintReturns the preferred block size of input blocks that are passed to this executable operator from the first operand.intReturns the preferred block size of input blocks that are passed to this executable operator from the second operand.booleanReturns true if this operator is implemented based on the assumption that the COMPLETE input from the first operand has been sent to it before input from the second operand is sent.voidMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BinaryExecutableOpBase
getStats, processBlockFromChild1, processBlockFromChild2, wrapUpForChild1, wrapUpForChild2Methods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
getExceptionsCaughtDuringExecution, recordExceptionCaughtDuringExecutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.engine.queryplan.executable.ExecutableOperator
getExceptionsCaughtDuringExecution
-
Constructor Details
-
ExecOpBinaryUnion
public ExecOpBinaryUnion(boolean collectExceptions)
-
-
Method Details
-
preferredInputBlockSizeFromChild1
public int preferredInputBlockSizeFromChild1()Description copied from interface:BinaryExecutableOpReturns the preferred block size of input blocks that are passed to this executable operator from the first operand. A query planner may use this number as an optimization hint but it does not have to use it. -
preferredInputBlockSizeFromChild2
public int preferredInputBlockSizeFromChild2()Description copied from interface:BinaryExecutableOpReturns the preferred block size of input blocks that are passed to this executable operator from the second operand. A query planner may use this number as an optimization hint but it does not have to use it. -
requiresCompleteChild1InputFirst
public boolean requiresCompleteChild1InputFirst()Description copied from interface:BinaryExecutableOpReturns true if this operator is implemented based on the assumption that the COMPLETE input from the first operand has been sent to it before input from the second operand is sent. An example of an operator that may return true here is a hash join (which first needs to add all result elements from the first operand into its hash table and, then, can start consuming the result elements from the second operand by probing into the hash table). In contrast, a symmetric hash join (which has two hash tables and can consume result elements from both inputs in any order) would return false. Operators that return true here may throw anIllegalStateExceptionif their methodsBinaryExecutableOp.processBlockFromChild2(IntermediateResultBlock, IntermediateResultElementSink, ExecutionContext)orBinaryExecutableOp.wrapUpForChild2(IntermediateResultElementSink, ExecutionContext)are called beforeBinaryExecutableOp.wrapUpForChild1(IntermediateResultElementSink, ExecutionContext)has been called. -
_processBlockFromChild1
protected void _processBlockFromChild1(IntermediateResultBlock input, IntermediateResultElementSink sink, ExecutionContext execCxt) Description copied from class:BinaryExecutableOpBaseImplementations of this function need to process the given input block coming from the first operand and send the produced result elements (if any) to the given sink. If an exception occurs while processing the input block, this exception needs to either be collected or be thrown, depending on whetherBaseForExecOps.collectExceptionsis set totrue.- Specified by:
_processBlockFromChild1in classBinaryExecutableOpBase
-
_wrapUpForChild1
Description copied from class:BinaryExecutableOpBaseImplementations of this function need to finish up any processing related to the input coming from the first operand and send the remaining result elements (if any) to the given sink. If an exception occurs during this process, then this exception needs to either be collected or be thrown, depending on whetherBaseForExecOps.collectExceptionsis set totrue.- Specified by:
_wrapUpForChild1in classBinaryExecutableOpBase
-
_processBlockFromChild2
protected void _processBlockFromChild2(IntermediateResultBlock input, IntermediateResultElementSink sink, ExecutionContext execCxt) Description copied from class:BinaryExecutableOpBaseImplementations of this function need to process the given input block coming from the second operand and send the produced result elements (if any) to the given sink. If an exception occurs while processing the input block, this exception needs to either be collected or be thrown, depending on whetherBaseForExecOps.collectExceptionsis set totrue.- Specified by:
_processBlockFromChild2in classBinaryExecutableOpBase
-
_wrapUpForChild2
Description copied from class:BinaryExecutableOpBaseImplementations of this function need to finish up any processing related to the input coming from the second operand and send the remaining result elements (if any) to the given sink. If an exception occurs during this process, then this exception needs to either be collected or be thrown, depending on whetherBaseForExecOps.collectExceptionsis set totrue.- Specified by:
_wrapUpForChild2in classBinaryExecutableOpBase
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceStatsProvider- Overrides:
resetStatsin classBinaryExecutableOpBase
-
createStats
- Overrides:
createStatsin classBinaryExecutableOpBase
-