| Modifier and Type | Class and Description |
|---|---|
| public static class | PackBitmapIndexRemapper.
An entry in the old PackBitmapIndex. |
| Modifier and Type | Field and Description |
|---|---|
| private final BitSet | |
| pack-priv final PackBitmapIndex | |
| private final BasePackBitmapIndex | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| public int | getBaseBitmapCount()
Implements org. Returns the number of bitmaps in this bitmap index ready to use, not XOR'ed against other entries. |
| public long | getBaseBitmapSizeInBytes()
Implements org. Current size in bytes of all base bitmaps in the index. |
| public EWAHCompressedBitmap | getBitmap(AnyObjectId
the id for which the bitmap will be found. objectId)Implements org. Returns the previously constructed bitmap for the object. |
| public int | getBitmapCount()
Implements org. Returns the number of bitmaps in this bitmap index. |
| 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 int | getXorBitmapCount()
Implements org. Returns the number of bitmaps in this bitmap index XOR'ed against other entries. |
| public long | getXorBitmapSizeInBytes()
Implements org. Current size in bytes of all XOR'ed bitmaps in the index. |
| public Iterator | |
| public static PackBitmapIndexRemapper | Returns: a bitmap index that attempts to do the mapping between the two.the bitmap index with the old mapping. prevBitmapIndex, PackBitmapIndex the bitmap index with the new mapping. newIndex)A PackBitmapIndex that maps the positions in the prevBitmapIndex to the ones in the newIndex. |
| 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. |
| inflated | back to summary |
|---|---|
| private final BitSet inflated | |
| newPackIndex | back to summary |
|---|---|
| pack-priv final PackBitmapIndex newPackIndex | |
| oldPackIndex | back to summary |
|---|---|
| private final BasePackBitmapIndex oldPackIndex | |
| prevToNewMapping | back to summary |
|---|---|
| private final int[] prevToNewMapping | |
| PackBitmapIndexRemapper | back to summary |
|---|---|
| private PackBitmapIndexRemapper(PackBitmapIndex newPackIndex) | |
| PackBitmapIndexRemapper | back to summary |
|---|---|
| private PackBitmapIndexRemapper(BasePackBitmapIndex oldPackIndex, PackBitmapIndex newPackIndex) | |
| findPosition | back to summary |
|---|---|
| public int findPosition(AnyObjectId objectId) Implements org. Doc from org. Finds the position in the bitmap of the object.
| |
| getBaseBitmapCount | back to summary |
|---|---|
| public int getBaseBitmapCount() Implements org. Doc from org. Returns the number of bitmaps in this bitmap index ready to use, not XOR'ed against other entries.
| |
| getBaseBitmapSizeInBytes | back to summary |
|---|---|
| public long getBaseBitmapSizeInBytes() Implements org. Doc from org. Current size in bytes of all base bitmaps in the index. Resolving xors for bitmaps can affect this size.
| |
| getBitmap | back to summary |
|---|---|
| public EWAHCompressedBitmap getBitmap(AnyObjectId objectId) Implements org. Doc from org. Returns the previously constructed bitmap for the object.
| |
| getBitmapCount | back to summary |
|---|---|
| public int getBitmapCount() Implements org. Doc from org. Returns the number of bitmaps in this bitmap index.
| |
| 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.
| |
| getXorBitmapCount | back to summary |
|---|---|
| public int getXorBitmapCount() Implements org. Doc from org. Returns the number of bitmaps in this bitmap index XOR'ed against other entries.
| |
| getXorBitmapSizeInBytes | back to summary |
|---|---|
| public long getXorBitmapSizeInBytes() Implements org. Doc from org. Current size in bytes of all XOR'ed bitmaps in the index. Resolving xors for bitmaps can affect this size.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| newPackBitmapIndex | back to summary |
|---|---|
| public static PackBitmapIndexRemapper newPackBitmapIndex(BitmapIndex prevBitmapIndex, PackBitmapIndex newIndex) A PackBitmapIndex that maps the positions in the prevBitmapIndex to the ones in the newIndex.
| |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| flags | back to summary |
|---|---|
| private final int flags | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(AnyObjectId src, int flags) | |
| getFlags | back to summary |
|---|---|
| public int getFlags() Get flags
| |