Package one.microstream.storage.types
Class EmbeddedStorageBinarySource.Default
java.lang.Object
one.microstream.storage.types.EmbeddedStorageBinarySource.Default
- All Implemented Interfaces:
PersistenceSource<Binary>
,EmbeddedStorageBinarySource
- Enclosing interface:
- EmbeddedStorageBinarySource
public static final class EmbeddedStorageBinarySource.Default extends Object implements EmbeddedStorageBinarySource
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.EmbeddedStorageBinarySource
EmbeddedStorageBinarySource.Default
-
Constructor Summary
Constructors Constructor Description Default(StorageRequestAcceptor requestAcceptor)
-
Method Summary
Modifier and Type Method Description XGettingCollection<? extends Binary>
read()
A general, unspecific read, e.g.XGettingCollection<? extends Binary>
readByObjectIds(PersistenceIdSet[] oids)
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.PersistenceSource
closeSource, prepareSource
-
Constructor Details
-
Method Details
-
read
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 interfaceEmbeddedStorageBinarySource
- Specified by:
read
in 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:
readByObjectIds
in interfaceEmbeddedStorageBinarySource
- Specified by:
readByObjectIds
in interfacePersistenceSource<Binary>
- Throws:
PersistenceExceptionTransfer
-