Interface Builder

  • All Known Implementing Classes:
    BuilderImpl

    public interface Builder
    Builder is used to register all sources. Builder thus keeps track of all the starting points of the computation DAG and uses this information to build the topology
    • Method Detail

      • newBuilder

        static Builder newBuilder()
      • newSource

        <R> Streamlet<R> newSource​(SerializableSupplier<R> supplier)
        All sources of the computation should register using addSource.
        Parameters:
        supplier - The supplier function that is used to create the streamlet
      • newSource

        <R> Streamlet<R> newSource​(Source<R> generator)
        Creates a new Streamlet using the underlying generator
        Type Parameters:
        R -
        Parameters:
        generator - The generator that generates the tuples of the streamlet
        Returns:
        the new streamlet
      • newSource

        <R> Streamlet<R> newSource​(IRichSpout spout)
        Creates a new Streamlet using the provided spout
        Type Parameters:
        R -
        Parameters:
        spout - The spout that emits the tuples of the streamlet
        Returns:
        the new streamlet