com.ibm.streams.flow.declare
Interface OperatorGraph
-
public interface OperatorGraph
OperatorGraph
represents a declaration of a flow graph that contains Java primitive operators.- Since:
- InfoSphere® Streams Version 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <T extends Operator>
OperatorInvocation<T>addOperator(java.lang.Class<T> opClass)
Declare an invocation of anOperator
in this graph.<T extends Operator>
OperatorInvocation<T>addOperator(java.lang.String name, java.lang.Class<T> opClass)
Declare an invocation of anOperator
in this graph.boolean
compileChecks()
Run compile checks for all the declared operators in the graph.
-
-
-
Method Detail
-
addOperator
<T extends Operator> OperatorInvocation<T> addOperator(java.lang.Class<T> opClass)
Declare an invocation of anOperator
in this graph. This method is equivalent to callingaddOperator(String, Class)
with a generated name that is unique to this graph.- Type Parameters:
T
- Type of the operator class- Parameters:
opClass
- Class of the operator- Returns:
OperatorInvocation
for this invocation
-
addOperator
<T extends Operator> OperatorInvocation<T> addOperator(java.lang.String name, java.lang.Class<T> opClass)
Declare an invocation of anOperator
in this graph.- Type Parameters:
T
- Type of the operator class- Parameters:
name
- Invocation name of the operator.opClass
- Class of the operator- Returns:
OperatorInvocation
for this invocation- Throws:
java.lang.IllegalArgumentException
- This graph already contains an operator namedname
-
compileChecks
boolean compileChecks() throws java.lang.Exception
Run compile checks for all the declared operators in the graph. The compile time environment for the checks simulates an SPL standalone application.
During the compile, theOperatorContext
has the following settings:-
toolkit directory
-File
that represents the Java system property nameduser.dir
, which is the current working directory. This is is the same value as theapplication directory
.
ProcessingElement
has the following settings:-
instance identifier
- The value of the Java system property nameduser.name
, which is the current user identifier for the operating system. -
application directory
-File
that represents the Java system property nameduser.dir
, which is the current working directory. -
data directory
-File
that represents the subdirectory nameddata
in theapplication directory
. This directory might not exist and is not created by the creation of thisOperatorGraph
, the execution of this method, or the execution of theOperatorInvocation.compileChecks(boolean)
method. -
output directory
-File
that represents the subdirectory namedoutput
in theapplication directory
. This directory might not exist and is not created by the creation of thisOperatorGraph
, the execution of this method, or the execution of theOperatorInvocation.compileChecks(boolean)
method. -
application scope
- The valueDefault
.
- Returns:
- True if the context is valid, which means that the all
checks
passed. Otherwise, false. - Throws:
java.lang.Exception
- The exception thrown by a compile time check.
-
-
-