Class BinaryLoader.Default
- java.lang.Object
-
- org.eclipse.serializer.persistence.binary.types.BinaryLoader.Default
-
- All Implemented Interfaces:
BinaryEntityDataReader,BinaryLoader,PersistenceLoader,PersistenceLoadHandler,PersistenceObjectIdAcceptor,PersistenceObjectLookup,PersistenceReferenceLoader,PersistenceRetrieving,org.eclipse.serializer.reference.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 org.eclipse.serializer.persistence.binary.types.BinaryLoader
BinaryLoader.Creator, BinaryLoader.CreatorChannelHashing, BinaryLoader.CreatorSimple, BinaryLoader.Default
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidacceptObjectId(long objectId)protected voidaddChunks(org.eclipse.serializer.collections.types.XGettingCollection<? extends Binary> chunks)<C extends Consumer<Object>>
Ccollect(C collector, long... objectIds)Objectget()ObjectgetObject(long objectId)PersistergetPersister()protected voidhandleAllReferences(BinaryLoadItem item)voiditerateEntries(PersistenceAcceptor iterator)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 an 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, wait
-
Methods inherited from interface org.eclipse.serializer.persistence.types.PersistenceLoadHandler
getObjectRetriever
-
-
-
-
Method Detail
-
getPersister
public final Persister getPersister()
- Specified by:
getPersisterin interfacePersistenceLoadHandler
-
readBinaryEntities
public void readBinaryEntities(ByteBuffer entitiesData)
Description copied from interface:BinaryEntityDataReaderExpects a raw memory address pointing to the location of an entity raw binary data, starting with its header.- Specified by:
readBinaryEntitiesin interfaceBinaryEntityDataReader- Parameters:
entitiesData- the buffer to read from
-
lookupTypeHandler
protected PersistenceTypeHandler<Binary,Object> lookupTypeHandler(long tid)
-
handleAllReferences
protected void handleAllReferences(BinaryLoadItem item)
-
loadReferences
protected void loadReferences(BinaryLoadItem entry)
-
lookupObject
public final Object lookupObject(long objectId)
- Specified by:
lookupObjectin interfacePersistenceLoadHandler- Specified by:
lookupObjectin interfacePersistenceObjectLookup
-
requireRoot
public final void requireRoot(Object rootInstance, long rootObjectId)
- 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
public void validateType(Object object, long objectId)
- 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
protected void addChunks(org.eclipse.serializer.collections.types.XGettingCollection<? extends Binary> chunks)
-
get
public final Object get()
- Specified by:
getin interfacePersistenceRetrieving
-
getObject
public final Object getObject(long objectId)
- Specified by:
getObjectin interfaceorg.eclipse.serializer.reference.ObjectSwizzling- 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
-
registerSkip
public final void registerSkip(long objectId)
- Specified by:
registerSkipin interfacePersistenceLoader
-
iterateEntries
public void iterateEntries(PersistenceAcceptor iterator)
- Specified by:
iterateEntriesin interfacePersistenceLoader
-
-