Package org.apache.heron.streamlet
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 Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Builder
newBuilder()
<R> Streamlet<R>
newSource(IRichSpout spout)
Creates a new Streamlet using the provided spout<R> Streamlet<R>
newSource(SerializableSupplier<R> supplier)
All sources of the computation should register using addSource.<R> Streamlet<R>
newSource(Source<R> generator)
Creates a new Streamlet using the underlying generator
-
-
-
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
-
-