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>
A commit object for which a bitmap index should be built.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionBitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags) BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex) -
Method Summary
Modifier and TypeMethodDescriptionstatic BitmapCommit.BuildercopyFrom(BitmapCommit commit) Get a builder of BitmapCommit whose fields are copied fromcommit.(package private) intgetFlags()booleanWhether corresponding bitmap should be added to PackBitmapIndexBuilder.(package private) booleanstatic BitmapCommit.BuildernewBuilder(AnyObjectId objId) Get a builder of BitmapCommit whose object id isobjId.Methods inherited from class ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
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
Get a builder of BitmapCommit whose object id isobjId.- Parameters:
objId- the object id of the BitmapCommit- Returns:
- a BitmapCommit builder with object id set.
-
copyFrom
Get a builder of BitmapCommit whose fields are copied fromcommit.- Parameters:
commit- the bitmap commit the builder is copying from- Returns:
- a BitmapCommit build with fields copied from an existing bitmap commit.
-