Class RocksStateKeysIterator<K>
- java.lang.Object
-
- org.apache.flink.state.rocksdb.iterator.AbstractRocksStateKeysIterator<K>
-
- org.apache.flink.state.rocksdb.iterator.RocksStateKeysIterator<K>
-
- Type Parameters:
K
- the type of the iterated objects, which are keys in RocksDB.
- All Implemented Interfaces:
AutoCloseable
,Iterator<K>
public class RocksStateKeysIterator<K> extends AbstractRocksStateKeysIterator<K> implements Iterator<K>
Adapter class to bridge betweenRocksIteratorWrapper
andIterator
to iterate over the keys. This class is not thread safe.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.state.rocksdb.iterator.AbstractRocksStateKeysIterator
ambiguousKeyPossible, byteArrayDataInputView, iterator, keyGroupPrefixBytes, keySerializer, state
-
-
Constructor Summary
Constructors Constructor Description RocksStateKeysIterator(RocksIteratorWrapper iterator, String state, TypeSerializer<K> keySerializer, int keyGroupPrefixBytes, boolean ambiguousKeyPossible, byte[] namespaceBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
K
next()
-
Methods inherited from class org.apache.flink.state.rocksdb.iterator.AbstractRocksStateKeysIterator
close, deserializeKey
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
RocksStateKeysIterator
public RocksStateKeysIterator(@Nonnull RocksIteratorWrapper iterator, @Nonnull String state, @Nonnull TypeSerializer<K> keySerializer, int keyGroupPrefixBytes, boolean ambiguousKeyPossible, @Nonnull byte[] namespaceBytes)
-
-