public class HiveHooks extends Object
addHook(HookContext.HookType, Object)} to
add hook alone or getHooks(HookContext.HookType, Class) to get all hooks
corresponding to the specific hook type.| Constructor and Description |
|---|
HiveHooks(HiveConf conf) |
HiveHooks(HiveConf conf,
SessionState.LogHelper console) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHook(HookContext.HookType type,
Object hook)
Add the hook corresponding to the specific hook type.
|
List |
getHooks(HookContext.HookType type) |
<T> List<T> |
getHooks(HookContext.HookType type,
Class<T> clazz)
Get all hooks corresponding to the specific hook type.
|
public HiveHooks(HiveConf conf)
public HiveHooks(HiveConf conf, SessionState.LogHelper console)
public void addHook(HookContext.HookType type, Object hook)
type - The hook typehook - The hook that will be addedpublic <T> List<T> getHooks(HookContext.HookType type, Class<T> clazz)
T - The generic type of the hookstype - The hook typeclazz - The hook class of returning hookspublic List getHooks(HookContext.HookType type)
Copyright © 2024 The Apache Software Foundation. All rights reserved.