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:
java.io.Serializable
,java.lang.Comparable<AnyObjectId>
public final class BitmapCommit extends ObjectId
A commit object for which a bitmap index should be built.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitmapCommit.Builder
Builder of BitmapCommit.
-
Field Summary
Fields Modifier and Type Field Description private boolean
addToIndex
private int
flags
private boolean
reuseWalker
-
Constructor Summary
Constructors Constructor Description BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags)
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitmapCommit.Builder
copyFrom(BitmapCommit commit)
Get a builder of BitmapCommit whose fields are copied fromcommit
.(package private) int
getFlags()
boolean
isAddToIndex()
Whether corresponding bitmap should be added to PackBitmapIndexBuilder.(package private) boolean
isReuseWalker()
static BitmapCommit.Builder
newBuilder(AnyObjectId objId)
Get a builder of BitmapCommit whose object id isobjId
.-
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
Methods inherited from class org.eclipse.jgit.lib.AnyObjectId
abbreviate, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getByte, getFirstByte, getName, hashCode, isEqual, name, startsWith, toString
-
-
-
-
Constructor Detail
-
BitmapCommit
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags)
-
BitmapCommit
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)
-
-
Method Detail
-
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 isobjId
.- 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 fromcommit
.- Parameters:
commit
- the bitmap commit the builder is copying from- Returns:
- a BitmapCommit build with fields copied from an existing bitmap commit.
-
-