V2 - value type of other mapV1 - value type of this mappublic class TranscodingAsyncConsistentTreeMap<V1,V2> extends Object implements org.onosproject.store.service.AsyncConsistentTreeMap<V1>
AsyncConsistentTreeMap that maps its operations to operations on
a differently typed AsyncConsistentTreeMap by transcoding operation
inputs and outputs.| Constructor and Description |
|---|
TranscodingAsyncConsistentTreeMap(org.onosproject.store.service.AsyncConsistentTreeMap<V2> backingMap,
Function<V1,V2> valueEncoder,
Function<V2,V1> valueDecoder) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addListener(org.onosproject.store.service.MapEventListener<String,V1> listener,
Executor executor) |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
ceilingEntry(String key) |
CompletableFuture<String> |
ceilingKey(String key) |
CompletableFuture<Void> |
clear() |
CompletableFuture<Void> |
commit(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
computeIf(String key,
Predicate<? super V1> condition,
BiFunction<? super String,? super V1,? extends V1> remappingFunction) |
CompletableFuture<Boolean> |
containsKey(String key) |
CompletableFuture<Boolean> |
containsValue(V1 value) |
CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>>> |
entrySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
firstEntry() |
CompletableFuture<String> |
firstKey() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
floorEntry(String key) |
CompletableFuture<String> |
floorKey(String key) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
get(String key) |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
higherEntry(String key) |
CompletableFuture<String> |
higherKey(String key) |
CompletableFuture<Set<String>> |
keySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
lastEntry() |
CompletableFuture<String> |
lastKey() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
lowerEntry(String key) |
CompletableFuture<String> |
lowerKey(String key) |
String |
name() |
CompletableFuture<NavigableSet<String>> |
navigableKeySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
pollFirstEntry() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> |
pollLastEntry() |
CompletableFuture<Boolean> |
prepare(org.onosproject.store.service.MapTransaction<String,V1> transaction) |
CompletableFuture<Boolean> |
prepareAndCommit(org.onosproject.store.service.MapTransaction<String,V1> transaction) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
put(String key,
V1 value) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
putAndGet(String key,
V1 value) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
putIfAbsent(String key,
V1 value) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
remove(String key) |
CompletableFuture<Boolean> |
remove(String key,
long version) |
CompletableFuture<Boolean> |
remove(String key,
V1 value) |
CompletableFuture<Void> |
removeListener(org.onosproject.store.service.MapEventListener<String,V1> listener) |
CompletableFuture<Boolean> |
replace(String key,
long oldVersion,
V1 newValue) |
CompletableFuture<org.onosproject.store.service.Versioned<V1>> |
replace(String key,
V1 value) |
CompletableFuture<Boolean> |
replace(String key,
V1 oldValue,
V1 newValue) |
CompletableFuture<Void> |
rollback(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<Integer> |
size() |
CompletableFuture<NavigableMap<String,V1>> |
subMap(String upperKey,
String lowerKey,
boolean inclusiveUpper,
boolean inclusiveLower) |
CompletableFuture<Collection<org.onosproject.store.service.Versioned<V1>>> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasTreeMap, asTreeMappublic CompletableFuture<String> firstKey()
firstKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<String> lastKey()
lastKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> ceilingEntry(String key)
ceilingEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> floorEntry(String key)
floorEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> higherEntry(String key)
higherEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> lowerEntry(String key)
lowerEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> firstEntry()
firstEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> lastEntry()
lastEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> pollFirstEntry()
pollFirstEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>> pollLastEntry()
pollLastEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<String> lowerKey(String key)
lowerKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<String> floorKey(String key)
floorKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<String> ceilingKey(String key)
ceilingKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<String> higherKey(String key)
higherKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<NavigableSet<String>> navigableKeySet()
navigableKeySet in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public CompletableFuture<NavigableMap<String,V1>> subMap(String upperKey, String lowerKey, boolean inclusiveUpper, boolean inclusiveLower)
subMap in interface org.onosproject.store.service.AsyncConsistentTreeMap<V1>public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic CompletableFuture<Integer> size()
public CompletableFuture<Boolean> containsKey(String key)
public CompletableFuture<Boolean> containsValue(V1 value)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> get(String key)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> computeIf(String key, Predicate<? super V1> condition, BiFunction<? super String,? super V1,? extends V1> remappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> put(String key, V1 value)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> putAndGet(String key, V1 value)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> remove(String key)
public CompletableFuture<Void> clear()
public CompletableFuture<Set<String>> keySet()
public CompletableFuture<Collection<org.onosproject.store.service.Versioned<V1>>> values()
public CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<V1>>>> entrySet()
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> putIfAbsent(String key, V1 value)
public CompletableFuture<Boolean> remove(String key, V1 value)
public CompletableFuture<Boolean> remove(String key, long version)
public CompletableFuture<org.onosproject.store.service.Versioned<V1>> replace(String key, V1 value)
public CompletableFuture<Boolean> replace(String key, V1 oldValue, V1 newValue)
public CompletableFuture<Boolean> replace(String key, long oldVersion, V1 newValue)
public CompletableFuture<Void> addListener(org.onosproject.store.service.MapEventListener<String,V1> listener, Executor executor)
public CompletableFuture<Void> removeListener(org.onosproject.store.service.MapEventListener<String,V1> listener)
public CompletableFuture<Boolean> prepare(org.onosproject.store.service.MapTransaction<String,V1> transaction)
public CompletableFuture<Void> commit(org.onosproject.store.primitives.TransactionId transactionId)
public CompletableFuture<Void> rollback(org.onosproject.store.primitives.TransactionId transactionId)