chenboat commented on code in PR #12744:
URL: https://github.com/apache/pinot/pull/12744#discussion_r1552580631


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentIndexCreationDriverImpl.java:
##########
@@ -218,6 +224,19 @@ public void init(SegmentGeneratorConfig config, 
SegmentCreationDataSource dataSo
     LOGGER.debug("tempIndexDir:{}", _tempIndexDir);
   }
 
+  // input int[] can be used to map sortedDocIds[immutableId] = mutableId 
(based on RecordReader iteration order)
+  // output int[] should be used to map output[mutableId] = immutableId
+  private int[] convertSortedDocIds(@Nullable int[] sortedDocIds) {

Review Comment:
   sortedDocIds makes people think the docIds in the array is sorted. In this 
case it is not -- you probably mean immutableId is sorted as array index. Can 
we find a better name here with some explanation and example? e.g., 
immutableIdToMutableId map.



-- 
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

Reply via email to