Class Stores.StoreFactory

  • Enclosing class:
    Stores

    public abstract static class Stores.StoreFactory
    extends java.lang.Object
    • Constructor Detail

      • StoreFactory

        public StoreFactory()
    • Method Detail

      • withStringKeys

        public Stores.ValueFactory<java.lang.String> withStringKeys()
        Begin to create a KeyValueStore by specifying the keys will be Strings.
        Returns:
        the interface used to specify the type of values; never null
      • withIntegerKeys

        public Stores.ValueFactory<java.lang.Integer> withIntegerKeys()
        Begin to create a KeyValueStore by specifying the keys will be Integers.
        Returns:
        the interface used to specify the type of values; never null
      • withLongKeys

        public Stores.ValueFactory<java.lang.Long> withLongKeys()
        Begin to create a KeyValueStore by specifying the keys will be Longs.
        Returns:
        the interface used to specify the type of values; never null
      • withDoubleKeys

        public Stores.ValueFactory<java.lang.Double> withDoubleKeys()
        Begin to create a KeyValueStore by specifying the keys will be Doubles.
        Returns:
        the interface used to specify the type of values; never null
      • withByteBufferKeys

        public Stores.ValueFactory<java.nio.ByteBuffer> withByteBufferKeys()
        Begin to create a KeyValueStore by specifying the keys will be ByteBuffer.
        Returns:
        the interface used to specify the type of values; never null
      • withByteArrayKeys

        public Stores.ValueFactory<byte[]> withByteArrayKeys()
        Begin to create a KeyValueStore by 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 a KeyValueStore by 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 a KeyValueStore by 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