- java.lang.Object
-
- com.pervasive.datarush.graphs.LogicalGraphInstances
-
public final class LogicalGraphInstances extends Object
Miscellaneous utilities for working withLogicalGraphInstance
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<LogicalStatistic>
getConnectionStatistics(LogicalGraphInstance instance, LogicalPort inputPort)
Returns the connection statistics associated with the given input port.static List<Throwable>
getExceptions(LogicalGraphInstance instance, LogicalOperator operator)
Returns the exceptions associated with the given operator.static OperatorState
getOperatorState(LogicalGraphInstance instance, LogicalOperator operator)
Returns the operator state associated with the given operator.static List<LogicalStatistic>
getOperatorStatistics(LogicalGraphInstance instance, LogicalOperator operator)
Returns the operator statistics associated with the given operator.
-
-
-
Method Detail
-
getOperatorState
public static OperatorState getOperatorState(LogicalGraphInstance instance, LogicalOperator operator)
Returns the operator state associated with the given operator. ReturnsOperatorState.INITIAL
if the operator is not found in the graph.- Parameters:
instance
- the logical graph instanceoperator
- the operator- Returns:
- the operator state
-
getExceptions
public static List<Throwable> getExceptions(LogicalGraphInstance instance, LogicalOperator operator)
Returns the exceptions associated with the given operator. Returns the empty list if the given operator is not found in the graph.- Parameters:
instance
- the logical graph instanceoperator
- the operator- Returns:
- a list of exceptions
-
getConnectionStatistics
public static List<LogicalStatistic> getConnectionStatistics(LogicalGraphInstance instance, LogicalPort inputPort)
Returns the connection statistics associated with the given input port. Returns the empty list if the given port is not found in the graph or is not an input port.- Parameters:
instance
- the logical graph instanceinputPort
- the input port- Returns:
- a list of statistics
-
getOperatorStatistics
public static List<LogicalStatistic> getOperatorStatistics(LogicalGraphInstance instance, LogicalOperator operator)
Returns the operator statistics associated with the given operator. Returns the empty list if the given operator is not found in the graph.- Parameters:
instance
- the logical graph instanceoperator
- the operator- Returns:
- a list of exceptions
-
-