Class BitmapWalker


  • public final class BitmapWalker
    extends Object
    Helper class to do ObjectWalks with pack index bitmaps.
    Since:
    4.10
    • Constructor Detail

      • BitmapWalker

        public BitmapWalker​(ObjectWalk walker,
                            BitmapIndex bitmapIndex,
                            ProgressMonitor pm)
        Create a BitmapWalker.
        Parameters:
        walker - walker to use when traversing the object graph.
        bitmapIndex - index to obtain bitmaps from.
        pm - progress monitor to report progress on.
    • Method Detail

      • setPrevCommit

        public void setPrevCommit​(AnyObjectId prevCommit)
        Set the cached commit for the walker.
        Parameters:
        prevCommit - the cached commit.
        Since:
        5.8
      • setPrevBitmap

        public void setPrevBitmap​(BitmapIndex.Bitmap prevBitmap)
        Set the bitmap associated with the cached commit for the walker.
        Parameters:
        prevBitmap - the bitmap associated with the cached commit.
        Since:
        5.8
      • getCountOfBitmapIndexMisses

        public long getCountOfBitmapIndexMisses()
        Return the number of objects that had to be walked because they were not covered by a bitmap.
        Returns:
        the number of objects that had to be walked because they were not covered by a bitmap.