hgromer commented on code in PR #7741:
URL: https://github.com/apache/hbase/pull/7741#discussion_r2906316001


##########
hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java:
##########
@@ -38,20 +37,29 @@
  */
 @InterfaceAudience.Private
 public class TagCompressionContext {
-  private final Dictionary tagDict;
+  private final UndoableLRUDictionary tagDict;
 
-  public TagCompressionContext(Class<? extends Dictionary> dictType, int 
dictCapacity)
-    throws SecurityException, NoSuchMethodException, InstantiationException, 
IllegalAccessException,
-    InvocationTargetException {
-    Constructor<? extends Dictionary> dictConstructor = 
dictType.getConstructor();
-    tagDict = dictConstructor.newInstance();
+  public TagCompressionContext(Class<? extends Dictionary> dictType, int 
dictCapacity) {

Review Comment:
   It seems we're no longer using `dictType` here. Is this okay? Callers might 
expect the underlying dictionary type to be `dictType`. So if it has any custom 
behavior, you'd be overriding/removing it. Is this okay? What's the intended 
case for this pluggable dictionary type?



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