gortiz commented on code in PR #10687: URL: https://github.com/apache/pinot/pull/10687#discussion_r1184787077
########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/AbstractIndexType.java: ########## @@ -123,4 +123,16 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(_id); } + + /** + * Helper method that builds allocation context that includes segment name, column name, and index type. + * + * @param segmentName Name of segment. + * @param columnName Name of column. + * @param indexType Index type. + * @return Allocation context built from segment name, column name and index type. + */ + public static String buildAllocationContext(String segmentName, String columnName, String indexType) { + return segmentName + ":" + columnName + indexType; Review Comment: Done -- 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