AbstractStream¶
AbstractStream<K, V> is a base abstraction of KTables and KStreams.
Implementations¶
CogroupedKStreamImpl- KGroupedStreamImpl
KGroupedTableImpl- KStreamImpl
- KTableImpl
SessionWindowedCogroupedKStreamImplSessionWindowedKStreamImplSlidingWindowedCogroupedKStreamImplSlidingWindowedKStreamImplTimeWindowedCogroupedKStreamImplTimeWindowedKStreamImpl
Creating Instance¶
AbstractStream takes the following to be created:
- Name
-
Serde<K> -
Serde<V> - Names of the Sub-Topology Source Nodes
- GraphNode
- InternalStreamsBuilder
Abstract Class
AbstractStream is an abstract class and cannot be created directly. It is created indirectly for the concrete AbstractStreams.
ensureCopartitionWith¶
Set<String> ensureCopartitionWith(
Collection<? extends AbstractStream<K, ?>> otherStreams)
ensureCopartitionWith requests the InternalStreamsBuilder for the InternalTopologyBuilder that is in turn requested to copartitionSources (with the subTopologySourceNodes and the subTopologySourceNodes of all the other AbstractStreams).
ensureCopartitionWith returns the subTopologySourceNodes and the subTopologySourceNodes of all the other AbstractStreams.
ensureCopartitionWith is used when:
CogroupedStreamAggregateBuilderis requested toprocessRepartitionsKStreamImplis requested to doJoin and doStreamTableJoinKTableImplis requested to doJoin