Class CountByKeyStreamlet<R,K>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.StreamletImpl<KeyValue<K,Long>>
-
- org.apache.heron.streamlet.impl.streamlets.CountByKeyStreamlet<R,K>
-
public class CountByKeyStreamlet<R,K> extends StreamletImpl<KeyValue<K,Long>>
ReduceByKeyAndWindowStreamlet represents a KVStreamlet that is the result of applying user supplied reduceFn on all elements within each window defined by a user supplied Window Config. Note that this is a stateful operation. And K and T types need to be serializable. ReduceByKeyAndWindowStreamlet's elements are of KeyValue type where the key is KeyWindowInfo<K> type and the value is of type V.
-
-
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 CountByKeyStreamlet(StreamletImpl<R> parent, SerializableFunction<R,K> keyExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doBuild(TopologyBuilder bldr, Set<String> stageNames)
-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletImpl
applyOperator, applyOperator, clone, consume, countByKey, countByKeyAndWindow, filter, flatMap, getAvailableStreamIds, 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
-
CountByKeyStreamlet
public CountByKeyStreamlet(StreamletImpl<R> parent, SerializableFunction<R,K> keyExtractor)
-
-
Method Detail
-
doBuild
public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames)
- Specified by:
doBuild
in classStreamletBaseImpl<KeyValue<K,Long>>
-
-