Interface BinaryStorer
- All Superinterfaces:
- PersistenceStorer,- PersistenceStoring,- Storer
- All Known Implementing Classes:
- BinaryStorer.Default,- BinaryStorer.Eager
public interface BinaryStorer extends PersistenceStorer
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceBinaryStorer.Creatorstatic classBinaryStorer.DefaultDefault implementation that stores referenced instances only if required (i.e.static classBinaryStorer.EagerIdentical toBinaryStorer.Default, but stores every referenced instance eagerly.
 For a more differentiated solution between the two simple, but extreme strategies, seePersistenceEagerStoringFieldEvaluator.static classBinaryStorer.Item
- 
Method SummaryModifier and Type Method Description static BinaryStorer.CreatorCreator(BinaryChannelCountProvider channelCountProvider, boolean switchByteOrder)longcurrentCapacity()Returns the internal state's value significant for its capacity of unique instances.PersistenceStorerensureCapacity(long desiredCapacity)Ensures that the instance's internal state is prepared for handling an amount of unique instance equal to the passed value.longmaximumCapacity()The maximum value thatStorer.currentCapacity()can reach.PersistenceStorerreinitialize()Enforces the instance to be initialized, discarding any previous state (clearing it) if necessary.PersistenceStorerreinitialize(long initialCapacity)Enforces the instance to be initialized, discarding any previous state (clearing it) if necessary.Methods inherited from interface one.microstream.persistence.types.PersistenceStoringstore, storeAll, storeAllMethods inherited from interface one.microstream.persistence.types.Storerclear, commit, isEmpty, size, skip, skipMapped, skipNulled
- 
Method Details- 
reinitializePersistenceStorer reinitialize()Description copied from interface:PersistenceStorerEnforces the instance to be initialized, discarding any previous state (clearing it) if necessary.- Specified by:
- reinitializein interface- PersistenceStorer
- Specified by:
- reinitializein interface- Storer
- Returns:
- this.
 
- 
reinitializeDescription copied from interface:PersistenceStorerEnforces the instance to be initialized, discarding any previous state (clearing it) if necessary.- Specified by:
- reinitializein interface- PersistenceStorer
- Specified by:
- reinitializein interface- Storer
- Returns:
- this.
 
- 
ensureCapacityDescription copied from interface:PersistenceStorerEnsures that the instance's internal state is prepared for handling an amount of unique instance equal to the passed value. Note that is explicitly does not have to mean that the instance's internal state actually reserves as much space, only makes a best effort to prepare for that amount. Example: an internal hash table's hash length might still remain at 2^30, despite the passed value being much higher.- Specified by:
- ensureCapacityin interface- PersistenceStorer
- Specified by:
- ensureCapacityin interface- Storer
- Parameters:
- desiredCapacity- the amount of unique instances that this instance shall prepare to handle.
- Returns:
- this
 
- 
currentCapacitylong currentCapacity()Description copied from interface:StorerReturns the internal state's value significant for its capacity of unique instances. Note that the exact meaning of this value is implementation dependant, e.g. it might just be a hash table's length, while the actual amount of unique instances that can be handled by that hash table might be much higher (infinite).- Specified by:
- currentCapacityin interface- Storer
- Returns:
- the current implementation-specific "capacity" value.
 
- 
maximumCapacitylong maximumCapacity()Description copied from interface:StorerThe maximum value thatStorer.currentCapacity()can reach. For more explanation on the exact meaning of the capacity, see there.- Specified by:
- maximumCapacityin interface- Storer
- Returns:
- the maximum of the implementation-specific "capacity" value.
 
- 
Creatorstatic BinaryStorer.Creator Creator(BinaryChannelCountProvider channelCountProvider, boolean switchByteOrder)
 
-