Class BinaryFileStorage
- java.lang.Object
-
- one.microstream.persistence.binary.internal.BinaryFileStorage
-
- All Implemented Interfaces:
PersistenceChannel<Binary>
,PersistenceSource<Binary>
,PersistenceTarget<Binary>
public final class BinaryFileStorage extends Object implements PersistenceChannel<Binary>
-
-
Constructor Summary
Constructors Constructor Description BinaryFileStorage(PersistenceSource<Binary> source, PersistenceTarget<Binary> target)
-
Method Summary
Modifier and Type Method Description XGettingCollection<? extends Binary>
read()
A general, unspecific read, e.g.XGettingCollection<? extends Binary>
readByObjectIds(PersistenceIdSet[] oids)
void
write(Binary data)
-
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.PersistenceChannel
closeChannel, prepareChannel
-
Methods inherited from interface one.microstream.persistence.types.PersistenceSource
closeSource, prepareSource
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTarget
closeTarget, prepareTarget
-
-
-
-
Constructor Detail
-
BinaryFileStorage
public BinaryFileStorage(PersistenceSource<Binary> source, PersistenceTarget<Binary> target)
-
-
Method Detail
-
write
public final void write(Binary data) throws PersistenceExceptionTransfer
- Specified by:
write
in interfacePersistenceTarget<Binary>
- Throws:
PersistenceExceptionTransfer
-
read
public final XGettingCollection<? extends Binary> read() throws PersistenceExceptionTransfer
Description copied from interface:PersistenceSource
A 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
null
being returned.
- Specified by:
read
in interfacePersistenceSource<Binary>
- Returns:
- data segments containing general data if applicable, otherwise
null
. - Throws:
PersistenceExceptionTransfer
-
readByObjectIds
public final XGettingCollection<? extends Binary> readByObjectIds(PersistenceIdSet[] oids) throws PersistenceExceptionTransfer
- Specified by:
readByObjectIds
in interfacePersistenceSource<Binary>
- Throws:
PersistenceExceptionTransfer
-
-