|
10 | 10 | [[SINK_NAME]]
|
11 | 11 | `KStreamImpl` uses *KSTREAM-SINK-* as the prefix for...FIXME
|
12 | 12 |
|
| 13 | +[[TRANSFORMVALUES_NAME]] |
| 14 | +`KStreamImpl` uses *KSTREAM-TRANSFORMVALUES-* as the prefix for...FIXME |
| 15 | + |
13 | 16 | [[internal-registries]]
|
14 | 17 | .KStreamImpl's Internal Properties (e.g. Registries, Counters and Flags)
|
15 | 18 | [cols="1,2",options="header",width="100%"]
|
@@ -327,3 +330,27 @@ KStream<K, V> filterNot(final Predicate<? super K, ? super V> predicate)
|
327 | 330 | NOTE: `filterNot` is part of the <<kafka-streams-KStream.adoc#filterNot, KStream Contract>> to...FIXME.
|
328 | 331 |
|
329 | 332 | `filterNot`...FIXME
|
| 333 | + |
| 334 | +=== [[doTransformValues]] `doTransformValues` Internal Method |
| 335 | + |
| 336 | +[source, java] |
| 337 | +---- |
| 338 | +KStream<K, VR> doTransformValues( |
| 339 | + final ValueTransformerWithKeySupplier< |
| 340 | + ? super K, |
| 341 | + ? super V, |
| 342 | + ? extends VR> valueTransformerWithKeySupplier, |
| 343 | + final String... stateStoreNames) |
| 344 | +---- |
| 345 | + |
| 346 | +`doTransformValues` requests the <<builder, InternalStreamsBuilder>> for a <<kafka-streams-internals-InternalStreamsBuilder.adoc#newProcessorName, new processor name>> with <<TRANSFORMVALUES_NAME, KSTREAM-TRANSFORMVALUES>> prefix. |
| 347 | + |
| 348 | +`doTransformValues` creates a new <<kafka-streams-internals-StatefulProcessorNode.adoc#, StatefulProcessorNode>> with the new processor name, the given `stateStoreNames` and the <<repartitionRequired, repartitionRequired>> flag. |
| 349 | + |
| 350 | +`doTransformValues` requests the `StatefulProcessorNode` to <<kafka-streams-internals-StreamsGraphNode.adoc#setValueChangingOperation, setValueChangingOperation>>. |
| 351 | + |
| 352 | +`doTransformValues` requests the <<builder, InternalStreamsBuilder>> to <<kafka-streams-internals-InternalStreamsBuilder.adoc#addGraphNode, add>> the `StatefulProcessorNode` (with the <<kafka-streams-AbstractStream.adoc#streamsGraphNode, StreamsGraphNode>> as the parent). |
| 353 | + |
| 354 | +In the end, `doTransformValues` creates a new <<creating-instance, KStreamImpl>> (with the new processor name, the <<sourceNodes, sourceNodes>>, the <<repartitionRequired, repartitionRequired>> flag, the `StatefulProcessorNode` itself and the <<builder, InternalStreamsBuilder>>). |
| 355 | + |
| 356 | +NOTE: `doTransformValues` is used when `KStreamImpl` is requested to <<transformValues, transformValues>>. |
0 commit comments