Package org.apache.kafka.streams.state
Class Stores.StoreFactory
- java.lang.Object
-
- org.apache.kafka.streams.state.Stores.StoreFactory
-
- Enclosing class:
- Stores
public abstract static class Stores.StoreFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StoreFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stores.ValueFactory<byte[]>withByteArrayKeys()Begin to create aKeyValueStoreby specifying the keys will be byte arrays.Stores.ValueFactory<java.nio.ByteBuffer>withByteBufferKeys()Begin to create aKeyValueStoreby specifying the keys will beByteBuffer.Stores.ValueFactory<java.lang.Double>withDoubleKeys()Begin to create aKeyValueStoreby specifying the keys will beDoubles.Stores.ValueFactory<java.lang.Integer>withIntegerKeys()Begin to create aKeyValueStoreby specifying the keys will beIntegers.<K> Stores.ValueFactory<K>withKeys(java.lang.Class<K> keyClass)Begin to create aKeyValueStoreby specifying the keys.abstract <K> Stores.ValueFactory<K>withKeys(org.apache.kafka.common.serialization.Serde<K> keySerde)Begin to create aKeyValueStoreby specifying the serializer and deserializer for the keys.Stores.ValueFactory<java.lang.Long>withLongKeys()Begin to create aKeyValueStoreby specifying the keys will beLongs.Stores.ValueFactory<java.lang.String>withStringKeys()Begin to create aKeyValueStoreby specifying the keys will beStrings.
-
-
-
Method Detail
-
withStringKeys
public Stores.ValueFactory<java.lang.String> withStringKeys()
Begin to create aKeyValueStoreby specifying the keys will beStrings.- Returns:
- the interface used to specify the type of values; never null
-
withIntegerKeys
public Stores.ValueFactory<java.lang.Integer> withIntegerKeys()
Begin to create aKeyValueStoreby specifying the keys will beIntegers.- Returns:
- the interface used to specify the type of values; never null
-
withLongKeys
public Stores.ValueFactory<java.lang.Long> withLongKeys()
Begin to create aKeyValueStoreby specifying the keys will beLongs.- Returns:
- the interface used to specify the type of values; never null
-
withDoubleKeys
public Stores.ValueFactory<java.lang.Double> withDoubleKeys()
Begin to create aKeyValueStoreby specifying the keys will beDoubles.- Returns:
- the interface used to specify the type of values; never null
-
withByteBufferKeys
public Stores.ValueFactory<java.nio.ByteBuffer> withByteBufferKeys()
Begin to create aKeyValueStoreby specifying the keys will beByteBuffer.- Returns:
- the interface used to specify the type of values; never null
-
withByteArrayKeys
public Stores.ValueFactory<byte[]> withByteArrayKeys()
Begin to create aKeyValueStoreby specifying the keys will be byte arrays.- Returns:
- the interface used to specify the type of values; never null
-
withKeys
public <K> Stores.ValueFactory<K> withKeys(java.lang.Class<K> keyClass)
Begin to create aKeyValueStoreby specifying the keys.- Parameters:
keyClass- the class for the keys, which must be one of the types for which Kafka has built-in serdes- Returns:
- the interface used to specify the type of values; never null
-
withKeys
public abstract <K> Stores.ValueFactory<K> withKeys(org.apache.kafka.common.serialization.Serde<K> keySerde)
Begin to create aKeyValueStoreby specifying the serializer and deserializer for the keys.- Parameters:
keySerde- the serialization factory for keys; may be null- Returns:
- the interface used to specify the type of values; never null
-
-