Class ForStDBIterRequest<K,​N,​UK,​UV,​R>

    • Constructor Detail

      • ForStDBIterRequest

        public ForStDBIterRequest​(ContextKey<K,​N> contextKey,
                                  ForStMapState<K,​N,​UK,​UV> table,
                                  org.apache.flink.runtime.asyncprocessing.StateRequestHandler stateRequestHandler,
                                  org.forstdb.RocksIterator rocksIterator)
    • Method Detail

      • deserializeUserValue

        protected UV deserializeUserValue​(byte[] valueBytes)
                                   throws IOException
        Throws:
        IOException
      • deserializeUserKey

        protected UK deserializeUserKey​(byte[] userKeyBytes,
                                        int userKeyOffset)
                                 throws IOException
        Throws:
        IOException
      • startWithKeyPrefix

        protected static boolean startWithKeyPrefix​(byte[] keyPrefixBytes,
                                                    byte[] rawKeyBytes,
                                                    int kgPrefixBytes)
        Check if the raw key bytes start with the key prefix bytes.
        Parameters:
        keyPrefixBytes - the key prefix bytes.
        rawKeyBytes - the raw key bytes.
        kgPrefixBytes - the number of key group prefix bytes.
        Returns:
        true if the raw key bytes start with the key prefix bytes.
      • process

        public void process​(org.forstdb.RocksDB db,
                            int cacheSizeLimit)
                     throws IOException
        Throws:
        IOException
      • completeStateFutureExceptionally

        public abstract void completeStateFutureExceptionally​(String message,
                                                              Throwable ex)
      • deserializeElement

        public abstract Collection<R> deserializeElement​(List<org.apache.flink.state.forst.ForStDBIterRequest.RawEntry> entries,
                                                         int userKeyOffset)
                                                  throws IOException
        Throws:
        IOException
      • buildIteratorAndCompleteFuture

        public abstract void buildIteratorAndCompleteFuture​(Collection<R> partialResult,
                                                            boolean encounterEnd)