K - key typeV - value typepublic class SMap<K,V> extends Object implements com.hazelcast.core.IMap<K,V>
| Constructor and Description |
|---|
SMap(com.hazelcast.core.IMap<byte[],byte[]> baseMap,
org.onosproject.store.serializers.StoreSerializer serializer)
Creates a SMap instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
boolean includeValue) |
String |
addEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
K key,
boolean includeValue) |
String |
addEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
com.hazelcast.query.Predicate<K,V> predicate,
boolean includeValue)
Deprecated.
|
String |
addEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
com.hazelcast.query.Predicate<K,V> predicate,
K key,
boolean includeValue)
Deprecated.
|
void |
addIndex(String attribute,
boolean ordered)
Deprecated.
|
String |
addInterceptor(com.hazelcast.map.MapInterceptor interceptor)
Deprecated.
|
String |
addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener) |
String |
addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
com.hazelcast.query.Predicate<K,V> predicate,
boolean includeValue)
Deprecated.
|
String |
addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener,
com.hazelcast.query.Predicate<K,V> predicate,
K key,
boolean includeValue)
Deprecated.
|
<SuppliedValue,Result> |
aggregate(com.hazelcast.mapreduce.aggregation.Supplier<K,V,SuppliedValue> supplier,
com.hazelcast.mapreduce.aggregation.Aggregation<K,SuppliedValue,Result> aggregation)
Deprecated.
|
<SuppliedValue,Result> |
aggregate(com.hazelcast.mapreduce.aggregation.Supplier<K,V,SuppliedValue> supplier,
com.hazelcast.mapreduce.aggregation.Aggregation<K,SuppliedValue,Result> aggregation,
com.hazelcast.mapreduce.JobTracker jobTracker)
Deprecated.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
delete(Object key) |
void |
destroy() |
Set<Map.Entry<K,V>> |
entrySet() |
Set<Map.Entry<K,V>> |
entrySet(com.hazelcast.query.Predicate predicate)
Deprecated.
|
boolean |
evict(K key) |
void |
evictAll() |
Map<K,Object> |
executeOnEntries(com.hazelcast.map.EntryProcessor entryProcessor)
Deprecated.
|
Map<K,Object> |
executeOnEntries(com.hazelcast.map.EntryProcessor entryProcessor,
com.hazelcast.query.Predicate predicate)
Deprecated.
|
Object |
executeOnKey(K key,
com.hazelcast.map.EntryProcessor entryProcessor)
Deprecated.
|
Map<K,Object> |
executeOnKeys(Set<K> keys,
com.hazelcast.map.EntryProcessor entryProcessor)
Deprecated.
|
void |
flush() |
void |
forceUnlock(K key) |
V |
get(Object key) |
Map<K,V> |
getAll(Set<K> keys) |
Future<V> |
getAsync(K key) |
com.hazelcast.core.EntryView<K,V> |
getEntryView(K key)
Deprecated.
|
Object |
getId()
Deprecated.
|
com.hazelcast.monitor.LocalMapStats |
getLocalMapStats() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
boolean |
isEmpty() |
boolean |
isLocked(K key) |
Set<K> |
keySet() |
Set<K> |
keySet(com.hazelcast.query.Predicate predicate)
Deprecated.
|
void |
loadAll(boolean replaceExistingValues) |
void |
loadAll(Set<K> keys,
boolean replaceExistingValues) |
Set<K> |
localKeySet() |
Set<K> |
localKeySet(com.hazelcast.query.Predicate predicate)
Deprecated.
|
void |
lock(K key) |
void |
lock(K key,
long leaseTime,
TimeUnit timeUnit) |
V |
put(K key,
V value) |
V |
put(K key,
V value,
long ttl,
TimeUnit timeunit) |
void |
putAll(Map<? extends K,? extends V> map) |
Future<V> |
putAsync(K key,
V value) |
Future<V> |
putAsync(K key,
V value,
long ttl,
TimeUnit timeunit) |
V |
putIfAbsent(K key,
V value) |
V |
putIfAbsent(K key,
V value,
long ttl,
TimeUnit timeunit) |
void |
putTransient(K key,
V value,
long ttl,
TimeUnit timeunit) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
Future<V> |
removeAsync(K key) |
boolean |
removeEntryListener(String id) |
void |
removeInterceptor(String id) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
set(K key,
V value) |
void |
set(K key,
V value,
long ttl,
TimeUnit timeunit) |
int |
size() |
Future |
submitToKey(K key,
com.hazelcast.map.EntryProcessor entryProcessor)
Deprecated.
|
void |
submitToKey(K key,
com.hazelcast.map.EntryProcessor entryProcessor,
com.hazelcast.core.ExecutionCallback callback)
Deprecated.
|
boolean |
tryLock(K key) |
boolean |
tryLock(K key,
long time,
TimeUnit timeunit) |
boolean |
tryPut(K key,
V value,
long timeout,
TimeUnit timeunit) |
boolean |
tryRemove(K key,
long timeout,
TimeUnit timeunit) |
void |
unlock(K key) |
Collection<V> |
values() |
Collection<V> |
values(com.hazelcast.query.Predicate predicate)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic SMap(com.hazelcast.core.IMap<byte[],byte[]> baseMap,
org.onosproject.store.serializers.StoreSerializer serializer)
baseMap - base IMap to useserializer - serializer to use for both key and valuepublic int size()
public boolean isEmpty()
@Deprecated public Object getId()
getId in interface com.hazelcast.core.DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectpublic String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectpublic boolean containsKey(Object key)
public boolean containsValue(Object value)
public void delete(Object key)
public void loadAll(boolean replaceExistingValues)
public void clear()
public V putIfAbsent(K key, V value)
putIfAbsent in interface com.hazelcast.core.BaseMap<K,V>putIfAbsent in interface com.hazelcast.core.IMap<K,V>putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>public boolean isLocked(K key)
public boolean tryLock(K key)
public boolean tryLock(K key, long time, TimeUnit timeunit) throws InterruptedException
tryLock in interface com.hazelcast.core.IMap<K,V>InterruptedExceptionpublic void forceUnlock(K key)
public String addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener)
@Deprecated public String addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener, com.hazelcast.query.Predicate<K,V> predicate, boolean includeValue)
@Deprecated public String addLocalEntryListener(com.hazelcast.core.EntryListener<K,V> listener, com.hazelcast.query.Predicate<K,V> predicate, K key, boolean includeValue)
@Deprecated public String addInterceptor(com.hazelcast.map.MapInterceptor interceptor)
public void removeInterceptor(String id)
public String addEntryListener(com.hazelcast.core.EntryListener<K,V> listener, boolean includeValue)
public boolean removeEntryListener(String id)
public String addEntryListener(com.hazelcast.core.EntryListener<K,V> listener, K key, boolean includeValue)
@Deprecated public String addEntryListener(com.hazelcast.core.EntryListener<K,V> listener, com.hazelcast.query.Predicate<K,V> predicate, boolean includeValue)
@Deprecated public String addEntryListener(com.hazelcast.core.EntryListener<K,V> listener, com.hazelcast.query.Predicate<K,V> predicate, K key, boolean includeValue)
@Deprecated public com.hazelcast.core.EntryView<K,V> getEntryView(K key)
public Collection<V> values()
@Deprecated public Set<K> keySet(com.hazelcast.query.Predicate predicate)
@Deprecated public Set<Map.Entry<K,V>> entrySet(com.hazelcast.query.Predicate predicate)
@Deprecated public Collection<V> values(com.hazelcast.query.Predicate predicate)
@Deprecated public Set<K> localKeySet(com.hazelcast.query.Predicate predicate)
@Deprecated public void addIndex(String attribute, boolean ordered)
public com.hazelcast.monitor.LocalMapStats getLocalMapStats()
@Deprecated public Object executeOnKey(K key, com.hazelcast.map.EntryProcessor entryProcessor)
@Deprecated public Map<K,Object> executeOnKeys(Set<K> keys, com.hazelcast.map.EntryProcessor entryProcessor)
@Deprecated public void submitToKey(K key, com.hazelcast.map.EntryProcessor entryProcessor, com.hazelcast.core.ExecutionCallback callback)
@Deprecated public Future submitToKey(K key, com.hazelcast.map.EntryProcessor entryProcessor)
@Deprecated public Map<K,Object> executeOnEntries(com.hazelcast.map.EntryProcessor entryProcessor)
@Deprecated public Map<K,Object> executeOnEntries(com.hazelcast.map.EntryProcessor entryProcessor, com.hazelcast.query.Predicate predicate)
@Deprecated public <SuppliedValue,Result> Result aggregate(com.hazelcast.mapreduce.aggregation.Supplier<K,V,SuppliedValue> supplier, com.hazelcast.mapreduce.aggregation.Aggregation<K,SuppliedValue,Result> aggregation)
@Deprecated public <SuppliedValue,Result> Result aggregate(com.hazelcast.mapreduce.aggregation.Supplier<K,V,SuppliedValue> supplier, com.hazelcast.mapreduce.aggregation.Aggregation<K,SuppliedValue,Result> aggregation, com.hazelcast.mapreduce.JobTracker jobTracker)
Copyright © 2014. All rights reserved.