Interface PackObjectSizeIndex


public interface PackObjectSizeIndex
Index of object sizes in a pack It is not guaranteed that the implementation contains the sizes of all objects (e.g. it could store only objects over certain threshold).
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Number of objects in the index
    long
    getSize(int idxOffset)
    Returns the inflated size of the object.
    int
    Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.
  • Method Details

    • getSize

      long getSize(int idxOffset)
      Returns the inflated size of the object.
      Parameters:
      idxOffset - position in the pack (as returned from PackIndex)
      Returns:
      size of the object, -1 if not found in the index.
    • getObjectCount

      long getObjectCount()
      Number of objects in the index
      Returns:
      number of objects in the index
    • getThreshold

      int getThreshold()
      Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.
      Returns:
      size in bytes