Class LogStreamlet<R>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.streamlets.LogStreamlet<R>
-
- All Implemented Interfaces:
StreamletBase<R>
public class LogStreamlet<R> extends StreamletBaseImpl<R>
LogStreamlet represents en empty Streamlet that is made up of elements from the parent streamlet after logging each element. Since elements of the parents are just logged 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 LogStreamlet(StreamletImpl<R> parent)
-
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
-
LogStreamlet
public LogStreamlet(StreamletImpl<R> parent)
-
-
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
-
-