/** * @return a PointerBytesStore which can be set to any addressForRead */ @NotNull static PointerBytesStore nativePointer() { return new PointerBytesStore(); }
public CompiledMapIterationContext(ChainingInterface rootContextInThisThread ,VanillaChronicleMap map) { contextChain = rootContextInThisThread.getContextChain(); indexInContextChain = contextChain.size(); contextChain.add(this); this.rootContextInThisThread = rootContextInThisThread; initMap(map); this.entryValue = new EntryValueBytesData(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.owner = Thread.currentThread(); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.entryKey = new EntryKeyBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); this.innerUpdateLock = new UpdateLock(); }
public CompiledMapIterationContext(VanillaChronicleMap map) { contextChain = new ArrayList<>(); contextChain.add(this); indexInContextChain = 0; rootContextInThisThread = this; initMap(map); this.entryValue = new EntryValueBytesData(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.owner = Thread.currentThread(); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.entryKey = new EntryKeyBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); this.innerUpdateLock = new UpdateLock(); }
public CompiledReplicatedMapIterationContext(VanillaChronicleMap map) { contextChain = new ArrayList<>(); contextChain.add(this); indexInContextChain = 0; rootContextInThisThread = this; initMap(map); this.dummyValue = new DummyValueZeroData(); this.owner = Thread.currentThread(); this.entryDelegating = new ReplicatedMapEntryDelegating(); this.entryKey = new EntryKeyBytesData(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.entryValue = new EntryValueBytesData(); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.absentEntryDelegating = new ReplicatedMapAbsentDelegatingForIteration(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.innerUpdateLock = new UpdateLock(); this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); }
public CompiledReplicatedMapIterationContext(ChainingInterface rootContextInThisThread ,VanillaChronicleMap map) { contextChain = rootContextInThisThread.getContextChain(); indexInContextChain = contextChain.size(); contextChain.add(this); this.rootContextInThisThread = rootContextInThisThread; initMap(map); this.dummyValue = new DummyValueZeroData(); this.owner = Thread.currentThread(); this.entryDelegating = new ReplicatedMapEntryDelegating(); this.entryKey = new EntryKeyBytesData(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.entryValue = new EntryValueBytesData(); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.absentEntryDelegating = new ReplicatedMapAbsentDelegatingForIteration(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.innerUpdateLock = new UpdateLock(); this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); }
public CompiledMapQueryContext(VanillaChronicleMap map) { contextChain = new ArrayList<>(); contextChain.add(this); indexInContextChain = 0; rootContextInThisThread = this; initMap(map); this.inputKeyBytesData = new InputKeyBytesData(); this.innerInputValueDataAccess = this.m().valueDataAccess.copy(); this.defaultReturnValue = new DefaultReturnValue(); this.owner = Thread.currentThread(); this.zeroValueData = new DummyValueZeroData(); this.entryKey = new EntryKeyBytesData(); this.usingReturnValue = new UsingReturnValue(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.acquireHandle = new AcquireHandle(); this.entryValue = new EntryValueBytesData(); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.innerInputKeyDataAccess = this.h().keyDataAccess.copy(); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.innerUpdateLock = new UpdateLock(); this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); }
this.wrappedValueBytesData = new WrappedValueBytesData(); this.cleanupAction = new CompiledReplicatedMapQueryContext.CleanupAction(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy();
public CompiledMapQueryContext(ChainingInterface rootContextInThisThread ,VanillaChronicleMap map) { contextChain = rootContextInThisThread.getContextChain(); indexInContextChain = contextChain.size(); contextChain.add(this); this.rootContextInThisThread = rootContextInThisThread; initMap(map); this.inputKeyBytesData = new InputKeyBytesData(); this.innerInputValueDataAccess = this.m().valueDataAccess.copy(); this.defaultReturnValue = new DefaultReturnValue(); this.owner = Thread.currentThread(); this.zeroValueData = new DummyValueZeroData(); this.entryKey = new EntryKeyBytesData(); this.usingReturnValue = new UsingReturnValue(); this.valueReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.m().valueReader); this.acquireHandle = new AcquireHandle(); this.entryValue = new EntryValueBytesData(); this.wrappedValueInstanceDataHolder = new WrappedValueInstanceDataHolder(); this.innerReadLock = new ReadLock(); this.keyReader = net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNeeded(this.h().keyReader); this.innerInputKeyDataAccess = this.h().keyDataAccess.copy(); this.innerWriteLock = new WriteLock(); this.wrappedValueBytesData = new WrappedValueBytesData(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy(); this.checksumStrategy = this.h().checksumEntries ? this.hashEntryChecksumStrategy : NoChecksumStrategy.INSTANCE; this.innerUpdateLock = new UpdateLock(); this.freeList = new ReusableBitSet(new SingleThreadedFlatBitSetFrame(MemoryUnit.LONGS.align(this.h().actualChunksPerSegmentTier, MemoryUnit.BITS)) , Access.nativeAccess() , null , 0); }
this.wrappedValueBytesData = new WrappedValueBytesData(); this.cleanupAction = new CompiledReplicatedMapQueryContext.CleanupAction(); this.segmentBS = new PointerBytesStore(); this.segmentBytes = new VanillaBytes(segmentBS); this.hashEntryChecksumStrategy = new HashEntryChecksumStrategy();