Class StreamNodeForwardGroup

    • Constructor Detail

      • StreamNodeForwardGroup

        public StreamNodeForwardGroup​(Set<StreamNode> streamNodes)
    • Method Detail

      • setParallelism

        public void setParallelism​(int parallelism)
        Description copied from interface: ForwardGroup
        Sets the parallelism for this forward group.
        Specified by:
        setParallelism in interface ForwardGroup<Integer>
        Parameters:
        parallelism - the parallelism to set.
      • isParallelismDecided

        public boolean isParallelismDecided()
        Description copied from interface: ForwardGroup
        Returns if parallelism has been decided for this forward group.
        Specified by:
        isParallelismDecided in interface ForwardGroup<Integer>
        Returns:
        is parallelism decided for this forward group.
      • getParallelism

        public int getParallelism()
        Description copied from interface: ForwardGroup
        Returns the parallelism for this forward group.
        Specified by:
        getParallelism in interface ForwardGroup<Integer>
        Returns:
        parallelism for this forward group.
      • setMaxParallelism

        public void setMaxParallelism​(int maxParallelism)
        Description copied from interface: ForwardGroup
        Sets the max parallelism for this forward group.
        Specified by:
        setMaxParallelism in interface ForwardGroup<Integer>
        Parameters:
        maxParallelism - the max parallelism to set.
      • isMaxParallelismDecided

        public boolean isMaxParallelismDecided()
        Description copied from interface: ForwardGroup
        Returns if max parallelism has been decided for this forward group.
        Specified by:
        isMaxParallelismDecided in interface ForwardGroup<Integer>
        Returns:
        is max parallelism decided for this forward group.
      • getMaxParallelism

        public int getMaxParallelism()
        Description copied from interface: ForwardGroup
        Returns the max parallelism for this forward group.
        Specified by:
        getMaxParallelism in interface ForwardGroup<Integer>
        Returns:
        max parallelism for this forward group.
      • mergeForwardGroup

        public boolean mergeForwardGroup​(StreamNodeForwardGroup forwardGroupToMerge)
        Merges forwardGroupToMerge into this and update the parallelism information for stream nodes in merged forward group.
        Parameters:
        forwardGroupToMerge - The forward group to be merged.
        Returns:
        whether the merge was successful.
      • size

        @VisibleForTesting
        public int size()