com.ebay.erl.mobius.core.mapred
Class FileInputFormatHelper

java.lang.Object
  extended by com.ebay.erl.mobius.core.mapred.MultiInputsHelper
      extended by com.ebay.erl.mobius.core.mapred.FileInputFormatHelper

public class FileInputFormatHelper
extends MultiInputsHelper

This product is licensed under the Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0. This product contains portions derived from Apache hadoop which is licensed under the Apache License, Version 2.0, available at http://hadoop.apache.org. © 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan


Constructor Summary
FileInputFormatHelper()
           
 
Method Summary
 java.net.URI getPathBySplit(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf conf)
          Get the URI to for Mobius to identify the current dataset ID.
 java.net.URI getUniquePathByInputFormat(org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.fs.Path anInput)
          Get a unique URI so that Mobius can use the URI to locate the corresponding Dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputFormatHelper

public FileInputFormatHelper()
Method Detail

getUniquePathByInputFormat

public java.net.URI getUniquePathByInputFormat(org.apache.hadoop.mapred.JobConf conf,
                                               org.apache.hadoop.fs.Path anInput)
                                        throws java.io.IOException
Description copied from class: MultiInputsHelper
Get a unique URI so that Mobius can use the URI to locate the corresponding Dataset.

Specified by:
getUniquePathByInputFormat in class MultiInputsHelper
Returns:
Throws:
java.io.IOException

getPathBySplit

public java.net.URI getPathBySplit(org.apache.hadoop.mapred.InputSplit split,
                                   org.apache.hadoop.mapred.JobConf conf)
                            throws java.io.IOException
Description copied from class: MultiInputsHelper
Get the URI to for Mobius to identify the current dataset ID. Return null if the split cannot be handled by this helper.

Specified by:
getPathBySplit in class MultiInputsHelper
Returns:
Throws:
java.io.IOException