Class LogicalGraphFactory

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

public final class LogicalGraphFactory extends Object
Public factory for creating initially empty logical graphs. After obtaining a graph, users define the processing of the graph by adding LogicalOperator's to it.
  • Method Details

    • newLogicalGraph

      public static LogicalGraph newLogicalGraph()
      Creates an empty logical graph. The graph is assigned a default name of "root".
      Returns:
      a new logical graph ready for defining contained operators
    • newLogicalGraph

      public static LogicalGraph newLogicalGraph(String name)
      Creates an empty logical graph with a specified name.
      Parameters:
      name - name of the graph, not necessarily unique
      Returns:
      a new logical graph ready for defining contained operators
    • newLogicalGraph

      public static LogicalGraph newLogicalGraph(OperatorSettings settings)
      Creates an empty logical graph with specified OperatorSettings. For advanced usage only; clients should generally prefer newLogicalGraph() or newLogicalGraph(String).
      Parameters:
      settings - the operator settings
      Returns:
      a new logical graph ready for defining contained operators
      See Also:
    • newLogicalGraph

      public static LogicalGraph newLogicalGraph(OperatorSettings settings, EngineConfig defaultConfig)
      Creates an empty logical graph with specified OperatorSettings and default EngineConfig. For advanced usage only; clients should generally prefer newLogicalGraph() or newLogicalGraph(String).
      Parameters:
      settings - the operator settings
      defaultConfig - the EngineConfig that will be used when the graph is compiled or run without specifying an overriding EngineConfig
      Returns:
      a new logical graph ready for defining contained operators
      See Also: