Package org.apache.kafka.streams
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
-
Constructor Summary
-
Method Summary
-
Field Details
-
key
The key of the key-value pair. -
value
The value of the key-value pair.
-
-
Constructor Details
-
KeyValue
Create a new key-value pair.- Parameters:
key
- the keyvalue
- the value
-
-
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
public int hashCode()
-