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
public class KeyValue<K,V> extends Object
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static <K,V>
KeyValue<K,V>pair(K key, V value)
Create a new key-value pair.String
toString()
-
-
-
Method Detail
-
pair
public static <K,V> KeyValue<K,V> pair(K key, V value)
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
-
-