public static class BinaryStorer.Default extends Object implements BinaryStorer, PersistenceStoreHandler<Binary>, PersistenceLocalObjectIdRegistry<Binary>
BinaryStorer.Eager.PersistenceEagerStoringFieldEvaluator.BinaryStorer.Creator, BinaryStorer.Default, BinaryStorer.Eager, BinaryStorer.ItemPersistenceStorer.CreationObserverPersistenceObjectIdRequestor.NoOp<D>| Modifier | Constructor and Description |
|---|---|
protected |
Default(PersistenceObjectManager<Binary> objectManager,
one.microstream.reference.ObjectSwizzling objectRetriever,
PersistenceTypeHandlerManager<Binary> typeManager,
PersistenceTarget<Binary> target,
one.microstream.util.BufferSizeProviderIncremental bufferSizeProvider,
int channelCount,
boolean switchByteOrder) |
| Modifier and Type | Method and Description |
|---|---|
<T> long |
apply(T instance) |
<T> long |
apply(T instance,
PersistenceTypeHandler<Binary,T> localTypeHandler) |
<T> long |
applyEager(T instance) |
<T> long |
applyEager(T instance,
PersistenceTypeHandler<Binary,T> localTypeHandler) |
void |
clear() |
Object |
commit() |
long |
currentCapacity() |
protected static int |
defaultSlotSize() |
PersistenceStorer |
ensureCapacity(long desiredCapacity) |
one.microstream.reference.ObjectSwizzling |
getObjectRetriever() |
protected void |
internalInitialize(int hashLength) |
void |
iterateMergeableEntries(PersistenceAcceptor iterator) |
<T> long |
lookupObjectId(T object,
PersistenceObjectIdRequestor<Binary> objectIdRequestor,
PersistenceTypeHandler<Binary,T> optionalHandler) |
long |
lookupOid(Object object) |
long |
maximumCapacity() |
PersistenceObjectManager<Binary> |
parentObjectManager() |
protected long |
register(Object instance) |
<T> void |
registerEagerOptional(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler) |
<T> void |
registerGuaranteed(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler) |
protected long |
registerGuaranteed(Object instance) |
<T> void |
registerLazyOptional(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler) |
PersistenceStorer |
reinitialize() |
PersistenceStorer |
reinitialize(long initialCapacity) |
long |
size() |
boolean |
skip(Object instance) |
boolean |
skipMapped(Object instance,
long objectId) |
boolean |
skipNulled(Object instance) |
long |
store(Object root) |
void |
storeAll(Iterable<?> instances) |
long[] |
storeAll(Object... instances) |
protected long |
storeGraph(Object root)
Stores the passed instance (always) and interprets it as the root of a graph to be traversed and
have its instances stored recursively if deemed necessary by the logic until all instance
that can be reached by that logic have been handled.
|
protected void |
storeItem(BinaryStorer.Item item) |
protected Binary |
synchComplete() |
protected ChunksBuffer |
synchLookupChunk(long objectId) |
void |
synchRebuildStoreItems() |
void |
synchRebuildStoreItems(int newLength) |
<T> BinaryStorer.Item |
synchRegisterObjectId(T instance,
PersistenceTypeHandler<Binary,? super T> typeHandler,
long objectId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCreatorNoOpprotected Default(PersistenceObjectManager<Binary> objectManager, one.microstream.reference.ObjectSwizzling objectRetriever, PersistenceTypeHandlerManager<Binary> typeManager, PersistenceTarget<Binary> target, one.microstream.util.BufferSizeProviderIncremental bufferSizeProvider, int channelCount, boolean switchByteOrder)
protected static int defaultSlotSize()
public final PersistenceObjectManager<Binary> parentObjectManager()
parentObjectManager in interface PersistenceLocalObjectIdRegistry<Binary>public final one.microstream.reference.ObjectSwizzling getObjectRetriever()
getObjectRetriever in interface PersistenceStoreHandler<Binary>public final long maximumCapacity()
maximumCapacity in interface BinaryStorermaximumCapacity in interface Storerpublic final long currentCapacity()
currentCapacity in interface BinaryStorercurrentCapacity in interface Storerprotected ChunksBuffer synchLookupChunk(long objectId)
protected Binary synchComplete()
public PersistenceStorer reinitialize()
reinitialize in interface BinaryStorerreinitialize in interface PersistenceStorerreinitialize in interface Storerpublic PersistenceStorer reinitialize(long initialCapacity)
reinitialize in interface BinaryStorerreinitialize in interface PersistenceStorerreinitialize in interface Storerprotected void internalInitialize(int hashLength)
public PersistenceStorer ensureCapacity(long desiredCapacity)
ensureCapacity in interface BinaryStorerensureCapacity in interface PersistenceStorerensureCapacity in interface Storerpublic <T> long apply(T instance)
apply in interface PersistenceFunctionapply in interface PersistenceStoreHandler<Binary>public <T> long apply(T instance,
PersistenceTypeHandler<Binary,T> localTypeHandler)
apply in interface PersistenceStoreHandler<Binary>public final <T> long applyEager(T instance)
applyEager in interface PersistenceStoreHandler<Binary>public <T> long applyEager(T instance,
PersistenceTypeHandler<Binary,T> localTypeHandler)
applyEager in interface PersistenceStoreHandler<Binary>protected final long storeGraph(Object root)
root - the root object of the graphprotected final void storeItem(BinaryStorer.Item item)
public final long store(Object root)
store in interface PersistenceStoringpublic final long[] storeAll(Object... instances)
storeAll in interface PersistenceStoringpublic void storeAll(Iterable<?> instances)
storeAll in interface PersistenceStoringpublic void iterateMergeableEntries(PersistenceAcceptor iterator)
iterateMergeableEntries in interface PersistenceLocalObjectIdRegistry<Binary>public final long lookupOid(Object object)
public final <T> long lookupObjectId(T object,
PersistenceObjectIdRequestor<Binary> objectIdRequestor,
PersistenceTypeHandler<Binary,T> optionalHandler)
lookupObjectId in interface PersistenceLocalObjectIdRegistry<Binary>public final <T> void registerGuaranteed(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler)
registerGuaranteed in interface PersistenceObjectIdRequestor<Binary>public <T> void registerLazyOptional(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler)
registerLazyOptional in interface PersistenceObjectIdRequestor<Binary>public <T> void registerEagerOptional(long objectId,
T instance,
PersistenceTypeHandler<Binary,T> optionalHandler)
registerEagerOptional in interface PersistenceObjectIdRequestor<Binary>protected final long register(Object instance)
protected final long registerGuaranteed(Object instance)
public final boolean skipMapped(Object instance, long objectId)
skipMapped in interface Storerpublic final boolean skipNulled(Object instance)
skipNulled in interface Storerpublic final <T> BinaryStorer.Item synchRegisterObjectId(T instance, PersistenceTypeHandler<Binary,? super T> typeHandler, long objectId)
public final void synchRebuildStoreItems()
public final void synchRebuildStoreItems(int newLength)
Copyright © 2022 MicroStream Software. All rights reserved.