Class JoinStreamlet<K,R,S,T>
- java.lang.Object
-
- org.apache.heron.streamlet.impl.StreamletBaseImpl<R>
-
- org.apache.heron.streamlet.impl.StreamletImpl<KeyValue<KeyedWindow<K>,T>>
-
- org.apache.heron.streamlet.impl.streamlets.JoinStreamlet<K,R,S,T>
-
- All Implemented Interfaces:
Streamlet<KeyValue<KeyedWindow<K>,T>>
,StreamletBase<KeyValue<KeyedWindow<K>,T>>
public final class JoinStreamlet<K,R,S,T> extends StreamletImpl<KeyValue<KeyedWindow<K>,T>>
JoinStreamlet represents a KVStreamlet that is the result of joining two KVStreamlets left and right using a WindowConfig. For all left and right tuples in the window whose keys match, the user supplied joinFunction is applied on the values to get the resulting value. JoinStreamlet's elements are of KeyValue type where the key is KeyWindowInfo<K> type and the value is of type VR.
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,B,C,D>
JoinStreamlet<A,B,C,D>createJoinStreamlet(StreamletImpl<B> left, StreamletImpl<C> right, SerializableFunction<B,A> leftKeyExtractor, SerializableFunction<C,A> rightKeyExtractor, WindowConfig windowCfg, JoinType joinType, SerializableBiFunction<B,C,? extends D> joinFn)
boolean
doBuild(TopologyBuilder bldr, Set<String> stageNames)
JoinType
getJoinType()
-
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
-
-
-
-
Method Detail
-
createJoinStreamlet
public static <A,B,C,D> JoinStreamlet<A,B,C,D> createJoinStreamlet(StreamletImpl<B> left, StreamletImpl<C> right, SerializableFunction<B,A> leftKeyExtractor, SerializableFunction<C,A> rightKeyExtractor, WindowConfig windowCfg, JoinType joinType, SerializableBiFunction<B,C,? extends D> joinFn)
-
getJoinType
public JoinType getJoinType()
-
doBuild
public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames)
- Specified by:
doBuild
in classStreamletBaseImpl<KeyValue<KeyedWindow<K>,T>>
-
-