Oracle® In-Database Container for Hadoop Java API Reference
Release 1.0.1

E54638-01

oracle.hadoop.indbmr.lib.input
Class HUtils

java.lang.Object
  extended by oracle.hadoop.indbmr.lib.input.HUtils

public class HUtils
extends java.lang.Object

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

HUtils

public HUtils()
Method Detail

getMapreduceInputFormatClass

public static java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat<?,?>> getMapreduceInputFormatClass(org.apache.hadoop.conf.Configuration conf)

getMapredInputFormatClass

public static java.lang.Class<? extends org.apache.hadoop.mapred.InputFormat<?,?>> getMapredInputFormatClass(org.apache.hadoop.conf.Configuration conf)

useMapredAPI

public static boolean useMapredAPI(org.apache.hadoop.conf.Configuration conf)

getInputFormatClass

public 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.

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

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.