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
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description void
acceptObjectId(long objectId)
<C extends Consumer<Object>>
Ccollect(C collector, long... objectIds)
Object
get()
Object
getObject(long objectId)
Persister
getPersister()
PersistenceRoots
loadRoots()
Object
lookupObject(long objectId)
void
readBinaryEntities(ByteBuffer entitiesData)
Expects a raw memory address pointing to the location of a entity raw binary data, starting with its header.void
registerCustomRootRefactoring(Object rootInstance, long customRootObjectId)
void
registerDefaultRootRefactoring(Object rootInstance, long defaultRootObjectId)
Deprecated.void
registerSkip(long objectId)
void
requireReferenceEager(long objectId)
void
requireReferenceLazy(long objectId)
void
requireRoot(Object rootInstance, long rootObjectId)
void
validateType(Object object, long objectId)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceLoadHandler
getObjectRetriever
-
-
-
-
Method Detail
-
readBinaryEntities
public void readBinaryEntities(ByteBuffer entitiesData)
Description copied from interface:BinaryEntityDataReader
Expects a raw memory address pointing to the location of a entity raw binary data, starting with its header.- Specified by:
readBinaryEntities
in interfaceBinaryEntityDataReader
-
lookupObject
public final Object lookupObject(long objectId)
- Specified by:
lookupObject
in interfacePersistenceLoadHandler
- Specified by:
lookupObject
in interfacePersistenceObjectLookup
-
requireRoot
public final void requireRoot(Object rootInstance, long rootObjectId)
- Specified by:
requireRoot
in interfacePersistenceLoadHandler
-
registerCustomRootRefactoring
public final void registerCustomRootRefactoring(Object rootInstance, long customRootObjectId)
- Specified by:
registerCustomRootRefactoring
in interfacePersistenceLoadHandler
-
registerDefaultRootRefactoring
@Deprecated public final void registerDefaultRootRefactoring(Object rootInstance, long defaultRootObjectId)
Deprecated.- Specified by:
registerDefaultRootRefactoring
in interfacePersistenceLoadHandler
-
validateType
public void validateType(Object object, long objectId)
- Specified by:
validateType
in interfacePersistenceLoadHandler
-
acceptObjectId
public final void acceptObjectId(long objectId)
- Specified by:
acceptObjectId
in interfacePersistenceObjectIdAcceptor
-
requireReferenceLazy
public final void requireReferenceLazy(long objectId)
-
requireReferenceEager
public final void requireReferenceEager(long objectId)
- Specified by:
requireReferenceEager
in interfacePersistenceReferenceLoader
-
get
public final Object get()
- Specified by:
get
in interfacePersistenceRetrieving
-
getObject
public final Object getObject(long objectId)
- Specified by:
getObject
in interfaceObjectSwizzling
- Specified by:
getObject
in interfacePersistenceRetrieving
-
collect
public final <C extends Consumer<Object>> C collect(C collector, long... objectIds)
- Specified by:
collect
in interfacePersistenceRetrieving
-
loadRoots
public PersistenceRoots loadRoots()
- Specified by:
loadRoots
in interfacePersistenceLoader
-
registerSkip
public final void registerSkip(long objectId)
- Specified by:
registerSkip
in interfacePersistenceLoader
-
getPersister
public final Persister getPersister()
- Specified by:
getPersister
in interfacePersistenceLoadHandler
-
-