julianhyde commented on code in PR #227:
URL: https://github.com/apache/calcite-avatica/pull/227#discussion_r1369463169


##########
core/src/main/java/org/apache/calcite/avatica/ConnectionConfigImpl.java:
##########
@@ -337,6 +337,19 @@ public <T> T getPlugin(Class<T> pluginClass, String 
defaultClassName,
       return get_(pluginConverter(pluginClass, defaultInstance),
           defaultClassName);
     }
+
+    /** Returns the class value of this property. Throws if not set and no
+     * default. */
+    public Class<?> getClazz(Class<?> clazz, Class<?> defaultValue) {

Review Comment:
   There's a small chance for confusion with `Object.getClass()`. So, I would 
recommend calling it `getType`.



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