Constructor and Description |
---|
Stores.ValueFactory() |
Modifier and Type | Method and Description |
---|---|
Stores.KeyValueFactory<K,byte[]> |
withByteArrayValues()
Use byte arrays for values.
|
Stores.KeyValueFactory<K,ByteBuffer> |
withByteBufferValues()
Use
ByteBuffer for values. |
Stores.KeyValueFactory<K,Double> |
withDoubleValues()
Use
Double values. |
Stores.KeyValueFactory<K,Integer> |
withIntegerValues()
Use
Integer values. |
Stores.KeyValueFactory<K,Long> |
withLongValues()
Use
Long values. |
Stores.KeyValueFactory<K,String> |
withStringValues()
Use
String values. |
<V> Stores.KeyValueFactory<K,V> |
withValues(Class<V> valueClass)
Use values of the specified type.
|
abstract <V> Stores.KeyValueFactory<K,V> |
withValues(Serde<V> valueSerde)
Use the specified serializer and deserializer for the values.
|
public Stores.KeyValueFactory<K,String> withStringValues()
String
values.public Stores.KeyValueFactory<K,Integer> withIntegerValues()
Integer
values.public Stores.KeyValueFactory<K,Long> withLongValues()
Long
values.public Stores.KeyValueFactory<K,Double> withDoubleValues()
Double
values.public Stores.KeyValueFactory<K,ByteBuffer> withByteBufferValues()
ByteBuffer
for values.public Stores.KeyValueFactory<K,byte[]> withByteArrayValues()
public <V> Stores.KeyValueFactory<K,V> withValues(Class<V> valueClass)
valueClass
- the class for the values, which must be one of the types for which Kafka has built-in serdespublic abstract <V> Stores.KeyValueFactory<K,V> withValues(Serde<V> valueSerde)
valueSerde
- the serialization factory for values; may be null