@InterfaceAudience.Public @InterfaceStability.Evolving public enum HCatContext extends 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 |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<org.apache.hadoop.conf.Configuration> |
getConf()
Get the configuration, if there is one.
|
HCatContext |
setConf(org.apache.hadoop.conf.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.
|
public static final HCatContext INSTANCE
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 nameNullPointerException
- if the argument is nullpublic HCatContext setConf(org.apache.hadoop.conf.Configuration newConf)
public com.google.common.base.Optional<org.apache.hadoop.conf.Configuration> getConf()
Copyright © 2017 The Apache Software Foundation. All rights reserved.