Class ExecOpGlobalToLocal
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBase
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBaseWithoutBlocking
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.ExecOpGlobalToLocal
- All Implemented Interfaces:
StatsProvider,ExecutableOperator,UnaryExecutableOp
-
Field Summary
FieldsFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBaseWithoutBlocking
MAX_BATCH_SIZEFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
collectExceptions, qpInfo -
Constructor Summary
ConstructorsConstructorDescriptionExecOpGlobalToLocal(VocabularyMapping vm, boolean collectExceptions, QueryPlanningInfo qpInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_concludeExecution(IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to conclude the execution of this operator and send the remaining result elements (if any) to the given sink.protected void_process(Iterator<SolutionMapping> inputSolMaps, int maxBatchSize, IntermediateResultElementSink sink, ExecutionContext execCxt) Processes input solution mappings of the given iterator by callingUnaryExecutableOpBase._process(SolutionMapping, IntermediateResultElementSink, ExecutionContext)for each of them, but consumes only as many input solution mappings as specified by the maxBatchSize argument (or less if the given iterator is exhausted earlier).protected void_process(SolutionMapping inputSolMap, IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to process the given solution mapping as input and send the produced result elements (if any) to the given sink.protected ExecutableOperatorStatsImplvoidMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBaseWithoutBlocking
_processMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBase
concludeExecution, getStats, process, processMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
getExceptionsCaughtDuringExecution, getQueryPlanningInfo, 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, getQueryPlanningInfo
-
Field Details
-
vm
-
-
Constructor Details
-
ExecOpGlobalToLocal
public ExecOpGlobalToLocal(VocabularyMapping vm, boolean collectExceptions, QueryPlanningInfo qpInfo)
-
-
Method Details
-
_process
protected void _process(SolutionMapping inputSolMap, IntermediateResultElementSink sink, ExecutionContext execCxt) Description copied from class:UnaryExecutableOpBaseImplementations of this function need to process the given solution mapping as input and send the produced result elements (if any) to the given sink. If an exception occurs while processing the solution mapping, then this exception needs to be thrown.- Specified by:
_processin classUnaryExecutableOpBase
-
_process
protected void _process(Iterator<SolutionMapping> inputSolMaps, int maxBatchSize, IntermediateResultElementSink sink, ExecutionContext execCxt) Description copied from class:UnaryExecutableOpBaseWithoutBlockingProcesses input solution mappings of the given iterator by callingUnaryExecutableOpBase._process(SolutionMapping, IntermediateResultElementSink, ExecutionContext)for each of them, but consumes only as many input solution mappings as specified by the maxBatchSize argument (or less if the given iterator is exhausted earlier). Subclasses may override this behavior to send a greater number of output solution mappings to the given sink at a time (which is useful to reduce the communication between threads in the push-based execution model). Yet, overriding implementations should not call the given iterator more often as specified by the maxBatchSize argument. If an exception occurs within the overriding implementation, then this exception needs to be thrown.- Overrides:
_processin classUnaryExecutableOpBaseWithoutBlocking
-
_concludeExecution
Description copied from class:UnaryExecutableOpBaseImplementations of this function need to conclude the execution of this operator and send the remaining result elements (if any) to the given sink. If an exception occurs during this process, then this exception needs to be thrown.- Specified by:
_concludeExecutionin classUnaryExecutableOpBase
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceStatsProvider- Overrides:
resetStatsin classUnaryExecutableOpBase
-
createStats
- Overrides:
createStatsin classUnaryExecutableOpBase
-