OptimizableRepartitionNode¶
OptimizableRepartitionNode<K, V>
is a BaseRepartitionNode.
Creating Instance¶
OptimizableRepartitionNode
takes the following to be created:
- Node Name
- Source Name
-
ProcessorParameters
- Key
Serde
(Apache Kafka) - Value
Serde
(Apache Kafka) - Sink Name
- Repartition Topic
- StreamPartitioner
OptimizableRepartitionNode
is created when:
OptimizableRepartitionNodeBuilder
is requested to build
writeToTopology¶
void writeToTopology(
InternalTopologyBuilder topologyBuilder,
Properties props)
writeToTopology
requests the given InternalTopologyBuilder for the following:
- addInternalTopic (with the repartitionTopic)
- addSink (with the sinkName, the repartitionTopic)
- addSource (with the sourceName, the repartitionTopic)
writeToTopology
is part of the GraphNode abstraction.
Creating OptimizableRepartitionNodeBuilder¶
OptimizableRepartitionNodeBuilder<K, V> optimizableRepartitionNodeBuilder()
optimizableRepartitionNodeBuilder
creates a new OptimizableRepartitionNodeBuilder
.
optimizableRepartitionNodeBuilder
is used when:
CogroupedStreamAggregateBuilder
is requested toprocessRepartitions
(withrepartitionRequired
flag on amongKGroupedStreamImpl
s)GroupedStreamAggregateBuilder
is requested to build a KTable (withrepartitionRequired
flag on)InternalStreamsBuilder
is requested to createRepartitionNodeKStreamImpl
is requested to toTable (withrepartitionRequired
flag on), repartitionForJoin