HCatContext
instead@InterfaceAudience.Public @InterfaceStability.Evolving public enum HCatContext extends java.lang.Enum<HCatContext>
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 and Description |
---|
INSTANCE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Configuration> |
getConf()
Deprecated.
Get the configuration, if there is one.
|
HCatContext |
setConf(Configuration newConf)
Deprecated.
Use the given configuration for optional behavior.
|
static HCatContext |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static HCatContext[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HCatContext INSTANCE
public static HCatContext[] values()
for (HCatContext c : HCatContext.values()) System.out.println(c);
public static HCatContext valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic HCatContext setConf(Configuration newConf)
public com.google.common.base.Optional<Configuration> getConf()
Copyright © 2012 The Apache Software Foundation