Package org.apache.kafka.streams.state
Interface WindowStore<K,V>
-
- Type Parameters:
K- Type of keysV- Type of values
- All Superinterfaces:
ReadOnlyWindowStore<K,V>,StateStore
public interface WindowStore<K,V> extends StateStore, ReadOnlyWindowStore<K,V>
A windowed store interface extendingStateStore.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidput(K key, V value)Put a key-value pair with the current wall-clock time as the timestamp into the corresponding windowvoidput(K key, V value, long timestamp)Put a key-value pair with the given timestamp into the corresponding window-
Methods inherited from interface org.apache.kafka.streams.state.ReadOnlyWindowStore
all, fetch, fetch, fetchAll
-
Methods inherited from interface org.apache.kafka.streams.processor.StateStore
close, flush, init, isOpen, name, persistent
-
-
-
-
Method Detail
-
put
void put(K key, V value)
Put a key-value pair with the current wall-clock time as the timestamp into the corresponding window- Parameters:
key- The key to associate the value tovalue- The value to update, it can be null; if the serialized bytes are also null it is interpreted as deletes- Throws:
java.lang.NullPointerException- If null is used for key.
-
-