Class BinaryLoader.Default
- java.lang.Object
-
- one.microstream.persistence.binary.types.BinaryLoader.Default
-
- All Implemented Interfaces:
BinaryEntityDataReader,BinaryLoader,PersistenceLoader<Binary>,PersistenceObjectIdAcceptor,PersistenceObjectIdResolver,PersistenceObjectLookup,PersistenceObjectRetriever,PersistenceRetrieving
- Enclosing interface:
- BinaryLoader
public static final class BinaryLoader.Default extends Object implements BinaryLoader, BinaryEntityDataReader, PersistenceObjectIdAcceptor
-
-
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 voidacceptObjectId(long objectId)<C extends Consumer<Object>>
Ccollect(C collector, long... objectIds)Objectget()ObjectgetObject(long objectId)PersistenceObjectRetrievergetObjectRetriever()PersistenceRootsloadRoots()ObjectlookupObject(long objectId)voidreadBinaryEntities(ByteBuffer entitiesData)Expects a raw memory address pointing to the location of a entity raw binary data, starting with its header.voidregisterSkip(long objectId)
-
-
-
Method Detail
-
readBinaryEntities
public void readBinaryEntities(ByteBuffer entitiesData)
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
-
lookupObject
public final Object lookupObject(long objectId)
- Specified by:
lookupObjectin interfacePersistenceObjectIdResolver- Specified by:
lookupObjectin interfacePersistenceObjectLookup
-
acceptObjectId
public final void acceptObjectId(long objectId)
- Specified by:
acceptObjectIdin interfacePersistenceObjectIdAcceptor
-
get
public final Object get()
- Specified by:
getin interfacePersistenceRetrieving
-
getObject
public final Object getObject(long objectId)
- Specified by:
getObjectin interfacePersistenceObjectRetriever- Specified by:
getObjectin interfacePersistenceRetrieving
-
collect
public final <C extends Consumer<Object>> C collect(C collector, long... objectIds)
- Specified by:
collectin interfacePersistenceRetrieving
-
loadRoots
public PersistenceRoots loadRoots()
- Specified by:
loadRootsin interfacePersistenceLoader<Binary>
-
registerSkip
public final void registerSkip(long objectId)
- Specified by:
registerSkipin interfacePersistenceLoader<Binary>
-
getObjectRetriever
public PersistenceObjectRetriever getObjectRetriever()
- Specified by:
getObjectRetrieverin interfacePersistenceObjectIdResolver
-
-