Class BinaryLoader.Default
java.lang.Object
one.microstream.persistence.binary.types.BinaryLoader.Default
- All Implemented Interfaces:
BinaryEntityDataReader,BinaryLoader,PersistenceLoader,PersistenceLoadHandler,PersistenceObjectIdAcceptor,PersistenceObjectLookup,PersistenceReferenceLoader,PersistenceRetrieving,ObjectSwizzling
- Enclosing interface:
- BinaryLoader
public static final class BinaryLoader.Default extends Object implements BinaryLoader, BinaryEntityDataReader, PersistenceReferenceLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryLoader
BinaryLoader.Creator, BinaryLoader.CreatorChannelHashing, BinaryLoader.CreatorSimple, BinaryLoader.Default -
Method Summary
Modifier and Type Method Description voidacceptObjectId(long objectId)protected voidaddChunks(XGettingCollection<? extends Binary> chunks)<C extends Consumer<Object>>
Ccollect(C collector, long... objectIds)Objectget()ObjectgetObject(long objectId)Retrieves the instance associated with the passed objectId.PersistergetPersister()protected voidhandleAllReferences(BinaryLoadItem item)protected voidloadReferences(BinaryLoadItem entry)PersistenceRootsloadRoots()ObjectlookupObject(long objectId)protected PersistenceTypeHandler<Binary,Object>lookupTypeHandler(long tid)voidreadBinaryEntities(ByteBuffer entitiesData)Expects a raw memory address pointing to the location of a entity raw binary data, starting with its header.voidregisterCustomRootRefactoring(Object rootInstance, long customRootObjectId)Deprecated.voidregisterDefaultRootRefactoring(Object rootInstance, long defaultRootObjectId)Deprecated.voidregisterSkip(long objectId)voidrequireReferenceEager(long objectId)voidrequireReferenceLazy(long objectId)voidrequireRoot(Object rootInstance, long rootObjectId)voidvalidateType(Object object, long objectId)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceLoadHandler
getObjectRetriever
-
Method Details
-
getPersister
- Specified by:
getPersisterin interfacePersistenceLoadHandler
-
readBinaryEntities
Description copied from interface:BinaryEntityDataReaderExpects a raw memory address pointing to the location of a entity raw binary data, starting with its header.- Specified by:
readBinaryEntitiesin interfaceBinaryEntityDataReader
-
lookupTypeHandler
-
handleAllReferences
-
loadReferences
-
lookupObject
- Specified by:
lookupObjectin interfacePersistenceLoadHandler- Specified by:
lookupObjectin interfacePersistenceObjectLookup
-
requireRoot
- Specified by:
requireRootin interfacePersistenceLoadHandler
-
registerCustomRootRefactoring
@Deprecated public final void registerCustomRootRefactoring(Object rootInstance, long customRootObjectId)Deprecated.- Specified by:
registerCustomRootRefactoringin interfacePersistenceLoadHandler
-
registerDefaultRootRefactoring
@Deprecated public final void registerDefaultRootRefactoring(Object rootInstance, long defaultRootObjectId)Deprecated.- Specified by:
registerDefaultRootRefactoringin interfacePersistenceLoadHandler
-
validateType
- Specified by:
validateTypein interfacePersistenceLoadHandler
-
acceptObjectId
public final void acceptObjectId(long objectId)- Specified by:
acceptObjectIdin interfacePersistenceObjectIdAcceptor
-
requireReferenceLazy
public final void requireReferenceLazy(long objectId) -
requireReferenceEager
public final void requireReferenceEager(long objectId)- Specified by:
requireReferenceEagerin interfacePersistenceReferenceLoader
-
addChunks
-
get
- Specified by:
getin interfacePersistenceRetrieving
-
getObject
Description copied from interface:ObjectSwizzlingRetrieves the instance associated with the passed objectId. Retrieving means guaranteeing that the associated instance is returned. If it does not yet exist, it will be created from persisted data, including all non-lazily referenced objects it is connected to.- Specified by:
getObjectin interfaceObjectSwizzling- Specified by:
getObjectin interfacePersistenceRetrieving- Parameters:
objectId- the objectId defining which instance to return.- Returns:
- the instance associated with the passed objectId.
-
collect
- Specified by:
collectin interfacePersistenceRetrieving
-
loadRoots
- Specified by:
loadRootsin interfacePersistenceLoader
-
registerSkip
public final void registerSkip(long objectId)- Specified by:
registerSkipin interfacePersistenceLoader
-