wirybeaver commented on code in PR #11758:
URL: https://github.com/apache/pinot/pull/11758#discussion_r1412993320
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/readers/json/ImmutableJsonIndexReader.java:
##########
@@ -101,6 +103,23 @@ public MutableRoaringBitmap getMatchingDocIds(String
filterString) {
}
}
+ public ImmutableRoaringBitmap getDocIds(int dictId) {
+ ImmutableRoaringBitmap flattenedDocIds = _invertedIndex.getDocIds(dictId);
+ MutableRoaringBitmap result = new MutableRoaringBitmap();
+ flattenedDocIds.stream().forEach(f -> result.add(getDocId(f)));
+ return result;
+ }
+
+ public Pair<Object[], Integer> getValues(String key) {
+ int startIndex = _dictionary.indexOf(key +
JsonIndexCreator.KEY_VALUE_SEPARATOR);
Review Comment:
I realized that the current json indexing store the whole key/value pair as
a sorted string table without compression even though the key is the common
prefix when I see this two lines of code :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]