org.apache.pig
Class FileInputLoadFunc
java.lang.Object
org.apache.pig.LoadFunc
org.apache.pig.FileInputLoadFunc
- All Implemented Interfaces:
- OrderedLoadFunc
- Direct Known Subclasses:
- AllLoader, AvroStorage, BinStorage, CSVLoader, HiveColumnarLoader, InterStorage, PigStorage, SequenceFileLoader, TFileStorage
@InterfaceAudience.Public
@InterfaceStability.Evolving
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
- Since:
- Pig 0.7
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
- Parameters:
split
- An InputSplit from the InputFormat underlying this loader.
- Returns:
- WritableComparable representing the position of the split in input
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation