- 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 addingLogicalOperator
's to it.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogicalGraph
newLogicalGraph()
Creates an empty logical graph.static LogicalGraph
newLogicalGraph(OperatorSettings settings)
Creates an empty logical graph with specifiedOperatorSettings
.static LogicalGraph
newLogicalGraph(OperatorSettings settings, EngineConfig defaultConfig)
Creates an empty logical graph with specifiedOperatorSettings
and defaultEngineConfig
.static LogicalGraph
newLogicalGraph(String name)
Creates an empty logical graph with a specified name.
-
-
-
Method Detail
-
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 specifiedOperatorSettings
. For advanced usage only; clients should generally prefernewLogicalGraph()
ornewLogicalGraph(String)
.- Parameters:
settings
- the operator settings- Returns:
- a new logical graph ready for defining contained operators
- See Also:
OperatorSettings
-
newLogicalGraph
public static LogicalGraph newLogicalGraph(OperatorSettings settings, EngineConfig defaultConfig)
Creates an empty logical graph with specifiedOperatorSettings
and defaultEngineConfig
. For advanced usage only; clients should generally prefernewLogicalGraph()
ornewLogicalGraph(String)
.- Parameters:
settings
- the operator settingsdefaultConfig
- theEngineConfig
that will be used when the graph is compiled or run without specifying an overridingEngineConfig
- Returns:
- a new logical graph ready for defining contained operators
- See Also:
OperatorSettings
-
-