aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java
diff options
context:
space:
mode:
authorYunjie Li <yunjieli@google.com>2020-02-10 15:22:31 -0800
committerYunjie Li <yunjieli@google.com>2020-05-12 17:32:05 -0700
commit840e414d0b0b817e7c154664914d19cb2b6d0387 (patch)
tree8c2823ee7d3cccd487cd6c5ef5f8b4a3b35ba167 /org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java
parent54a2d48008140237eb143d7aefd872cbf6430238 (diff)
downloadjgit-840e414d0b0b817e7c154664914d19cb2b6d0387.tar.gz
jgit-840e414d0b0b817e7c154664914d19cb2b6d0387.zip
Refactor: Make retriveCompressed an method of the Bitmap class
Make retrieveCompressed() a method of Bitmap interface to avoid type casting and later reuse in improving the memory footprint of GC's bitmap generation phase. Change-Id: I098d85105cf17af845d43b8c71b4ca48b02fd7da Signed-off-by: Yunjie Li <yunjieli@google.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java
index f61286d6da..f6695bdf7d 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java
@@ -14,6 +14,8 @@ import java.util.Iterator;
import org.eclipse.jgit.internal.storage.file.PackBitmapIndex;
+import com.googlecode.javaewah.EWAHCompressedBitmap;
+
/**
* A compressed bitmap representation of the entire object graph.
*
@@ -81,6 +83,14 @@ public interface BitmapIndex {
*/
@Override
Iterator<BitmapObject> iterator();
+
+ /**
+ * Returns the corresponding raw compressed EWAH bitmap of the bitmap.
+ *
+ * @return the corresponding {@code EWAHCompressedBitmap}
+ * @since 5.8
+ */
+ EWAHCompressedBitmap retrieveCompressed();
}
/**