You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Jackie-Jiang (via GitHub)" <gi...@apache.org> on 2026/01/09 23:25:23 UTC

Re: [PR] Adds Segment metadata preprocessor hook [pinot]

Jackie-Jiang commented on code in PR #17430:
URL: https://github.com/apache/pinot/pull/17430#discussion_r2677931376


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/immutable/ImmutableSegmentLoader.java:
##########
@@ -123,6 +123,11 @@ public static ImmutableSegment load(File indexDir, IndexLoadingConfig indexLoadi
     Preconditions.checkArgument(indexDir.isDirectory(), "Index directory: %s does not exist or is not a directory",
         indexDir);
 
+    SegmentMetadataPreProcessor segmentMetadataPreProcessor = SegmentMetadataPreProcessorRegistry.getInstance();

Review Comment:
   Consider simply putting a static variable in this class and add a setter for that. See `ForwardIndexConfig` for example



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org