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 void
acceptObjectId(long objectId)
<C extends Consumer<Object>>
Ccollect(C collector, long... objectIds)
Object
get()
Object
getObject(long objectId)
PersistenceObjectRetriever
getObjectRetriever()
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
registerSkip(long objectId)
-
-
-
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 interfacePersistenceObjectIdResolver
- Specified by:
lookupObject
in interfacePersistenceObjectLookup
-
acceptObjectId
public final void acceptObjectId(long objectId)
- Specified by:
acceptObjectId
in interfacePersistenceObjectIdAcceptor
-
get
public final Object get()
- Specified by:
get
in interfacePersistenceRetrieving
-
getObject
public final Object getObject(long objectId)
- Specified by:
getObject
in interfacePersistenceObjectRetriever
- 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<Binary>
-
registerSkip
public final void registerSkip(long objectId)
- Specified by:
registerSkip
in interfacePersistenceLoader<Binary>
-
getObjectRetriever
public PersistenceObjectRetriever getObjectRetriever()
- Specified by:
getObjectRetriever
in interfacePersistenceObjectIdResolver
-
-