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:
OptimizableRepartitionNodeBuilderis 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:
CogroupedStreamAggregateBuilderis requested toprocessRepartitions(withrepartitionRequiredflag on amongKGroupedStreamImpls)GroupedStreamAggregateBuilderis requested to build a KTable (withrepartitionRequiredflag on)InternalStreamsBuilderis requested to createRepartitionNodeKStreamImplis requested to toTable (withrepartitionRequiredflag on), repartitionForJoin