Class ConsumerStreamlet<R>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.streamlets.ConsumerStreamlet<R>
-
- All Implemented Interfaces:
StreamletBase<R>
public class ConsumerStreamlet<R> extends StreamletBaseImpl<R>
ConsumerStreamlet represents an empty Streamlet that is made up of elements from the parent streamlet after consuming every element. Since elements of the parents are just consumed by the user passed consumer function, nothing is emitted, thus this streamlet is empty.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.heron.streamlet.impl.StreamletBaseImpl
StreamletBaseImpl.StreamletNamePrefix
-
-
Field Summary
-
Fields inherited from class org.apache.heron.streamlet.impl.StreamletBaseImpl
name, nPartitions
-
-
Constructor Summary
Constructors Constructor Description ConsumerStreamlet(StreamletImpl<R> parent, SerializableConsumer<R> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doBuild(TopologyBuilder bldr, Set<String> stageNames)
Connect this streamlet to TopologyBuilder.-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletBaseImpl
addChild, build, getChildren, getName, getNumPartitions, isBuilt, isFullyBuilt, setDefaultNameIfNone, setName, setNumPartitions
-
-
-
-
Constructor Detail
-
ConsumerStreamlet
public ConsumerStreamlet(StreamletImpl<R> parent, SerializableConsumer<R> consumer)
-
-
Method Detail
-
doBuild
public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames)
Connect this streamlet to TopologyBuilder.- Specified by:
doBuild
in classStreamletBaseImpl<R>
- Parameters:
bldr
- The TopologyBuilder for the topologystageNames
- The existing stage names- Returns:
- True if successful
-
-