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

pack-priv abstract Class BasePackBitmapIndex

extends Object
implements PackBitmapIndex
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.internal.storage.file.PackBitmapIndex
Known Direct Subclasses
org.eclipse.jgit.internal.storage.file.PackBitmapIndexBuilder, org.eclipse.jgit.internal.storage.file.PackBitmapIndexV1
Imports
org.eclipse.jgit.lib.AnyObjectId, .ObjectIdOwnerMap, com.googlecode.javaewah.EWAHCompressedBitmap

Base implementation of the PackBitmapIndex.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
BasePackBitmapIndex.StoredBitmap

Data representation of the bitmap entry restored from a pack index.

private static class

Field Summary

Modifier and TypeField and Description
private final ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getBaseBitmapCount()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapCount.

Returns the number of bitmaps in this bitmap index ready to use, not XOR'ed against other entries.

public long
getBaseBitmapSizeInBytes()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapSizeInBytes.

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.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBitmap.

Returns the previously constructed bitmap for the object.

pack-priv ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap>
public int
getXorBitmapCount()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapCount.

Returns the number of bitmaps in this bitmap index XOR'ed against other entries.

public long
getXorBitmapSizeInBytes()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapSizeInBytes.

Current size in bytes of all XOR'ed bitmaps in the index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitmapsback to summary
private final ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap> bitmaps

Constructor Detail

BasePackBitmapIndexback to summary
pack-priv BasePackBitmapIndex(ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap> bitmaps)

Method Detail

getBaseBitmapCountback to summary
public int getBaseBitmapCount()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapCount.

Doc from org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapCount.

Returns the number of bitmaps in this bitmap index ready to use, not XOR'ed against other entries.

Returns:int

the number of bitmaps in this bitmap index ready to use.

Annotations
@Override
getBaseBitmapSizeInBytesback to summary
public long getBaseBitmapSizeInBytes()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapSizeInBytes.

Doc from org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBaseBitmapSizeInBytes.

Current size in bytes of all base bitmaps in the index. Resolving xors for bitmaps can affect this size.

Returns:long

Current size (in bytes) of all base bitmaps in this index.

Annotations
@Override
getBitmapback to summary
public EWAHCompressedBitmap getBitmap(AnyObjectId objectId)

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBitmap.

Doc from org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getBitmap.

Returns the previously constructed bitmap for the object.

Parameters
objectId:AnyObjectId

the id for which the bitmap will be found.

Returns:EWAHCompressedBitmap

the bitmap or null if the object was not found.

Annotations
@Override
getBitmapsback to summary
pack-priv ObjectIdOwnerMap<BasePackBitmapIndex.StoredBitmap> getBitmaps()
getXorBitmapCountback to summary
public int getXorBitmapCount()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapCount.

Doc from org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapCount.

Returns the number of bitmaps in this bitmap index XOR'ed against other entries.

Returns:int

the number of bitmaps in this bitmap index represented as XOR masks.

Annotations
@Override
getXorBitmapSizeInBytesback to summary
public long getXorBitmapSizeInBytes()

Implements org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapSizeInBytes.

Doc from org.eclipse.jgit.internal.storage.file.PackBitmapIndex.getXorBitmapSizeInBytes.

Current size in bytes of all XOR'ed bitmaps in the index. Resolving xors for bitmaps can affect this size.

Returns:long

Current size (in bytes) of all xor bitmaps in this index.

Annotations
@Override
org.eclipse.jgit.internal.storage.file back to summary

pack-priv final Class BasePackBitmapIndex.StoredBitmap

extends Entry
Class Inheritance

Data representation of the bitmap entry restored from a pack index. The commit of the bitmap is the map key.

Field Summary

Modifier and TypeField and Description
private volatile Object
private final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv EWAHCompressedBitmap

Returns:

the full bitmap
getBitmap
()

Computes and returns the full bitmap.

pack-priv EWAHCompressedBitmap

Returns:

the full bitmap
getBitmapWithoutCaching
()

Compute and return the full bitmap, do NOT cache the expanded bitmap, which saves memory and should only be used during bitmap creation in garbage collection.

pack-priv long

Returns:

size in bytes of the bitmap in its current representation
getCurrentSizeInBytes
()

Size in bytes of this bitmap in its current representation If this is a XOR'ed bitmap, size is different before/after getBitmap().

pack-priv int

Returns:

the flags associated with the bitmap
getFlags
()

Get flags

pack-priv boolean

Returns:

true if this bitmap is a base (a ready map).
isBase
()

This bitmap is (currently) a base or a XOR mask

Field Detail

bitmapContainerback to summary
private volatile Object bitmapContainer
flagsback to summary
private final int flags

Constructor Detail

StoredBitmapback to summary
pack-priv StoredBitmap(AnyObjectId objectId, EWAHCompressedBitmap bitmap, BasePackBitmapIndex.StoredBitmap xorBitmap, int flags)

Method Detail

getBitmapback to summary
pack-priv EWAHCompressedBitmap getBitmap()

Computes and returns the full bitmap.

Returns:EWAHCompressedBitmap

the full bitmap

getBitmapWithoutCachingback to summary
pack-priv EWAHCompressedBitmap getBitmapWithoutCaching()

Compute and return the full bitmap, do NOT cache the expanded bitmap, which saves memory and should only be used during bitmap creation in garbage collection.

Returns:EWAHCompressedBitmap

the full bitmap

getCurrentSizeInBytesback to summary
pack-priv long getCurrentSizeInBytes()

Size in bytes of this bitmap in its current representation If this is a XOR'ed bitmap, size is different before/after getBitmap(). Before is the byte size of the xor mask, afterwards is the size of the "ready" bitmap

Returns:long

size in bytes of the bitmap in its current representation

getFlagsback to summary
pack-priv int getFlags()

Get flags

Returns:int

the flags associated with the bitmap

isBaseback to summary
pack-priv boolean isBase()

This bitmap is (currently) a base or a XOR mask

Returns:boolean

true if this bitmap is a base (a ready map).

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

private final Class BasePackBitmapIndex.XorCompressedBitmap

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.internal.storage.file.BasePackBitmapIndex.XorCompressedBitmap

Field Summary

Modifier and TypeField and Description
pack-priv final EWAHCompressedBitmap
pack-priv final BasePackBitmapIndex.StoredBitmap

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitmapback to summary
pack-priv final EWAHCompressedBitmap bitmap
xorBitmapback to summary
pack-priv final BasePackBitmapIndex.StoredBitmap xorBitmap

Constructor Detail

XorCompressedBitmapback to summary
pack-priv XorCompressedBitmap(EWAHCompressedBitmap b, BasePackBitmapIndex.StoredBitmap xb)