Class PackBitmapIndexBuilder.StoredEntry

java.lang.Object
org.eclipse.jgit.internal.storage.file.PackBitmapIndexBuilder.StoredEntry
Enclosing class:
PackBitmapIndexBuilder

public static final class PackBitmapIndexBuilder.StoredEntry extends Object
Data object for the on disk representation of a bitmap entry.
  • Constructor Details

    • StoredEntry

      public StoredEntry(ObjectId objectId, long idxPosition, com.googlecode.javaewah.EWAHCompressedBitmap bitmap, int xorOffset, int flags)
      Create a StoredEntry
      Parameters:
      objectId - objectId of the object associated with the bitmap
      idxPosition - position of this object into the pack index (i.e. sorted by sha1)
      bitmap - bitmap associated with this object
      xorOffset - offset of the bitmap against which this bitmap is xor-compressed. If 0, then this bitmap is not xor-compressed against any other bitmap
      flags - flags for this bitmap
  • Method Details

    • getBitmap

      public com.googlecode.javaewah.EWAHCompressedBitmap getBitmap()
      Get the bitmap
      Returns:
      the bitmap
    • getXorOffset

      public int getXorOffset()
      Get the xorOffset
      Returns:
      the xorOffset
    • getFlags

      public int getFlags()
      Get the flags
      Returns:
      the flags
    • getIdxPosition

      public long getIdxPosition()
      Returns:
      the position of the object with this bitmap in the primary index (i.e. ordered by sha1)
    • getObjectId

      public ObjectId getObjectId()
      Returns:
      the objectId of the object associated with this bitmap