Class BinaryStorer.Eager
- java.lang.Object
-
- one.microstream.persistence.binary.types.BinaryStorer.Default
-
- one.microstream.persistence.binary.types.BinaryStorer.Eager
-
- All Implemented Interfaces:
BinaryStorer
,PersistenceAcceptor
,PersistenceFunction
,PersistenceStoreHandler
,PersistenceStorer<Binary>
,PersistenceStoring
,Storer
- Enclosing interface:
- BinaryStorer
public static final class BinaryStorer.Eager extends BinaryStorer.Default
Identical toBinaryStorer.Default
, but stores every referenced instance eagerly.
For a more differentiated solution between the two simple, but extreme strategies, seePersistenceEagerStoringFieldEvaluator
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryStorer
BinaryStorer.Creator, BinaryStorer.Default, BinaryStorer.Eager, BinaryStorer.Item
-
-
Constructor Summary
Constructors Constructor Description Eager()
-
Method Summary
Modifier and Type Method Description <T> long
apply(T instance)
The "natural" way of handling an instance as defined by the implementation.-
Methods inherited from class one.microstream.persistence.binary.types.BinaryStorer.Default
accept, applyEager, clear, commit, currentCapacity, ensureCapacity, getObjectRetriever, initialize, initialize, isInitialized, lookupOid, maximumCapacity, rebuildStoreItems, rebuildStoreItems, registerobjectId, registerSkip, registerSkip, reinitialize, reinitialize, size, store, storeAll, storeAll, storeSelfStoring
-
-
-
-
Method Detail
-
apply
public final <T> long apply(T instance)
Description copied from interface:PersistenceStoreHandler
The "natural" way of handling an instance as defined by the implementation.- Specified by:
apply
in interfacePersistenceFunction
- Specified by:
apply
in interfacePersistenceStoreHandler
- Overrides:
apply
in classBinaryStorer.Default
- Parameters:
instance
- the instance to which the function shall be applied.- Returns:
- the object ID (OID) that is associated with the passed instance.
-
-