Package org.apache.flink.state.forst
Class ForStDBMapEntryIterRequest<K,N,UK,UV>
- java.lang.Object
-
- org.apache.flink.state.forst.ForStDBIterRequest<K,N,UK,UV,Map.Entry<UK,UV>>
-
- org.apache.flink.state.forst.ForStDBMapEntryIterRequest<K,N,UK,UV>
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ForStDBMapEntryIterRequest<K,N,UK,UV> extends ForStDBIterRequest<K,N,UK,UV,Map.Entry<UK,UV>>
The ForStForStDBIterRequestwhich returns the entries of a ForStMapState.
-
-
Constructor Summary
Constructors Constructor Description ForStDBMapEntryIterRequest(ContextKey<K,N> contextKey, ForStMapState<K,N,UK,UV> table, org.apache.flink.runtime.asyncprocessing.StateRequestHandler stateRequestHandler, org.forstdb.RocksIterator rocksIterator, org.apache.flink.core.asyncprocessing.InternalAsyncFuture<org.apache.flink.api.common.state.v2.StateIterator<Map.Entry<UK,UV>>> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildIteratorAndCompleteFuture(Collection<Map.Entry<UK,UV>> partialResult, boolean encounterEnd)voidcompleteStateFutureExceptionally(String message, Throwable ex)Collection<Map.Entry<UK,UV>>deserializeElement(List<org.apache.flink.state.forst.ForStDBIterRequest.RawEntry> entries, int userKeyOffset)-
Methods inherited from class org.apache.flink.state.forst.ForStDBIterRequest
close, deserializeUserKey, deserializeUserValue, getKeyPrefixBytes, process, startWithKeyPrefix
-
-
-
-
Constructor Detail
-
ForStDBMapEntryIterRequest
public ForStDBMapEntryIterRequest(ContextKey<K,N> contextKey, ForStMapState<K,N,UK,UV> table, org.apache.flink.runtime.asyncprocessing.StateRequestHandler stateRequestHandler, @Nullable org.forstdb.RocksIterator rocksIterator, org.apache.flink.core.asyncprocessing.InternalAsyncFuture<org.apache.flink.api.common.state.v2.StateIterator<Map.Entry<UK,UV>>> future)
-
-
Method Detail
-
completeStateFutureExceptionally
public void completeStateFutureExceptionally(String message, Throwable ex)
- Specified by:
completeStateFutureExceptionallyin classForStDBIterRequest<K,N,UK,UV,Map.Entry<UK,UV>>
-
deserializeElement
public Collection<Map.Entry<UK,UV>> deserializeElement(List<org.apache.flink.state.forst.ForStDBIterRequest.RawEntry> entries, int userKeyOffset) throws IOException
- Specified by:
deserializeElementin classForStDBIterRequest<K,N,UK,UV,Map.Entry<UK,UV>>- Throws:
IOException
-
buildIteratorAndCompleteFuture
public void buildIteratorAndCompleteFuture(Collection<Map.Entry<UK,UV>> partialResult, boolean encounterEnd)
- Specified by:
buildIteratorAndCompleteFuturein classForStDBIterRequest<K,N,UK,UV,Map.Entry<UK,UV>>
-
-