org.apache.hadoop.hive.ql.io
Class SymlinkTextInputFormat.SymlinkTextInputSplit

java.lang.Object
  extended by FileSplit
      extended by org.apache.hadoop.hive.ql.io.SymlinkTextInputFormat.SymlinkTextInputSplit
Enclosing class:
SymlinkTextInputFormat

public static class SymlinkTextInputFormat.SymlinkTextInputSplit
extends FileSplit

This input split wraps the FileSplit generated from TextInputFormat.getSplits(), while setting the original link file path as job input path. This is needed because MapOperator relies on the job input path to lookup correct child operators. The target data file is encapsulated in the wrapped FileSplit.


Constructor Summary
SymlinkTextInputFormat.SymlinkTextInputSplit()
           
SymlinkTextInputFormat.SymlinkTextInputSplit(Path symlinkPath, FileSplit split)
           
 
Method Summary
 FileSplit getTargetSplit()
          Gets the target split, i.e.
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymlinkTextInputFormat.SymlinkTextInputSplit

public SymlinkTextInputFormat.SymlinkTextInputSplit()

SymlinkTextInputFormat.SymlinkTextInputSplit

public SymlinkTextInputFormat.SymlinkTextInputSplit(Path symlinkPath,
                                                    FileSplit split)
                                             throws IOException
Throws:
IOException
Method Detail

getTargetSplit

public FileSplit getTargetSplit()
Gets the target split, i.e. the split of target data.


write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation