Class SplitStreamlet<R>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.StreamletImpl<R>
-
- org.apache.heron.streamlet.impl.streamlets.SplitStreamlet<R>
-
- All Implemented Interfaces:
Streamlet<R>
,StreamletBase<R>
public class SplitStreamlet<R> extends StreamletImpl<R>
SplitStreamlet represents a Streamlet that splits an incoming stream into multiple streams using a split function. Each tuple can be emitted into no or multiple streams.
-
-
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 SplitStreamlet(StreamletImpl<R> parent, Map<String,SerializablePredicate<R>> splitFns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doBuild(TopologyBuilder bldr, Set<String> stageNames)
protected Set<String>
getAvailableStreamIds()
Get the available stream ids in the Streamlet.-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletImpl
applyOperator, applyOperator, clone, consume, countByKey, countByKeyAndWindow, filter, flatMap, getStreamId, join, join, keyBy, keyBy, log, map, reduceByKey, reduceByKey, reduceByKeyAndWindow, reduceByKeyAndWindow, repartition, repartition, setName, setNumPartitions, split, toSink, transform, union, withStream
-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletBaseImpl
addChild, build, getChildren, getName, getNumPartitions, isBuilt, isFullyBuilt, setDefaultNameIfNone
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.heron.streamlet.Streamlet
getName, getNumPartitions
-
-
-
-
Constructor Detail
-
SplitStreamlet
public SplitStreamlet(StreamletImpl<R> parent, Map<String,SerializablePredicate<R>> splitFns)
-
-
Method Detail
-
getAvailableStreamIds
protected Set<String> getAvailableStreamIds()
Get the available stream ids in the Streamlet.- Overrides:
getAvailableStreamIds
in classStreamletImpl<R>
- Returns:
- Returns the set of available stream ids
-
doBuild
public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames)
- Specified by:
doBuild
in classStreamletBaseImpl<R>
-
-