saurabhd336 commented on code in PR #12532: URL: https://github.com/apache/pinot/pull/12532#discussion_r1533439555
########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/JsonIndexReader.java: ########## @@ -35,16 +35,35 @@ public interface JsonIndexReader extends IndexReader { MutableRoaringBitmap getMatchingDocIds(String filterString); /** - * For an array of docIds and context specific to a JSON key, returns the corresponding values for each docId. The - * context should be created from the getMatchingDocsMap method. - * - * @return String[] where String[i] is the value for docIds[i] + * For an array of docIds and context specific to a JSON key, returns the corresponding sv value for each docId. + * @param docIds array of docIds + * @param length length of the array + * @param matchingValueToDocs Map from each unique value for the jsonPathKey value to the flattened docId + * posting list + * @param isFlattenedDocIds whether the docIds are flattened or unflattened + * @return String[] where String[i] is the sv value for docIds[i] */ - String[] getValuesForKeyAndDocs(int[] docIds, Map<String, RoaringBitmap> context); + String[] getValuesSv(int[] docIds, int length, Map<String, RoaringBitmap> matchingValueToDocs, + boolean isFlattenedDocIds); /** - * For a JSON key, returns a Map from each value to the docId posting list. This map should be used to avoid reading - * and converting the posting list of flattened docIds to real docIds + * For an array of docIds and context specific to a JSON key, returns the corresponding mv array for each docId. + * @param docIds array of docIds + * @param length length of the array + * @param matchingValueToFlattenedDocs Map from each unique value for the jsonPathKey value to the flattened docId + * posting list + * @return String[][] where String[i] is the mv array for docIds[i] */ - Map<String, RoaringBitmap> getMatchingDocsMap(String key); + String[][] getValuesMv(int[] docIds, int length, Map<String, RoaringBitmap> matchingValueToFlattenedDocs); Review Comment: Ack -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org