Interface Segment
-
- All Superinterfaces:
BatchWritingStore,KeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>,ReadOnlyKeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>,StateStore
public interface Segment extends KeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>, BatchWritingStore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]>all()Return an iterator over all keys in this store.voiddestroy()KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]>range(org.apache.kafka.common.utils.Bytes from, org.apache.kafka.common.utils.Bytes to)Get an iterator over a given range of keys.-
Methods inherited from interface org.apache.kafka.streams.state.internals.BatchWritingStore
addToBatch, write
-
Methods inherited from interface org.apache.kafka.streams.state.KeyValueStore
delete, put, putAll, putIfAbsent
-
Methods inherited from interface org.apache.kafka.streams.state.ReadOnlyKeyValueStore
approximateNumEntries, get
-
Methods inherited from interface org.apache.kafka.streams.processor.StateStore
close, flush, init, isOpen, name, persistent
-
-
-
-
Method Detail
-
destroy
void destroy() throws java.io.IOException- Throws:
java.io.IOException
-
all
KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]> all()
Description copied from interface:ReadOnlyKeyValueStoreReturn an iterator over all keys in this store. This iterator must be closed after use. The returned iterator must be safe fromConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.- Specified by:
allin interfaceReadOnlyKeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>- Returns:
- An iterator of all key/value pairs in the store.
-
range
KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]> range(org.apache.kafka.common.utils.Bytes from, org.apache.kafka.common.utils.Bytes to)
Description copied from interface:ReadOnlyKeyValueStoreGet an iterator over a given range of keys. This iterator must be closed after use. The returned iterator must be safe fromConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.- Specified by:
rangein interfaceReadOnlyKeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>- Parameters:
from- The first key that could be in the rangeto- The last key that could be in the range- Returns:
- The iterator for this range.
-
-