rdblue commented on code in PR #5268:
URL: https://github.com/apache/iceberg/pull/5268#discussion_r922352408


##########
core/src/main/java/org/apache/iceberg/CatalogUtil.java:
##########
@@ -346,4 +347,42 @@ public static void configureHadoopConf(Object 
maybeConfigurable, Object conf) {
 
     setConf.invoke(conf);
   }
+
+  /**
+   * Load a custom {@link ScanReporter} implementation.
+   * <p>
+   * The implementation must have a no-arg constructor. {@link 
ScanReporter#initialize(Map properties)} is called to
+   * complete the initialization.
+   *
+   * @param impl       full class name of a custom {@link ScanReporter} 
implementation
+   * @param properties used to initialize the {@link ScanReporter} 
implementation
+   * @return An initialized {@link ScanReporter}.
+   * @throws IllegalArgumentException if class path not found or right 
constructor not found or the loaded class cannot
+   *                                  be cast to the given interface type
+   */
+  public static ScanReporter loadScanReporter(String impl, Map<String, String> 
properties) {

Review Comment:
   Since this is passed in from the table, we don't need to support dynamic 
loading. If there's a use case, we can add it later.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to