Package org.apache.kafka.streams
Class KeyValue<K,V> 
java.lang.Object
org.apache.kafka.streams.KeyValue<K,V> 
- Type Parameters:
- K- Key type
- V- 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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
keyThe key of the key-value pair.
- 
valueThe value of the key-value pair.
 
- 
- 
Constructor Details- 
KeyValueCreate a new key-value pair.- Parameters:
- key- the key
- value- the value
 
 
- 
- 
Method Details- 
pairCreate a new key-value pair.- Type Parameters:
- K- the type of the key
- V- the type of the value
- Parameters:
- key- the key
- value- the value
- Returns:
- a new key-value pair
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-