Class AbstractForStStateKeysIterator<K>

java.lang.Object
org.apache.flink.state.forst.sync.AbstractForStStateKeysIterator<K>
Type Parameters:
K - the type of the iterated objects, which are keys in RocksDB.
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ForStStateKeysAndNamespaceIterator, ForStStateKeysIterator

@Internal public abstract class AbstractForStStateKeysIterator<K> extends Object implements AutoCloseable
Base class for iterators over RocksDB column families.
  • Field Details

    • iterator

      @Nonnull protected final ForStIteratorWrapper iterator
    • state

      @Nonnull protected final String state
    • keySerializer

      @Nonnull protected final org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer
    • ambiguousKeyPossible

      protected final boolean ambiguousKeyPossible
    • keyGroupPrefixBytes

      protected final int keyGroupPrefixBytes
    • byteArrayDataInputView

      protected final org.apache.flink.core.memory.DataInputDeserializer byteArrayDataInputView
  • Constructor Details

    • AbstractForStStateKeysIterator

      public AbstractForStStateKeysIterator(@Nonnull ForStIteratorWrapper iterator, @Nonnull String state, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int keyGroupPrefixBytes, boolean ambiguousKeyPossible)
  • Method Details

    • deserializeKey

      protected K deserializeKey(byte[] keyBytes, org.apache.flink.core.memory.DataInputDeserializer readView) throws IOException
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable