danny0405 commented on code in PR #19575:
URL: https://github.com/apache/hudi/pull/19575#discussion_r3877791863


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/PartitionedRecordIndexFileGroupLookupFunction.java:
##########
@@ -44,9 +47,18 @@ public class PartitionedRecordIndexFileGroupLookupFunction
     implements PairFlatMapFunction<Iterator<Pair<String, String>>, String, 
HoodieRecordGlobalLocation> {
 
   private final HoodieTableMetadata metadataTable;
+  // Null when no counters should be collected; see 
RecordIndexLookupMetrics#resolveRegistry.
+  private final Registry lookupMetrics;
 
+  /** Uninstrumented, for the query-side read path. */
   public PartitionedRecordIndexFileGroupLookupFunction(HoodieTableMetadata 
metadataTable) {
+    this(metadataTable, null);
+  }
+
+  public PartitionedRecordIndexFileGroupLookupFunction(HoodieTableMetadata 
metadataTable,
+                                                       Registry lookupMetrics) 
{

Review Comment:
   passing around Option instead of null



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

Reply via email to