Class NullaryExecutableOpBase
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.NullaryExecutableOpBase
- All Implemented Interfaces:
StatsProvider,ExecutableOperator,NullaryExecutableOp
- Direct Known Subclasses:
BaseForExecOpRequest
Top-level base class for all implementations of
NullaryExecutableOp.
This base class handles the collection of statistics about both the
processing times of the operator. To this end, it implements the major
method of the NullaryExecutableOp interface, where the actual
functionality to be implemented for this method needs to be provided by
implementing the following abstract function in each sub-class of this
base class. This functions is:
-
Field Summary
FieldsFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
collectExceptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void_execute(IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to execute the algorithm of this operator and send the result elements (if any) to the given sink.protected ExecutableOperatorStatsImplfinal voidexecute(IntermediateResultElementSink sink, ExecutionContext execCxt) Executes this operator and sends the produced result elements (if any) to the given sink.final ExecutableOperatorStatsgetStats()voidMethods 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
-
Field Details
-
timeAtExecStart
protected long timeAtExecStart -
timeAtExecEnd
protected long timeAtExecEnd
-
-
Constructor Details
-
NullaryExecutableOpBase
public NullaryExecutableOpBase(boolean collectExceptions)
-
-
Method Details
-
execute
public final void execute(IntermediateResultElementSink sink, ExecutionContext execCxt) throws ExecOpExecutionException Description copied from interface:NullaryExecutableOpExecutes this operator and sends the produced result elements (if any) to the given sink.- Specified by:
executein interfaceNullaryExecutableOp- Throws:
ExecOpExecutionException
-
_execute
protected abstract void _execute(IntermediateResultElementSink sink, ExecutionContext execCxt) throws ExecOpExecutionException Implementations of this function need to execute the algorithm of this operator and send the 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.- Throws:
ExecOpExecutionException
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceStatsProvider
-
getStats
- Specified by:
getStatsin interfaceExecutableOperator- Specified by:
getStatsin interfaceStatsProvider
-
createStats
-