Class BitmapCommit

java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.internal.storage.pack.BitmapCommit
All Implemented Interfaces:
Serializable, Comparable<AnyObjectId>

public final class BitmapCommit extends ObjectId
A commit object for which a bitmap index should be built.
See Also:
  • Constructor Details

    • BitmapCommit

      public BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)
      Commit that should get a bitmap
      Parameters:
      objectId - objectId of the commit
      reuseWalker - if the bitmap walker can be reused
      flags - flags
      addToIndex - if the bitmap should be added to the index
  • Method Details

    • isAddToIndex

      public boolean isAddToIndex()
      Whether corresponding bitmap should be added to PackBitmapIndexBuilder.
      Returns:
      true if the corresponding bitmap should be added to PackBitmapIndexBuilder.
    • newBuilder

      public static BitmapCommit.Builder newBuilder(AnyObjectId objId)
      Get a builder of BitmapCommit whose object id is objId.
      Parameters:
      objId - the object id of the BitmapCommit
      Returns:
      a BitmapCommit builder with object id set.
    • copyFrom

      public static BitmapCommit.Builder copyFrom(BitmapCommit commit)
      Get a builder of BitmapCommit whose fields are copied from commit.
      Parameters:
      commit - the bitmap commit the builder is copying from
      Returns:
      a BitmapCommit build with fields copied from an existing bitmap commit.