class PackBitmapIndexV1 extends BasePackBitmapIndex
PackBitmapIndex
BasePackBitmapIndex.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, getBitmaps
open, read
static 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.IOException
public int findPosition(AnyObjectId objectId)
findPosition
in class PackBitmapIndex
objectId
- the id for which the bitmap position will be found.public ObjectId getObject(int position) throws java.lang.IllegalArgumentException
getObject
in class PackBitmapIndex
position
- 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 PackBitmapIndex
public com.googlecode.javaewah.EWAHCompressedBitmap ofObjectType(com.googlecode.javaewah.EWAHCompressedBitmap bitmap, int type)
ofObjectType
in class PackBitmapIndex
bitmap
- the object bitmap.type
- the Git type.public int getBitmapCount()
getBitmapCount
in class PackBitmapIndex
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
PackIndex getPackIndex()
private static com.googlecode.javaewah.EWAHCompressedBitmap readBitmap(java.io.DataInput dataInput) throws java.io.IOException
java.io.IOException