K - key typeV - value typepublic class MapTransaction<K,V> extends Object
| Constructor and Description |
|---|
MapTransaction(TransactionId transactionId,
List<MapUpdate<K,V>> updates) |
| Modifier and Type | Method and Description |
|---|---|
<S,T> MapTransaction<S,T> |
map(Function<K,S> keyMapper,
Function<V,T> valueMapper)
Maps this instance to another
MapTransaction with different key and value types. |
String |
toString() |
TransactionId |
transactionId()
Returns the transaction identifier.
|
List<MapUpdate<K,V>> |
updates()
Returns the list of map updates.
|
public MapTransaction(TransactionId transactionId, List<MapUpdate<K,V>> updates)
public TransactionId transactionId()
public <S,T> MapTransaction<S,T> map(Function<K,S> keyMapper, Function<V,T> valueMapper)
MapTransaction with different key and value types.S - key type of returned instanceT - value type of returned instancekeyMapper - function for mapping key typesvalueMapper - function for mapping value types