Class CustomStreamlet<R,​T>

  • All Implemented Interfaces:
    Streamlet<T>, StreamletBase<T>

    public class CustomStreamlet<R,​T>
    extends StreamletImpl<T>
    CustomStreamlet represents a Streamlet that is made up of applying the user supplied custom operator to each element of the parent streamlet.
    • Constructor Detail

      • CustomStreamlet

        public CustomStreamlet​(StreamletImpl<R> parent,
                               IStreamletOperator<R,​T> operator,
                               StreamGrouping grouper)
        Create a custom streamlet from user defined CustomOperator object.
        Parameters:
        parent - The parent(upstream) streamlet object
        operator - The user defined CustomeOperator
        grouper - The StreamGrouper to be used with the operator
    • Method Detail

      • doBuild

        public boolean doBuild​(TopologyBuilder bldr,
                               Set<String> stageNames)
        Connect this streamlet to TopologyBuilder.
        Specified by:
        doBuild in class StreamletBaseImpl<T>
        Parameters:
        bldr - The TopologyBuilder for the topology
        stageNames - The existing stage names
        Returns:
        True if successful