public interface Segment<K,V> extends ConcurrentMap<K,V>, MapInternals, ReadWriteLock, HashingMap<K,V>
AbstractConcurrentOffHeapMap| Modifier and Type | Method and Description |
|---|---|
MetadataTuple<V> |
computeIfAbsentWithMetadata(K key,
Function<? super K,? extends MetadataTuple<V>> mappingFunction) |
MetadataTuple<V> |
computeIfPresentWithMetadata(K key,
BiFunction<? super K,? super MetadataTuple<V>,? extends MetadataTuple<V>> remappingFunction) |
MetadataTuple<V> |
computeWithMetadata(K key,
BiFunction<? super K,? super MetadataTuple<V>,? extends MetadataTuple<V>> remappingFunction) |
void |
destroy() |
V |
fill(K key,
V value)
See
OffHeapHashMap.fill(Object, Object) for a detailed description. |
V |
fill(K key,
V value,
int metadata) |
Integer |
getAndSetMetadata(K key,
int mask,
int values) |
ReentrantReadWriteLock |
getLock()
Return the
ReentrantReadWriteLock used by this segment. |
Integer |
getMetadata(K key,
int mask) |
V |
getValueAndSetMetadata(K key,
int mask,
int values) |
V |
put(K key,
V value,
int metadata) |
boolean |
removeNoReturn(Object key) |
boolean |
shrink() |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllgetAllocatedMemory, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSize, getTableCapacity, getUsedSlotCount, getVitalMemoryreadLock, writeLockremoveAllWithHashV fill(K key, V value)
OffHeapHashMap.fill(Object, Object) for a detailed description.key - key with which the specified value is to be associatedvalue - value to be associated with the specified keyReentrantReadWriteLock getLock() throws UnsupportedOperationException
ReentrantReadWriteLock used by this segment.UnsupportedOperationException - if this segment does not use a RRWLboolean removeNoReturn(Object key)
void destroy()
boolean shrink()
MetadataTuple<V> computeWithMetadata(K key, BiFunction<? super K,? super MetadataTuple<V>,? extends MetadataTuple<V>> remappingFunction)
MetadataTuple<V> computeIfAbsentWithMetadata(K key, Function<? super K,? extends MetadataTuple<V>> mappingFunction)
MetadataTuple<V> computeIfPresentWithMetadata(K key, BiFunction<? super K,? super MetadataTuple<V>,? extends MetadataTuple<V>> remappingFunction)
Copyright © 2015–2024. All rights reserved.