public class CompiledMapQueryContext<K,KI,MKI extends net.openhft.chronicle.hash.serialization.internal.MetaBytesInterop<K,? super KI>,V,VI,MVI extends net.openhft.chronicle.hash.serialization.internal.MetaBytesInterop<V,? super VI>,R> extends net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface implements AutoCloseable, ChecksumEntry, HashEntry<K>, SegmentLock, net.openhft.chronicle.hash.impl.stage.entry.Alloc, net.openhft.chronicle.hash.impl.stage.entry.KeyHashCode, net.openhft.chronicle.hash.impl.stage.entry.LocksInterface, ExternalMapQueryContext<K,V,R>, MapAbsentEntry<K,V>, MapContext<K,V,R>, MapEntry<K,V>, net.openhft.chronicle.map.impl.MapAbsentEntryHolder<K,V>, net.openhft.chronicle.map.impl.QueryContextInterface<K,V,R>, net.openhft.chronicle.map.impl.VanillaChronicleMapHolder<K,KI,MKI,V,VI,MVI,R>
Modifier and Type | Class and Description |
---|---|
class |
CompiledMapQueryContext.AcquireHandle |
class |
CompiledMapQueryContext.DefaultReturnValue |
class |
CompiledMapQueryContext.EntryKeyBytesData |
static class |
CompiledMapQueryContext.EntryPresence |
class |
CompiledMapQueryContext.EntryValueBytesData |
class |
CompiledMapQueryContext.HashKeyCrc32PayloadChecksumStrategy |
class |
CompiledMapQueryContext.InputFirstValueBytesData |
class |
CompiledMapQueryContext.InputKeyBytesData |
class |
CompiledMapQueryContext.InputKeyInstanceData |
class |
CompiledMapQueryContext.InputSecondValueBytesData |
class |
CompiledMapQueryContext.InputValueInstanceData |
class |
CompiledMapQueryContext.ReadLock |
static class |
CompiledMapQueryContext.SearchState |
class |
CompiledMapQueryContext.UpdateLock |
class |
CompiledMapQueryContext.UsingReturnValue |
class |
CompiledMapQueryContext.WrappedValueInstanceData |
class |
CompiledMapQueryContext.WriteLock |
Constructor and Description |
---|
CompiledMapQueryContext(net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface c,
net.openhft.chronicle.map.VanillaChronicleMap<K,KI,MKI,V,VI,MVI,R> m) |
CompiledMapQueryContext(net.openhft.chronicle.map.VanillaChronicleMap<K,KI,MKI,V,VI,MVI,R> m) |
public final int indexInContextChain
public final CompiledMapQueryContext.ReadLock innerReadLock
public static final org.slf4j.Logger LOG
public final CompiledMapQueryContext.WriteLock innerWriteLock
public final CompiledMapQueryContext.UpdateLock innerUpdateLock
public final ThreadLocalCopies copies
public final net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface rootContextInThisThread
public final List<net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface> contextChain
public final CompiledMapQueryContext.AcquireHandle acquireHandle
public final CompiledMapQueryContext.UsingReturnValue usingReturnValue
public final CompiledMapQueryContext.InputKeyBytesData inputKeyBytesValue
public final CompiledMapQueryContext.DefaultReturnValue defaultReturnValue
public final CompiledMapQueryContext.EntryValueBytesData entryValue
public final CompiledMapQueryContext.InputFirstValueBytesData inputFirstValueBytesValue
public final net.openhft.chronicle.hash.impl.JavaLangBytesReusableBytesStore inputStore
public final ReusableBitSet freeList
public final CompiledMapQueryContext.InputSecondValueBytesData inputSecondValueBytesValue
public final CompiledMapQueryContext.InputKeyInstanceData inputKeyInstanceValue
public final PointerBytesStore segmentBS
public final CompiledMapQueryContext.InputValueInstanceData inputValueInstanceValue
public final net.openhft.chronicle.hash.impl.PublicMultiStoreBytes segmentBytes
public final VI valueInterop
public final net.openhft.chronicle.hash.impl.stage.entry.ChecksumStrategy checksumStrategy
public final BytesReader<V> valueReader
public final KI keyInterop
public final BytesReader<K> keyReader
public long searchStartPos
public long keySize
public int segmentIndex
public int latestSameThreadSegmentModCount
public int contextModCount
public boolean nestedContextsLockedOnSameSegment
public net.openhft.chronicle.hash.impl.stage.entry.LocksInterface rootContextLockedOnThisSegment
public int segmentTier
public long tierIndex
public long segmentBaseAddr
public long hashLookupPos
public long keyHash
public long pos
public long keySizeOffset
public long keyOffset
public long valueSizeOffset
public long valueSize
public long valueOffset
public int entrySizeInChunks
protected CompiledMapQueryContext.SearchState searchState
public int allocatedChunks
public Bytes inputBytes
public long inputKeySize
public long inputKeyOffset
public long firstInputValueSize
public long firstInputValueOffset
public long secondInputValueSize
public long secondInputValueOffset
public CompiledMapQueryContext(net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface c, net.openhft.chronicle.map.VanillaChronicleMap<K,KI,MKI,V,VI,MVI,R> m)
public boolean readZeroGuarded()
public boolean updateZeroGuarded()
public boolean writeZeroGuarded()
public int decrementUpdateGuarded()
public int decrementWriteGuarded()
public String debugContextsAndLocksGuarded()
public void close()
ExternalHashQueryContext
try (ExternalHashQueryContext<K> q = hash.queryContext(key))
q.writeLock().lock();
// ...make a query under exclusive lock
// NOT NEEDED - q.readLock().unlock();
}
close
in interface AutoCloseable
close
in interface ExternalHashQueryContext<K>
public void incrementModCountGuarded()
public void incrementReadGuarded()
public void incrementUpdateGuarded()
public void incrementWriteGuarded()
public void readUnlockAndDecrementCountGuarded()
public void setHashLookupPosGuarded(long hashLookupPos)
public void setLocalLockStateGuarded(net.openhft.chronicle.hash.impl.LocalLockState newState)
public void setSearchStateGuarded(CompiledMapQueryContext.SearchState newSearchState)
public int changeAndGetLatestSameThreadSegmentModCount(int change)
changeAndGetLatestSameThreadSegmentModCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int changeAndGetTotalReadLockCount(int change)
changeAndGetTotalReadLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int changeAndGetTotalUpdateLockCount(int change)
changeAndGetTotalUpdateLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int changeAndGetTotalWriteLockCount(int change)
changeAndGetTotalWriteLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int decrementRead()
public int decrementUpdate()
public int decrementWrite()
public void incrementModCount()
public void incrementRead()
public void incrementUpdate()
public void incrementWrite()
public void readUnlockAndDecrementCount()
public void setHashLookupPos(long hashLookupPos)
public void setLocalLockState(net.openhft.chronicle.hash.impl.LocalLockState newState)
public void setNestedContextsLockedOnSameSegment(boolean nestedContextsLockedOnSameSegment)
setNestedContextsLockedOnSameSegment
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public void setNextNode(net.openhft.chronicle.hash.impl.stage.entry.LocksInterface nextNode)
setNextNode
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public void setSearchState(CompiledMapQueryContext.SearchState newSearchState)
public Thread owner()
public String debugContextsAndLocks()
public boolean readZero()
public boolean updateZero()
public boolean writeZero()
public int indexInContextChain()
public CompiledMapQueryContext.ReadLock innerReadLock()
public CompiledMapQueryContext.WriteLock innerWriteLock()
public org.slf4j.Logger LOG()
public CompiledMapQueryContext.UpdateLock innerUpdateLock()
public CompiledMapQueryContext.EntryKeyBytesData entryKey()
public net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface rootContextInThisThread()
public ThreadLocalCopies copies()
public CompiledMapQueryContext.UsingReturnValue usingReturnValue()
public CompiledMapQueryContext.AcquireHandle acquireHandle()
public List<net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface> contextChain()
public CompiledMapQueryContext.InputKeyBytesData inputKeyBytesValue()
public CompiledMapQueryContext.DefaultReturnValue defaultReturnValue()
public CompiledMapQueryContext.EntryValueBytesData entryValue()
public CompiledMapQueryContext.WrappedValueInstanceData wrappedValueInstanceValue()
public net.openhft.chronicle.hash.impl.JavaLangBytesReusableBytesStore inputStore()
public CompiledMapQueryContext.InputFirstValueBytesData inputFirstValueBytesValue()
public CompiledMapQueryContext.InputSecondValueBytesData inputSecondValueBytesValue()
public CompiledMapQueryContext.HashKeyCrc32PayloadChecksumStrategy hashKeyCrc32PayloadChecksumStrategy()
public CompiledMapQueryContext.InputKeyInstanceData inputKeyInstanceValue()
public CompiledMapQueryContext.InputValueInstanceData inputValueInstanceValue()
public VI valueInterop()
public net.openhft.chronicle.hash.impl.stage.entry.ChecksumStrategy checksumStrategy()
public BytesReader<V> valueReader()
public KI keyInterop()
public BytesReader<K> keyReader()
public boolean checkSum()
ChecksumEntry
checkSum
in interface ChecksumEntry
true
if stored checksum equals to checksum computed from the entry bytespublic void closeQuerySegmentStagesDeregisterIterationContextLockedInThisThreadDependants()
public <T> T contextAtIndexInChain(int index)
public void closeVanillaChronicleMapHolderImplContextAtIndexInChainDependants()
public void closeValueBytesInteropValueMetaInteropDependants()
public <T extends net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface> T getContext(Class<? extends T> contextClass, Function<net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface,T> createChaining)
getContext
in class net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface
public void checkNestedContextsQueryDifferentKeys(net.openhft.chronicle.hash.impl.stage.entry.LocksInterface innermostContextOnThisSegment)
public void closeQuerySegmentStagesCheckNestedContextsQueryDifferentKeysDependants()
public void checkIterationContextNotLockedInThisThread()
public void checkAccessingFromOwnerThread()
public void closeOwnerThreadHolderCheckAccessingFromOwnerThreadDependants()
public MapAbsentEntry<K,V> absent()
public ChronicleMap<K,V> map()
MapContext
ChronicleMap
. Synonym to MapContext.hash()
.map
in interface net.openhft.chronicle.map.impl.VanillaChronicleMapHolder<K,KI,MKI extends net.openhft.chronicle.hash.serialization.internal.MetaBytesInterop<K,? super KI>,V,VI,MVI extends net.openhft.chronicle.hash.serialization.internal.MetaBytesInterop<V,? super VI>,R>
map
in interface MapContext<K,V,R>
public void closeKeyBytesInteropKeyMetaInteropDependants()
public void closeQuerySegmentStagesRegisterIterationContextLockedInThisThreadDependants()
public net.openhft.chronicle.hash.impl.CompactOffHeapLinearHashTable hl()
public void closeQueryHashLookupSearchHlDependants()
public boolean searchKeyInit()
public void initSearchKey(long searchKey)
public long searchKey()
public long searchStartPos()
public void closeSearchKey()
public void closeSearchKeyDependants()
public long innerEntrySize(long sizeOfEverythingBeforeValue, long valueSize)
public final long entrySize(long keySize, long valueSize)
public List<net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface> getContextChain()
getContextChain
in class net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface
public void updateChecksum()
ChecksumEntry
MapAbsentEntry.doInsert(Data)
, MapEntry.doReplaceValue(Data)
: it is performed automatically underneath. Call this method,
only when value bytes was updated directly, for example though Chronicle-Value-generated
interface.updateChecksum
in interface ChecksumEntry
public boolean keySizeInit()
public void initKeySize(long keySize)
public long keySize()
public void closeKeySize()
public void closeKeySizeDependants()
public boolean segmentIndexInit()
public void initSegmentIndex(int segmentIndex)
public int segmentIndex()
SegmentLock
segmentIndex
in interface HashQueryContext<K>
segmentIndex
in interface SegmentLock
public void closeSegmentIndex()
public void closeSegmentIndexDependants()
public boolean segmentHeaderInit()
segmentHeaderInit
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public long segmentHeaderAddress()
segmentHeaderAddress
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public net.openhft.chronicle.hash.impl.SegmentHeader segmentHeader()
public void closeSegmentHeader()
public void closeSegmentHeaderDependants()
public long entries()
public void entries(long size)
public long deleted()
public long size()
public void deleted(long deleted)
public boolean locksInit()
locksInit
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public boolean nestedContextsLockedOnSameSegment()
public int contextModCount()
public int latestSameThreadSegmentModCount()
latestSameThreadSegmentModCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int totalReadLockCount()
totalReadLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int totalUpdateLockCount()
totalUpdateLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public int totalWriteLockCount()
totalWriteLockCount
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public net.openhft.chronicle.hash.impl.LocalLockState localLockState()
public net.openhft.chronicle.hash.impl.stage.entry.LocksInterface nextNode()
nextNode
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public net.openhft.chronicle.hash.impl.stage.entry.LocksInterface rootContextLockedOnThisSegment()
rootContextLockedOnThisSegment
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public void closeLocksDependants()
public String debugLocksState()
debugLocksState
in interface net.openhft.chronicle.hash.impl.stage.entry.LocksInterface
public boolean segmentTierInit()
public void initSegmentTier()
public void initSegmentTier(int tier, long tierIndex, long tierBaseAddr)
public int segmentTier()
public long segmentBaseAddr()
public long tierIndex()
public void closeSegmentTier()
public void closeSegmentTierDependants()
public void closeQueryHashLookupSearchAddrDependants()
public long tierCountersAreaAddr()
public void closeQuerySegmentStagesTierCountersAreaAddrDependants()
public long prevTierIndex()
public void prevTierIndex(long prevTierIndex)
public void closeQuerySegmentStagesPrevTierIndexDependants()
public long nextPosToSearchFromTiered()
public void nextPosToSearchFromTiered(long nextPosToSearchFrom)
public void nextPosToSearchFrom(long nextPosToSearchFrom)
public void updateNextPosToSearchFrom(long allocated, int chunks)
public long nextTierIndex()
public void closeQuerySegmentStagesNextTierIndexDependants()
public boolean hasNextTier()
public void closeQuerySegmentStagesHasNextTierDependants()
public void nextTierIndex(long nextTierIndex)
public void nextTier()
public void closeQuerySegmentStagesNextTierDependants()
public void goToLastTier()
public boolean hashLookupPosInit()
public void initHashLookupPos()
public void initHashLookupPos(long hashLookupPos)
public long hashLookupPos()
public void closeHashLookupPos()
public void closeHashLookupPosDependants()
public void found()
public void closeQueryHashLookupSearchFoundDependants()
public long nextPos()
public void closeQueryHashLookupSearchNextPosDependants()
public boolean checkSlotContainsExpectedKeyAndValue(long value)
public void closeQueryHashLookupSearchCheckSlotContainsExpectedKeyAndValueDependants()
public void putValueVolatile(long newValue)
public void remove()
public long entrySpaceOffset()
public ReusableBitSet freeList()
public PointerBytesStore segmentBS()
public net.openhft.chronicle.hash.impl.PublicMultiStoreBytes segmentBytes()
public void closeSegmentDependants()
public void free(long fromPos, int chunks)
public long allocReturnCode(int chunks)
public void prevTier()
public void goToFirstTier()
public long alloc(int chunks)
net.openhft.chronicle.hash.impl.stage.entry.Alloc
alloc
in interface net.openhft.chronicle.hash.impl.stage.entry.Alloc
chunks
- chunks to allocatepublic boolean usedInit()
usedInit
in class net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface
public void initUsed(boolean used)
initUsed
in class net.openhft.chronicle.hash.impl.stage.hash.ChainingInterface
public void closeInputKey()
public void closeInputKeyDependants()
public boolean keyHashInit()
public long keyHash()
public void closeKeyHash()
public long keyHashCode()
keyHashCode
in interface net.openhft.chronicle.hash.impl.stage.entry.KeyHashCode
public boolean posInit()
public void initPos(long pos)
public long pos()
public void closePos()
public void closePosDependants()
public boolean entryOffsetInit()
public void initEntryOffset()
public long keySizeOffset()
public void closeEntryOffset()
public void closeEntryOffsetDependants()
public void copyExistingEntry(long newPos, long bytesToCopy, long oldKeyAddr, long oldKeySizeAddr)
public void readExistingEntry(long pos)
public void closeQueryMapEntryStagesReadExistingEntryDependants()
public boolean keyOffsetInit()
public void initKeyOffset(long keyOffset)
public long keyOffset()
public void closeKeyOffset()
public void closeKeyOffsetDependants()
public void writeNewEntry(long pos, Data<?> key)
public long keyEnd()
public void closeQueryMapEntryStagesKeyEndDependants()
public void closeQueryMapEntryStagesCountValueSizeOffsetDependants()
public boolean valueSizeOffsetInit()
public long valueSizeOffset()
public void closeValueSizeOffset()
public void closeValueSizeOffsetDependants()
public boolean valueSizeInit()
public long valueOffset()
public long valueSize()
public void closeValueSize()
public void closeValueSizeDependants()
public void writeValue(Data<?> value)
public void initValue_WithoutSize(Data<?> value, long oldValueSizeOffset, long oldValueSize, long oldValueOffset)
protected long entryEnd()
public void closeQueryMapEntryStagesEntryEndDependants()
public void closeQueryMapEntryStagesEntrySizeDependants()
public boolean entrySizeInChunksInit()
public void initEntrySizeInChunks(int actuallyUsedChunks)
public int entrySizeInChunks()
public void closeEntrySizeInChunks()
public void innerRemoveEntryExceptHashLookupUpdate()
public void initValue(Data<?> value)
public void closeKeySearchKeyEqualsDependants()
public void initKeySearch()
public CompiledMapQueryContext.SearchState searchState()
public void closeKeySearchDependants()
public void incrementSegmentEntriesIfNeeded()
public boolean searchStateDeleted()
public boolean searchStatePresent()
public void closeKeySearchSearchStatePresentDependants()
public boolean searchStateAbsent()
public void closeMapQueryTieredEntryPresentDependants()
public void putNewVolatile(long value)
public boolean presenceOfEntryInit()
public void initPresenceOfEntry(CompiledMapQueryContext.EntryPresence entryPresence)
public CompiledMapQueryContext.EntryPresence entryPresence()
public void closePresenceOfEntry()
public boolean entryPresent()
public void dropSearchIfNestedContextsAndPresentHashLookupSlotCheckFailed()
public void closeMapQueryDropSearchIfNestedContextsAndPresentHashLookupSlotCheckFailedDependants()
public void checkOnEachPublicOperation()
public void closeQueryCheckOnEachPublicOperationCheckOnEachPublicOperationDependants()
public R replaceValue(@NotNull MapEntry<K,V> entry, Data<V> newValue)
MapEntryOperations
replaceValue
in interface MapEntryOperations<K,V,R>
entry
- the entry to replace the value in@NotNull public InterProcessLock updateLock()
InterProcessReadWriteUpdateLock
lock()
or other
locking methods (tryLock()
, etc.) on this lock acquires the read lock, as well.
Calling unlock()
on this lock also releases the write lock.
Any attempt to acquire this lock (including tryLock()
, if the read lock is already
held by the current thread, but the update lock is not yet, is prevented by throwing IllegalInterProcessLockStateException
.
updateLock
in interface InterProcessReadWriteUpdateLock
@NotNull public InterProcessLock readLock()
InterProcessReadWriteUpdateLock
unlock()
on this
lock also releases the update and write locks, if held, as well.readLock
in interface ReadWriteLock
readLock
in interface InterProcessReadWriteUpdateLock
public Data<V> wrapValueAsData(V value)
MapContext
Data
. Useful when you need to pass a value
to some method accepting Data
, for example, MapEntryOperations.replaceValue(
MapEntry, Data)
, without allocating new objects (i. e. garbage) and ThreadLocals
.
The returned Data
object shouldn't outlive this MapContext
.
wrapValueAsData
in interface MapContext<K,V,R>
value
- the value object to wrapData
@NotNull public Data<V> value()
MapEntry
public Data<K> queriedKey()
HashQueryContext
Data
.queriedKey
in interface HashQueryContext<K>
public Data<V> defaultValue(@NotNull MapAbsentEntry<K,V> absentEntry)
DefaultValueProvider
absentEntry
context. This is primarily used in ChronicleMap.acquireUsing(K, V)
operation implementation, i. e. MapMethods.acquireUsing(net.openhft.chronicle.map.MapQueryContext<K, V, R>, net.openhft.chronicle.map.ReturnValue<V>)
.defaultValue
in interface DefaultValueProvider<K,V>
@NotNull public Data<K> absentKey()
HashAbsentEntry
ChronicleHash
.absentKey
in interface HashAbsentEntry<K>
@Nullable public MapAbsentEntry<K,V> absentEntry()
HashQueryContext
null
, if the entry is present.absentEntry
in interface HashQueryContext<K>
absentEntry
in interface MapQueryContext<K,V,R>
protected void putPrefix()
@NotNull public Data<K> key()
HashEntry
public R remove(@NotNull MapEntry<K,V> entry)
MapEntryOperations
remove
in interface MapEntryOperations<K,V,R>
entry
- the entry to remove@NotNull public InterProcessLock writeLock()
InterProcessReadWriteUpdateLock
lock()
or other
locking methods (tryLock()
, etc.) on this lock acquires the read and update locks,
as well.
Any attempt to acquire this lock (including tryLock()
, if the read lock is already
held by the current thread, but the update and write locks are not yet, is prevented by
throwing IllegalInterProcessLockStateException
.
writeLock
in interface ReadWriteLock
writeLock
in interface InterProcessReadWriteUpdateLock
public MapEntry<K,V> entry()
HashQueryContext
ChronicleHash
, returns null
is the entry is absent.entry
in interface HashQueryContext<K>
entry
in interface MapQueryContext<K,V,R>
@NotNull public MapContext<K,V,?> context()
HashEntry
@NotNull public Data<V> defaultValue()
MapAbsentEntry
ChronicleMap.acquireUsing(K, V)
operation
implementation, i. e. MapMethods.acquireUsing(net.openhft.chronicle.map.MapQueryContext<K, V, R>, net.openhft.chronicle.map.ReturnValue<V>)
.
This method if the default implementation for DefaultValueProvider.defaultValue(MapAbsentEntry)
,
which might be customized over the default.
defaultValue
in interface MapAbsentEntry<K,V>
DefaultValueProvider.defaultValue(MapAbsentEntry)
public R insert(@NotNull MapAbsentEntry<K,V> absentEntry, Data<V> value)
MapEntryOperations
the key
from
the given insertion context (absentEntry
) and the given value
.insert
in interface MapEntryOperations<K,V,R>
public void doRemove()
HashEntry
ChronicleHash
.public boolean allocatedChunksInit()
public void initAllocatedChunks(int allocatedChunks)
public int allocatedChunks()
public void closeAllocatedChunks()
public boolean initEntryAndKeyCopying(long entrySize, long bytesToCopy)
public final void freeExtraAllocatedChunks()
public void doReplaceValue(Data<V> newValue)
MapEntry
newValue
.
This method is the default implementation for MapEntryOperations.replaceValue(
MapEntry, Data)
, which might be customized over the default.
doReplaceValue
in interface MapEntry<K,V>
newValue
- the value to be put into the map instead of the current
valuepublic boolean initEntryAndKey(long entrySize)
public void doInsert(Data<V> value)
MapAbsentEntry
value
.
This method is the default implementation for MapEntryOperations.insert(
MapAbsentEntry, Data)
, which might be customized over the default.
doInsert
in interface MapAbsentEntry<K,V>
value
- the value to insert into the map along with the key
MapEntryOperations.insert(MapAbsentEntry, Data)
public boolean inputBytesInit()
public void initInputBytes(Bytes inputBytes)
public Bytes inputBytes()
public void closeInputBytes()
public void closeInputBytesDependants()
public boolean inputKeyOffsetsInit()
public long inputKeyOffset()
public long inputKeySize()
public void closeInputKeyOffsets()
public void closeInputKeyOffsetsDependants()
public boolean firstInputValueOffsetsInit()
public long firstInputValueOffset()
public long firstInputValueSize()
public void closeFirstInputValueOffsets()
public void closeFirstInputValueOffsetsDependants()
public boolean secondInputValueOffsetsInit()
public long secondInputValueOffset()
public long secondInputValueSize()
public void closeSecondInputValueOffsets()
public void closeSecondInputValueOffsetsDependants()
Copyright © 2015. All rights reserved.