Class To
java.lang.Object
org.apache.kafka.streams.processor.To
This class is used to provide the optional parameters when sending output records to downstream processor
using
ProcessorContext.forward(Object, Object, To)
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic To
all()
Forward the key/value pair to all downstream processorsstatic To
Forward the key/value pair to one of the downstream processors designated by the downstream processor name.boolean
int
hashCode()
Equality is implemented in support of tests, *not* for use in Hash collections, since this class is mutable.toString()
protected void
withTimestamp
(long timestamp) Set the timestamp of the output record.
-
Field Details
-
childName
-
timestamp
protected long timestamp
-
-
Constructor Details
-
To
-
-
Method Details
-
update
-
child
Forward the key/value pair to one of the downstream processors designated by the downstream processor name.- Parameters:
childName
- name of downstream processor- Returns:
- a new
To
instance configured withchildName
-
all
Forward the key/value pair to all downstream processors- Returns:
- a new
To
instance configured for all downstream processor
-
withTimestamp
Set the timestamp of the output record.- Parameters:
timestamp
- the output record timestamp- Returns:
- itself (i.e.,
this
)
-
equals
-
hashCode
public int hashCode()Equality is implemented in support of tests, *not* for use in Hash collections, since this class is mutable. -
toString
-