public enum Hook extends Enum<Hook>
Modifier and Type | Class and Description |
---|---|
static interface |
Hook.Closeable
Removes a Hook after use.
|
Enum Constant and Description |
---|
LOGICAL_PLAN
Called with the logical plan.
|
Modifier and Type | Method and Description |
---|---|
Hook.Closeable |
add(org.apache.drill.shaded.guava.com.google.common.base.Function handler) |
void |
run(Object arg)
Runs all handlers registered for this Hook, with the given argument.
|
static Hook |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Hook[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hook LOGICAL_PLAN
public static Hook[] values()
for (Hook c : Hook.values()) System.out.println(c);
public static Hook valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Hook.Closeable add(org.apache.drill.shaded.guava.com.google.common.base.Function handler)
public void run(Object arg)
Copyright © 2021 The Apache Software Foundation. All rights reserved.