Package org.apache.druid.sql.hook
Class DruidHookDispatcher
java.lang.Object
org.apache.druid.sql.hook.DruidHookDispatcher
Dispatcher for Druid hooks.
A single instance should live in the system and be used to dispatch hooks.
Usual way to dispatch should be via
PlannerContext.dispatchHook(HookKey, Object). Access to this class is
also possible thru DruidConnectionExtras.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voiddispatch(DruidHook.HookKey<T> key, T object) voidregister(DruidHook.HookKey<?> label, DruidHook<?> hook) voidunregister(DruidHook.HookKey<?> key, DruidHook<?> hook) <T> CloseablewithHook(DruidHook.HookKey<T> key, DruidHook<T> hook)
-
Constructor Details
-
DruidHookDispatcher
@Inject public DruidHookDispatcher()
-
-
Method Details
-
register
-
unregister
-
withHook
-
dispatch
-