Top Description Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.pack

public final Class BitmapCommit

extends ObjectId
Class Inheritance
Imports
org.eclipse.jgit.lib.AnyObjectId, .ObjectId

A commit object for which a bitmap index should be built.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
BitmapCommit.Builder

Builder of BitmapCommit.

Field Summary

Modifier and TypeField and Description
private final boolean
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags)

pack-priv
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)

Method Summary

Modifier and TypeMethod and Description
public static BitmapCommit.Builder

Returns:

a BitmapCommit build with fields copied from an existing bitmap commit.
copyFrom
(BitmapCommit
the bitmap commit the builder is copying from
commit
)

Get a builder of BitmapCommit whose fields are copied from commit.

pack-priv int
public boolean

Returns:

true if the corresponding bitmap should be added to PackBitmapIndexBuilder.
isAddToIndex
()

Whether corresponding bitmap should be added to PackBitmapIndexBuilder.

pack-priv boolean
public static BitmapCommit.Builder

Returns:

a BitmapCommit builder with object id set.
newBuilder
(AnyObjectId
the object id of the BitmapCommit
objId
)

Get a builder of BitmapCommit whose object id is objId.

Inherited from org.eclipse.jgit.lib.ObjectId:
equalsfromRawfromRawfromRawfromRawfromRawfromStringfromStringisIdtoObjectIdtoStringzeroId

Field Detail

addToIndexback to summary
private final boolean addToIndex
flagsback to summary
private final int flags
reuseWalkerback to summary
private final boolean reuseWalker

Constructor Detail

BitmapCommitback to summary
pack-priv BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags)
BitmapCommitback to summary
pack-priv BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags, boolean addToIndex)

Method Detail

copyFromback to summary
public static BitmapCommit.Builder copyFrom(BitmapCommit commit)

Get a builder of BitmapCommit whose fields are copied from commit.

Parameters
commit:BitmapCommit

the bitmap commit the builder is copying from

Returns:BitmapCommit.Builder

a BitmapCommit build with fields copied from an existing bitmap commit.

getFlagsback to summary
pack-priv int getFlags()
isAddToIndexback to summary
public boolean isAddToIndex()

Whether corresponding bitmap should be added to PackBitmapIndexBuilder.

Returns:boolean

true if the corresponding bitmap should be added to PackBitmapIndexBuilder.

isReuseWalkerback to summary
pack-priv boolean isReuseWalker()
newBuilderback to summary
public static BitmapCommit.Builder newBuilder(AnyObjectId objId)

Get a builder of BitmapCommit whose object id is objId.

Parameters
objId:AnyObjectId

the object id of the BitmapCommit

Returns:BitmapCommit.Builder

a BitmapCommit builder with object id set.

org.eclipse.jgit.internal.storage.pack back to summary

public Class BitmapCommit.Builder

extends Object
Class Inheritance

Builder of BitmapCommit.

Field Summary

Modifier and TypeField and Description
private boolean
private int
private AnyObjectId
private boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public BitmapCommit

Returns:

the new BitmapCommit.
build
()

Builds BitmapCommit from the builder.

public BitmapCommit.Builder

Returns:

the builder itself
setAddToIndex
(boolean
whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file
addToIndex
)

Set whether whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file.

public BitmapCommit.Builder

Returns:

the builder itself
setFlags
(int
the flags of the BitmapCommit
flags
)

Set flags of the builder.

public BitmapCommit.Builder

Returns:

the builder itself
setId
(AnyObjectId
the object id of the BitmapCommit
objectId
)

Set objectId of the builder.

public BitmapCommit.Builder

Returns:

the builder itself
setReuseWalker
(boolean
whether the BitmapCommit should reuse bitmap walker when walking objects
reuseWalker
)

Set reuseWalker of the builder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addToIndexback to summary
private boolean addToIndex
flagsback to summary
private int flags
objectIdback to summary
private AnyObjectId objectId
reuseWalkerback to summary
private boolean reuseWalker

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
public BitmapCommit build()

Builds BitmapCommit from the builder.

Returns:BitmapCommit

the new BitmapCommit.

setAddToIndexback to summary
public BitmapCommit.Builder setAddToIndex(boolean addToIndex)

Set whether whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file.

Parameters
addToIndex:boolean

whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file

Returns:BitmapCommit.Builder

the builder itself

setFlagsback to summary
public BitmapCommit.Builder setFlags(int flags)

Set flags of the builder.

Parameters
flags:int

the flags of the BitmapCommit

Returns:BitmapCommit.Builder

the builder itself

setIdback to summary
public BitmapCommit.Builder setId(AnyObjectId objectId)

Set objectId of the builder.

Parameters
objectId:AnyObjectId

the object id of the BitmapCommit

Returns:BitmapCommit.Builder

the builder itself

setReuseWalkerback to summary
public BitmapCommit.Builder setReuseWalker(boolean reuseWalker)

Set reuseWalker of the builder.

Parameters
reuseWalker:boolean

whether the BitmapCommit should reuse bitmap walker when walking objects

Returns:BitmapCommit.Builder

the builder itself