Package org.apache.flink.state.forst
Class ForStDBBunchPutRequest<K,N,UK,UV>
- java.lang.Object
-
- org.apache.flink.state.forst.ForStDBPutRequest<K,N,Map<UK,UV>>
-
- org.apache.flink.state.forst.ForStDBBunchPutRequest<K,N,UK,UV>
-
- Type Parameters:
K
- The type of key in put state access request.N
- The type of namespace in put state access request.UK
- The type of user key in put state access request.UV
- The type of user value in put state access request.
public class ForStDBBunchPutRequest<K,N,UK,UV> extends ForStDBPutRequest<K,N,Map<UK,UV>>
The Bunch Put access request for ForStDB.
-
-
Constructor Summary
Constructors Constructor Description ForStDBBunchPutRequest(ContextKey<K,N> key, Map<UK,UV> value, ForStMapState<K,N,UK,UV> table, InternalStateFuture<Void> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
buildSerializedKey(UK userKey)
byte[]
buildSerializedValue(UV singleValue)
Map<?,?>
getBunchValue()
void
process(ForStDBWriteBatchWrapper writeBatchWrapper, org.forstdb.RocksDB db)
-
Methods inherited from class org.apache.flink.state.forst.ForStDBPutRequest
buildSerializedKey, buildSerializedValue, completeStateFuture, completeStateFutureExceptionally, getColumnFamilyHandle, valueIsNull
-
-
-
-
Constructor Detail
-
ForStDBBunchPutRequest
public ForStDBBunchPutRequest(ContextKey<K,N> key, Map<UK,UV> value, ForStMapState<K,N,UK,UV> table, InternalStateFuture<Void> future)
-
-
Method Detail
-
process
public void process(ForStDBWriteBatchWrapper writeBatchWrapper, org.forstdb.RocksDB db) throws IOException, org.forstdb.RocksDBException
- Overrides:
process
in classForStDBPutRequest<K,N,Map<UK,UV>>
- Throws:
IOException
org.forstdb.RocksDBException
-
buildSerializedKey
public byte[] buildSerializedKey(UK userKey) throws IOException
- Throws:
IOException
-
buildSerializedValue
public byte[] buildSerializedValue(UV singleValue) throws IOException
- Throws:
IOException
-
getBunchValue
@VisibleForTesting public Map<?,?> getBunchValue()
-
-