Class LogicalGraphInstances

java.lang.Object
com.pervasive.datarush.graphs.LogicalGraphInstances

public final class LogicalGraphInstances extends Object
Miscellaneous utilities for working with LogicalGraphInstance.
  • Method Details

    • getOperatorState

      public static OperatorState getOperatorState(LogicalGraphInstance instance, LogicalOperator operator)
      Returns the operator state associated with the given operator. Returns OperatorState.INITIAL if the operator is not found in the graph.
      Parameters:
      instance - the logical graph instance
      operator - 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 instance
      operator - 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 instance
      inputPort - 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 instance
      operator - the operator
      Returns:
      a list of exceptions