Interface BinaryStorer

All Superinterfaces:
PersistenceStorer, PersistenceStoring, Storer
All Known Implementing Classes:
BinaryStorer.Default, BinaryStorer.Eager

public interface BinaryStorer
extends PersistenceStorer
  • Method Details

    • reinitialize

      PersistenceStorer reinitialize()
      Description copied from interface: PersistenceStorer
      Enforces the instance to be initialized, discarding any previous state (clearing it) if necessary prior to calling #initialize().
      Specified by:
      reinitialize in interface PersistenceStorer
      Specified by:
      reinitialize in interface Storer
      Returns:
      this.
    • reinitialize

      PersistenceStorer reinitialize​(long initialCapacity)
      Description copied from interface: PersistenceStorer
      Enforces the instance to be initialized, discarding any previous state (clearing it) if necessary prior to calling #initialize().
      Specified by:
      reinitialize in interface PersistenceStorer
      Specified by:
      reinitialize in interface Storer
      Returns:
      this.
    • ensureCapacity

      PersistenceStorer ensureCapacity​(long desiredCapacity)
      Description copied from interface: PersistenceStorer
      Ensures 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:
      ensureCapacity in interface PersistenceStorer
      Specified by:
      ensureCapacity in interface Storer
      Parameters:
      desiredCapacity - the amount of unique instances that this instance shall prepare to handle.
      Returns:
      this
    • currentCapacity

      long currentCapacity()
      Description copied from interface: Storer
      Returns 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:
      currentCapacity in interface Storer
      Returns:
      the current implementation-specific "capacity" value.
    • maximumCapacity

      long maximumCapacity()
      Description copied from interface: Storer
      The maximum value that Storer.currentCapacity() can reach. For more explanation on the exact meaning of the capacity, see there.
      Specified by:
      maximumCapacity in interface Storer
      Returns:
      the maximum of the implementation-specific "capacity" value.
    • Creator

      static BinaryStorer.Creator Creator​(BinaryChannelCountProvider channelCountProvider, boolean switchByteOrder)