Package org.apache.heron.streamlet.impl
Class BuilderImpl
- java.lang.Object
-
- org.apache.heron.streamlet.impl.BuilderImpl
-
-
Constructor Summary
Constructors Constructor Description BuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologyBuilder
build()
We start traversing from all sources and build each node.TopologyBuilder
build(TopologyBuilder builder)
<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
-
newSource
public <R> Streamlet<R> newSource(SerializableSupplier<R> supplier)
Description copied from interface:Builder
All sources of the computation should register using addSource.
-
newSource
public <R> Streamlet<R> newSource(Source<R> generator)
Description copied from interface:Builder
Creates a new Streamlet using the underlying generator
-
newSource
public <R> Streamlet<R> newSource(IRichSpout spout)
Description copied from interface:Builder
Creates a new Streamlet using the provided spout
-
build
public TopologyBuilder build()
We start traversing from all sources and build each node.- Returns:
- TopologyBuilder class that represents the built topology
-
build
public TopologyBuilder build(TopologyBuilder builder)
-
-