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:
  • Field Details

    • reuseWalker

      private final boolean reuseWalker
    • flags

      private final int flags
    • addToIndex

      private final boolean addToIndex
  • Constructor Details

    • BitmapCommit

      BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags)
    • BitmapCommit

      BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)
  • Method Details

    • isReuseWalker

      boolean isReuseWalker()
    • getFlags

      int getFlags()
    • 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.