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 Detail

      • addOperator

        <T extends OperatorOperatorInvocation<T> addOperator(java.lang.Class<T> opClass)
        Declare an invocation of an Operator in this graph. This method is equivalent to calling addOperator(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 OperatorOperatorInvocation<T> addOperator(java.lang.String name,
                                                               java.lang.Class<T> opClass)
        Declare an invocation of an Operator 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 named name
      • 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, the OperatorContext has the following settings: During the compile, the ProcessingElement has the following settings:
        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.