Class RocksStateKeysAndNamespaceIterator<K,​N>

  • Type Parameters:
    K - the type of the iterated keys in RocksDB.
    N - the type of the iterated namespaces in RocksDB.
    All Implemented Interfaces:
    AutoCloseable, Iterator<org.apache.flink.api.java.tuple.Tuple2<K,​N>>

    public class RocksStateKeysAndNamespaceIterator<K,​N>
    extends AbstractRocksStateKeysIterator<K>
    implements Iterator<org.apache.flink.api.java.tuple.Tuple2<K,​N>>
    Adapter class to bridge between RocksIteratorWrapper and Iterator to iterate over the keys and namespaces. This class is not thread safe.
    • Constructor Detail

      • RocksStateKeysAndNamespaceIterator

        public RocksStateKeysAndNamespaceIterator​(@Nonnull
                                                  RocksIteratorWrapper iterator,
                                                  @Nonnull
                                                  String state,
                                                  @Nonnull
                                                  org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
                                                  @Nonnull
                                                  org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
                                                  int keyGroupPrefixBytes,
                                                  boolean ambiguousKeyPossible)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<K>
      • next

        public org.apache.flink.api.java.tuple.Tuple2<K,​N> next()
        Specified by:
        next in interface Iterator<K>