class PackBitmapIndexV1 extends BasePackBitmapIndex
PackBitmapIndexBasePackBitmapIndex.StoredBitmap| Modifier and Type | Field and Description |
|---|---|
private ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap> |
bitmaps |
private com.googlecode.javaewah.EWAHCompressedBitmap |
blobs |
private com.googlecode.javaewah.EWAHCompressedBitmap |
commits |
(package private) static byte[] |
MAGIC |
private static int |
MAX_XOR_OFFSET |
(package private) static int |
OPT_FULL |
private PackIndex |
packIndex |
private PackReverseIndex |
reverseIndex |
private com.googlecode.javaewah.EWAHCompressedBitmap |
tags |
private com.googlecode.javaewah.EWAHCompressedBitmap |
trees |
FLAG_REUSE, packChecksum| Constructor and Description |
|---|
PackBitmapIndexV1(java.io.InputStream fd,
PackIndex packIndex,
PackReverseIndex reverseIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
findPosition(AnyObjectId objectId)
Finds the position in the bitmap of the object.
|
int |
getBitmapCount()
Returns the number of bitmaps in this bitmap index.
|
ObjectId |
getObject(int position)
Get the object at the bitmap position.
|
int |
getObjectCount()
Obtain the total number of objects described by this index.
|
(package private) PackIndex |
getPackIndex() |
int |
hashCode() |
com.googlecode.javaewah.EWAHCompressedBitmap |
ofObjectType(com.googlecode.javaewah.EWAHCompressedBitmap bitmap,
int type)
Returns a bitmap containing positions for objects that have the given Git
type.
|
private static com.googlecode.javaewah.EWAHCompressedBitmap |
readBitmap(java.io.DataInput dataInput) |
getBitmap, getBitmapsopen, readstatic final byte[] MAGIC
static final int OPT_FULL
private static final int MAX_XOR_OFFSET
private final PackIndex packIndex
private final PackReverseIndex reverseIndex
private final com.googlecode.javaewah.EWAHCompressedBitmap commits
private final com.googlecode.javaewah.EWAHCompressedBitmap trees
private final com.googlecode.javaewah.EWAHCompressedBitmap blobs
private final com.googlecode.javaewah.EWAHCompressedBitmap tags
private final ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap> bitmaps
PackBitmapIndexV1(java.io.InputStream fd,
PackIndex packIndex,
PackReverseIndex reverseIndex)
throws java.io.IOException
java.io.IOExceptionpublic int findPosition(AnyObjectId objectId)
findPosition in class PackBitmapIndexobjectId - the id for which the bitmap position will be found.public ObjectId getObject(int position) throws java.lang.IllegalArgumentException
getObject in class PackBitmapIndexposition - the id for which the object will be found.java.lang.IllegalArgumentException - when the item is not found.public int getObjectCount()
getObjectCount() - 1 is the largest bit that will be set in a
bitmap.getObjectCount in class PackBitmapIndexpublic com.googlecode.javaewah.EWAHCompressedBitmap ofObjectType(com.googlecode.javaewah.EWAHCompressedBitmap bitmap,
int type)
ofObjectType in class PackBitmapIndexbitmap - the object bitmap.type - the Git type.public int getBitmapCount()
getBitmapCount in class PackBitmapIndexpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectPackIndex getPackIndex()
private static com.googlecode.javaewah.EWAHCompressedBitmap readBitmap(java.io.DataInput dataInput)
throws java.io.IOException
java.io.IOException