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 to- processRepartitions(with- repartitionRequiredflag on among- KGroupedStreamImpls)
- GroupedStreamAggregateBuilderis requested to build a KTable (with- repartitionRequiredflag on)
- InternalStreamsBuilderis requested to createRepartitionNode
- KStreamImplis requested to toTable (with- repartitionRequiredflag on), repartitionForJoin