public interface OperatorInstance
LogicalOperator
. Contains statistics and execution
state.Modifier and Type | Method and Description |
---|---|
List<? extends OperatorInstance> |
getChildOperators()
Returns the children of this operator if this operator is a
CompositeOperator . |
List<Throwable> |
getExceptions()
Returns exceptions associated with the operator or empty if none.
|
StatisticsMap |
getHistoricalStatistics()
Returns aggregations for subgraphs that have been flushed from the history.
|
List<? extends InputPortInstance> |
getInputPorts()
Returns a description of the input ports defined by this operator.
|
int |
getMaxParallelism()
Returns the max parallelism set for the operator.
|
Map<String,Object> |
getMetadata()
Returns the metadata associated with this operator.
|
String |
getName()
Returns the short name of the operator.
|
String |
getOperatorClassName()
Returns the fully-qualified class name of this operator.
|
OperatorType |
getOperatorType()
Returns the type of operator that this instance
represents.
|
List<? extends OutputPortInstance> |
getOutputPorts()
Returns a description of the output ports defined by this operator.
|
GraphPath |
getPath()
Returns the full path name of this operator.
|
OperatorInstance |
getSnapshot()
Returns a snapshot that reflects a point-in-time of this operator instance.
|
OperatorState |
getState()
Returns the execution state of this operator indicating whether it is running,
failed, etc.
|
List<LogicalStatistic> |
getStatistics()
Returns the operator statistics associated with the operator.
|
List<? extends LogicalGraphInstanceView> |
getSubgraphs()
Returns a list of subgraphs that this operator has executed.
|
boolean |
isCompiled()
Returns whether this instance has been compiled.
|
String getName()
OperatorComposable#add(LogicalOperator, String)
.GraphPath getPath()
String getOperatorClassName()
OperatorState getState()
CompositeOperator
, the state
is calculated by merging the children states as follows:
INITIAL
or
COMPILED
), then
COMPLETE_FAILED_PRIMARY_ERROR
if any children are the primary errorCOMPLETE_FAILED_SECONDARY_ERROR
if any children are the secondary errorCOMPLETE_CANCELED
if any children are cancelledCOMPLETE_SUCCESS
(since all children are in the complete-success state)EXECUTING
, which means
that there is either a mixture of pre-execution and post-execution or that there
is at least one child operator that is executinggetChildOperators()
.List<Throwable> getExceptions()
state
is either
COMPLETE_FAILED_PRIMARY_ERROR
.
If this corresponds to a CompositeOperator
, the error list
is formed by combining errors from all of the children.List<LogicalStatistic> getStatistics()
LogicalStatistic.nodeID()
, LogicalStatistic.definition()
,
and LogicalStatistic.path()
.
If this corresponds to a CompositeOperator
, this returns the statistics of all of the children operatorsList<? extends InputPortInstance> getInputPorts()
List<? extends OutputPortInstance> getOutputPorts()
List<? extends OperatorInstance> getChildOperators()
CompositeOperator
.
Otherwise returns the empty list.Map<String,Object> getMetadata()
OperatorSettings#getMetadata()
that
was specified when calling OperatorComposable#add(LogicalOperator, OperatorSettings)
.OperatorInstance getSnapshot()
boolean isCompiled()
StatisticsMap getHistoricalStatistics()
List<? extends LogicalGraphInstanceView> getSubgraphs()
EngineConfig.subgraphHistorySize(int)
may be used to limit the number of subgraphs that are retained.
This will always return an empty list for non-iterative operators.int getMaxParallelism()
OperatorSettings#maxParallelism(int)
. Note
that for composites and iterative nodes this will Integer.MAX_VALUE
unless parallelism tuned down via OperatorSettings#maxParallelism(int)
.OperatorType getOperatorType()
Copyright © 2024 Actian Corporation. All rights reserved.