AbstractStream¶
AbstractStream<K, V>
is a base abstraction of KTables and KStreams.
Implementations¶
CogroupedKStreamImpl
- KGroupedStreamImpl
KGroupedTableImpl
- KStreamImpl
- KTableImpl
SessionWindowedCogroupedKStreamImpl
SessionWindowedKStreamImpl
SlidingWindowedCogroupedKStreamImpl
SlidingWindowedKStreamImpl
TimeWindowedCogroupedKStreamImpl
TimeWindowedKStreamImpl
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 AbstractStream
s).
ensureCopartitionWith
returns the subTopologySourceNodes and the subTopologySourceNodes
of all the other AbstractStream
s.
ensureCopartitionWith
is used when:
CogroupedStreamAggregateBuilder
is requested toprocessRepartitions
KStreamImpl
is requested to doJoin and doStreamTableJoinKTableImpl
is requested to doJoin