Class KVStreamletShadow<K,V>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.StreamletImpl<R>
-
- org.apache.heron.streamlet.impl.streamlets.StreamletShadow<KeyValue<K,V>>
-
- org.apache.heron.streamlet.impl.streamlets.KVStreamletShadow<K,V>
-
- All Implemented Interfaces:
KVStreamlet<K,V>
,Streamlet<KeyValue<K,V>>
,StreamletBase<KeyValue<K,V>>
public class KVStreamletShadow<K,V> extends StreamletShadow<KeyValue<K,V>> implements KVStreamlet<K,V>
KVStreamletShadow is a decorator for StreamletImpl> objects. Please check StreamShadow comments for more details. Usage: To create a shadow object that selecting "test" stream from an existing StreamletImpl > object(stream): KVStreamlet kv = new KVStreamletShadow (stream)
-
-
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 KVStreamletShadow(StreamletImpl<KeyValue<K,V>> real)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KVStreamletShadow<K,V>
setName(String sName)
Sets the name of the Streamlet.KVStreamletShadow<K,V>
setNumPartitions(int numPartitions)
Sets the number of partitions of the streamlet-
Methods inherited from class org.apache.heron.streamlet.impl.streamlets.StreamletShadow
addChild, build, doBuild, getChildren, getName, getNumPartitions, getReal, getStreamId
-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletImpl
applyOperator, applyOperator, clone, consume, countByKey, countByKeyAndWindow, filter, flatMap, getAvailableStreamIds, join, join, keyBy, keyBy, log, map, reduceByKey, reduceByKey, reduceByKeyAndWindow, reduceByKeyAndWindow, repartition, repartition, split, toSink, transform, union, withStream
-
Methods inherited from class org.apache.heron.streamlet.impl.StreamletBaseImpl
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
applyOperator, applyOperator, clone, consume, countByKey, countByKeyAndWindow, filter, flatMap, getName, getNumPartitions, getStreamId, join, join, keyBy, keyBy, log, map, reduceByKey, reduceByKey, reduceByKeyAndWindow, reduceByKeyAndWindow, repartition, repartition, split, toSink, transform, union, withStream
-
-
-
-
Constructor Detail
-
KVStreamletShadow
public KVStreamletShadow(StreamletImpl<KeyValue<K,V>> real)
-
-
Method Detail
-
setName
public KVStreamletShadow<K,V> setName(String sName)
Description copied from class:StreamletImpl
Sets the name of the Streamlet.
-
setNumPartitions
public KVStreamletShadow<K,V> setNumPartitions(int numPartitions)
Description copied from class:StreamletImpl
Sets the number of partitions of the streamlet- Specified by:
setNumPartitions
in interfaceStreamlet<K>
- Specified by:
setNumPartitions
in interfaceStreamletBase<K>
- Overrides:
setNumPartitions
in classStreamletShadow<KeyValue<K,V>>
- Parameters:
numPartitions
- The user assigned number of partitions- Returns:
- Returns back the Streamlet with changed number of partitions
-
-