This commit is contained in:
Zoltan Haindrich 2024-07-19 08:42:58 +00:00
parent d216b934fc
commit e2a54b5758
1 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@
package org.apache.druid.sql.calcite.run; package org.apache.druid.sql.calcite.run;
import com.google.errorprone.annotations.Immutable;
import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.RelNode;
import java.io.Closeable; import java.io.Closeable;
import java.util.ArrayList; import java.util.ArrayList;
@ -30,10 +31,11 @@ import java.util.Objects;
@FunctionalInterface @FunctionalInterface
public interface DruidHook<T> public interface DruidHook<T>
{ {
@Immutable
class HookKey<T> class HookKey<T>
{ {
private String label; private final String label;
private Class<T> type; private final Class<T> type;
public HookKey(String label, Class<T> type) public HookKey(String label, Class<T> type)
{ {