org.eclipse.jgit.internal.storage.file.PackBitmapIndex es.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | PackBitmapIndexBuilder.
Data object for the on disk representation of a bitmap entry. |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private final ArrayDeque | |
| private final EWAHCompressedBitmap | |
| private final BlockList | |
| private final EWAHCompressedBitmap | |
| private static final int | |
| pack-priv final ObjectIdOwnerMap | |
| private final EWAHCompressedBitmap | |
| private final EWAHCompressedBitmap |
| Access | Constructor and Description |
|---|---|
| public | PackBitmapIndexBuilder(List<ObjectToPack>
objects sorted by name. The list must be initially sorted by
ObjectId (name); it will be resorted in place. objects)Creates a PackBitmapIndex used for building the contents of an index file. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBitmap(AnyObjectId
the object id key for the bitmap. objectId, BitmapIndex.the bitmap bitmap,the flags to be stored with the bitmap flags)Stores the bitmap for the objectId. |
| public void | addBitmap(AnyObjectId
the object id key for the bitmap. objectId, EWAHCompressedBitmap the bitmap bitmap, int the flags to be stored with the bitmap flags)Stores the bitmap for the objectId. |
| public int | findPosition(AnyObjectId
the id for which the bitmap position will be found. objectId)Implements org. Finds the position in the bitmap of the object. |
| private PackBitmapIndexBuilder. | |
| public int | getBitmapCount()
Implements org. Returns the number of bitmaps in this bitmap index. |
| public EWAHCompressedBitmap | |
| public EWAHCompressedBitmap | |
| public List | Returns: a list of the xor compressed entries.Get list of xor compressed entries that need to be written. |
| public ObjectId | getObject(int
the offset in the bitmap which corresponds to an object of
interest. This position is the same as the order of the object
in the position)PackFile.Implements org. Get the object at the bitmap position. |
| public int | getObjectCount()
Implements org. Obtain the total number of objects described by this index. |
| public ObjectIdOwnerMap | |
| public int | |
| public EWAHCompressedBitmap | |
| public EWAHCompressedBitmap | |
| public EWAHCompressedBitmap | ofObjectType(EWAHCompressedBitmap
the object bitmap. bitmap, int the Git type. type)Implements org. Returns a bitmap containing positions for objects that have the given Git type. |
| public void | processBitmapForWrite(BitmapCommit
the commit corresponds to the bitmap. c, BitmapIndex.the bitmap to be written. bitmap,the flags of the commit. flags)Processes a commit and prepares its bitmap to write to the bitmap index file. |
| public void | resetBitmaps(int
the expected number of bitmap entries to be written. size)Remove all the bitmaps entries added. |
| private static void | sortByOffsetAndIndex(BlockList<PackBitmapIndexBuilder.
|
| bitmapsToWrite | back to summary |
|---|---|
| private List<PackBitmapIndexBuilder. | |
| bitmapsToWriteXorBuffer | back to summary |
|---|---|
| private final ArrayDeque<BasePackBitmapIndex. | |
| blobs | back to summary |
|---|---|
| private final EWAHCompressedBitmap blobs | |
| byOffset | back to summary |
|---|---|
| private final BlockList<PackBitmapIndexBuilder. | |
| commits | back to summary |
|---|---|
| private final EWAHCompressedBitmap commits | |
| MAX_XOR_OFFSET_SEARCH | back to summary |
|---|---|
| private static final int MAX_XOR_OFFSET_SEARCH | |
| positionEntries | back to summary |
|---|---|
| pack-priv final ObjectIdOwnerMap<PackBitmapIndexBuilder. | |
| tags | back to summary |
|---|---|
| private final EWAHCompressedBitmap tags | |
| trees | back to summary |
|---|---|
| private final EWAHCompressedBitmap trees | |
| PackBitmapIndexBuilder | back to summary |
|---|---|
| public PackBitmapIndexBuilder(List<ObjectToPack> objects) Creates a PackBitmapIndex used for building the contents of an index file.
| |
| addBitmap | back to summary |
|---|---|
| public void addBitmap(AnyObjectId objectId, BitmapIndex. Stores the bitmap for the objectId.
| |
| addBitmap | back to summary |
|---|---|
| public void addBitmap(AnyObjectId objectId, EWAHCompressedBitmap bitmap, int flags) Stores the bitmap for the objectId.
| |
| findPosition | back to summary |
|---|---|
| public int findPosition(AnyObjectId objectId) Implements org. Doc from org. Finds the position in the bitmap of the object.
| |
| generateStoredEntry | back to summary |
|---|---|
| private PackBitmapIndexBuilder. | |
| getBitmapCount | back to summary |
|---|---|
| public int getBitmapCount() Implements org. Doc from org. Returns the number of bitmaps in this bitmap index.
| |
| getBlobs | back to summary |
|---|---|
| public EWAHCompressedBitmap getBlobs() Get the blob object bitmap.
| |
| getCommits | back to summary |
|---|---|
| public EWAHCompressedBitmap getCommits() Get the commit object bitmap.
| |
| getCompressedBitmaps | back to summary |
|---|---|
| public List Get list of xor compressed entries that need to be written.
| |
| getObject | back to summary |
|---|---|
| public ObjectId getObject(int position) throws IllegalArgumentException Implements org. Doc from org. Get the object at the bitmap position.
| |
| getObjectCount | back to summary |
|---|---|
| public int getObjectCount() Implements org. Doc from org. Obtain the total number of objects described by this index.
| |
| getObjectSet | back to summary |
|---|---|
| public ObjectIdOwnerMap Get set of objects included in the pack.
| |
| getOptions | back to summary |
|---|---|
| public int getOptions() Get the index storage options.
| |
| getTags | back to summary |
|---|---|
| public EWAHCompressedBitmap getTags() Get the tag object bitmap.
| |
| getTrees | back to summary |
|---|---|
| public EWAHCompressedBitmap getTrees() Get the tree object bitmap.
| |
| ofObjectType | back to summary |
|---|---|
| public EWAHCompressedBitmap ofObjectType(EWAHCompressedBitmap bitmap, int type) Implements org. Doc from org. Returns a bitmap containing positions for objects that have the given Git type.
| |
| processBitmapForWrite | back to summary |
|---|---|
| public void processBitmapForWrite(BitmapCommit c, BitmapIndex. Processes a commit and prepares its bitmap to write to the bitmap index file.
| |
| resetBitmaps | back to summary |
|---|---|
| public void resetBitmaps(int size) Remove all the bitmaps entries added.
| |
| sortByOffsetAndIndex | back to summary |
|---|---|
| private static void sortByOffsetAndIndex(BlockList<PackBitmapIndexBuilder. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| idxPosition | back to summary |
|---|---|
| pack-priv final int idxPosition | |
| ridxPosition | back to summary |
|---|---|
| pack-priv int ridxPosition | |
| PositionEntry | back to summary |
|---|---|
| pack-priv PositionEntry(AnyObjectId objectId, int idxPosition) | |
| Modifier and Type | Field and Description |
|---|---|
| private final EWAHCompressedBitmap | |
| private final int | |
| private final long | |
| private final ObjectId | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | StoredEntry(ObjectId
objectId of the object associated with the bitmap objectId, long position of this object into the pack index (i.e. sorted
by sha1) idxPosition, EWAHCompressedBitmap bitmap associated with this object bitmap, int offset of the bitmap against which this bitmap is
xor-compressed. If 0, then this bitmap is not
xor-compressed against any other bitmap xorOffset, int flags for this bitmap flags)Create a StoredEntry |
| Modifier and Type | Method and Description |
|---|---|
| public EWAHCompressedBitmap | |
| public int | |
| public long | Returns: the position of the object with this bitmap in the primary index (i.e. ordered by sha1)
|
| public ObjectId | |
| public int |
| bitmap | back to summary |
|---|---|
| private final EWAHCompressedBitmap bitmap | |
| flags | back to summary |
|---|---|
| private final int flags | |
| idxPosition | back to summary |
|---|---|
| private final long idxPosition | |
| objectId | back to summary |
|---|---|
| private final ObjectId objectId | |
| xorOffset | back to summary |
|---|---|
| private final int xorOffset | |
| StoredEntry | back to summary |
|---|---|
| public StoredEntry(ObjectId objectId, long idxPosition, EWAHCompressedBitmap bitmap, int xorOffset, int flags) Create a StoredEntry
| |
| getBitmap | back to summary |
|---|---|
| public EWAHCompressedBitmap getBitmap() Get the bitmap
| |
| getFlags | back to summary |
|---|---|
| public int getFlags() Get the flags
| |
| getIdxPosition | back to summary |
|---|---|
public long getIdxPosition()
| |
| getObjectId | back to summary |
|---|---|
public ObjectId getObjectId()
| |
| getXorOffset | back to summary |
|---|---|
| public int getXorOffset() Get the xorOffset
| |