org.apache.pig
Class FileInputLoadFunc
java.lang.Object
org.apache.pig.LoadFunc
org.apache.pig.FileInputLoadFunc
- All Implemented Interfaces:
- OrderedLoadFunc
- Direct Known Subclasses:
- BinStorage, HiveColumnarLoader, PigStorage, SequenceFileLoader
public abstract class FileInputLoadFunc
- extends LoadFunc
- implements OrderedLoadFunc
This class provides an implementation of OrderedLoadFunc interface
which can be optionally re-used by LoadFuncs that use FileInputFormat, by
having this as a super class
Method Summary |
org.apache.hadoop.io.WritableComparable<?> |
getSplitComparable(org.apache.hadoop.mapreduce.InputSplit split)
The WritableComparable object returned will be used to compare
the position of different splits in an ordered stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInputLoadFunc
public FileInputLoadFunc()
getSplitComparable
public org.apache.hadoop.io.WritableComparable<?> getSplitComparable(org.apache.hadoop.mapreduce.InputSplit split)
throws IOException
- Description copied from interface:
OrderedLoadFunc
- The WritableComparable object returned will be used to compare
the position of different splits in an ordered stream
- Specified by:
getSplitComparable
in interface OrderedLoadFunc
- Returns:
- WritableComparable representing the position of the split in input
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation