Class KeyValue<K,V>
java.lang.Object
org.apache.kafka.streams.KeyValue<K,V>
- Type Parameters:
K- Key typeV- Value type
A key-value pair defined for a single Kafka Streams record. If the record comes directly from a Kafka topic then its key/value are defined as the message key/value.
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Field Details
key
The key of the key-value pair.value
The value of the key-value pair.
Constructor Details
KeyValue
Method Details
pair
Create a new key-value pair.- Type Parameters:
K- the type of the keyV- the type of the value- Parameters:
key- the keyvalue- the value- Returns:
- a new key-value pair
toString
equals
hashCode