|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<HCatContext>
HCatContext
@InterfaceAudience.Public @InterfaceStability.Evolving public enum HCatContext
HCatContext is a singleton that provides global access to configuration data.
HCatalog provides a variety of functionality that users can configure at runtime through
configuration properties. Available configuration properties are defined in
HCatConstants
. HCatContext allows users to enable optional functionality by
setting properties in a provided configuration.
HCatalog users (MR apps, processing framework adapters) should set properties
in a configuration that has been provided to
setConf(org.apache.hadoop.conf.Configuration)
to enable optional functionality.
The job configuration must be used to ensure properties are passed to the backend MR tasks.
HCatalog developers should enable optional functionality by checking properties
from getConf()
. Since users are not obligated to set a configuration, optional
functionality must provide a sensible default.
Enum Constant Summary | |
---|---|
INSTANCE
|
Method Summary | |
---|---|
Optional<Configuration> |
getConf()
Get the configuration, if there is one. |
HCatContext |
setConf(Configuration newConf)
Use the given configuration for optional behavior. |
static HCatContext |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HCatContext[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HCatContext INSTANCE
Method Detail |
---|
public static HCatContext[] values()
for (HCatContext c : HCatContext.values()) System.out.println(c);
public static HCatContext valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic HCatContext setConf(Configuration newConf)
public Optional<Configuration> getConf()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |