org.apache.hadoop.hive.ql.io
Class SymlinkTextInputFormat.SymlinkTextInputSplit
java.lang.Object
FileSplit
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SymlinkTextInputFormat.SymlinkTextInputSplit
public SymlinkTextInputFormat.SymlinkTextInputSplit()
SymlinkTextInputFormat.SymlinkTextInputSplit
public SymlinkTextInputFormat.SymlinkTextInputSplit(Path symlinkPath,
FileSplit split)
throws IOException
- Throws:
IOException
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