|
Oracle® In-Database Container for Hadoop Java API Reference Release 1.0.1 E54638-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.hadoop.indbmr.lib.input.HUtils
public class HUtils
Central place to store Configuration property names and utility methods
Nested Class Summary | |
---|---|
static class |
HUtils.HConstants
|
Constructor Summary | |
---|---|
HUtils()
|
Method Summary | |
---|---|
static java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> |
getInputFormatClass(org.apache.hadoop.conf.Configuration conf)
If HUtils.HConstants.DEFAULT_USE_MAPRED_API is true, this method
returns OldToNewInputFormat .class
Otherwise it returns the value of the Configuration property
HUtils.HConstants.HADOOP_MAPREDUCE_INPUTFORMAT_CLASS and modifies
the Configuration to set property
OldToNewInputFormat.PROPERTY_OLD_INPUTFORMAT_CLASS
to the value of Configuration property
HUtils.HConstants.HADOOP_MAPRED_INPUTFORMAT_CLASS . |
static java.lang.Class<? extends org.apache.hadoop.mapred.InputFormat<?,?>> |
getMapredInputFormatClass(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat<?,?>> |
getMapreduceInputFormatClass(org.apache.hadoop.conf.Configuration conf)
|
static boolean |
useMapredAPI(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HUtils()
Method Detail |
---|
public static java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat<?,?>> getMapreduceInputFormatClass(org.apache.hadoop.conf.Configuration conf)
public static java.lang.Class<? extends org.apache.hadoop.mapred.InputFormat<?,?>> getMapredInputFormatClass(org.apache.hadoop.conf.Configuration conf)
public static boolean useMapredAPI(org.apache.hadoop.conf.Configuration conf)
public static java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> getInputFormatClass(org.apache.hadoop.conf.Configuration conf)
HUtils.HConstants.DEFAULT_USE_MAPRED_API
is true, this method
returns OldToNewInputFormat
.class
Otherwise it returns the value of the Configuration property
HUtils.HConstants.HADOOP_MAPREDUCE_INPUTFORMAT_CLASS
and modifies
the Configuration to set property
OldToNewInputFormat.PROPERTY_OLD_INPUTFORMAT_CLASS
to the value of Configuration property
HUtils.HConstants.HADOOP_MAPRED_INPUTFORMAT_CLASS
.
If it returns OldToNewInputFormat, this method modifies the supplied Configuration. For this reason this is a synchronized method, to support cases where it is called from a multi-threaded context.
|
Oracle® In-Database Container for Hadoop Java API Reference Release 1.0.1 E54638-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |