Class BinaryFileSource
java.lang.Object
one.microstream.persistence.binary.internal.BinaryFileSource
- All Implemented Interfaces:
MessageWaiter,PersistenceSource<Binary>
public class BinaryFileSource extends Object implements PersistenceSource<Binary>, MessageWaiter
-
Method Summary
Modifier and Type Method Description static BinaryFileSourceNew(AFile file, boolean switchByteOrder)XGettingCollection<? extends Binary>read()A general, unspecific read, e.g.XGettingCollection<? extends Binary>readByObjectIds(PersistenceIdSet[] oids)voidwaitForBytes(int readCount)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.PersistenceSource
closeSource, prepareSource
-
Method Details
-
New
-
read
Description copied from interface:PersistenceSourceA general, unspecific read, e.g. to initially read data in general from the attached data source.Examples:
- simply ALL data from a plain file.
- only root nodes (and all recursively referenced nodes) of a graph-based database.
- nothing at all if not applicable, resulting in
nullbeing returned.
- Specified by:
readin interfacePersistenceSource<Binary>- Returns:
- data segments containing general data if applicable, otherwise
null. - Throws:
PersistenceExceptionTransfer
-
readByObjectIds
public XGettingCollection<? extends Binary> readByObjectIds(PersistenceIdSet[] oids) throws PersistenceExceptionTransfer- Specified by:
readByObjectIdsin interfacePersistenceSource<Binary>- Throws:
PersistenceExceptionTransfer
-
waitForBytes
public void waitForBytes(int readCount)- Specified by:
waitForBytesin interfaceMessageWaiter
-