public static class AllLoader.AllReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.Writable |
getCurrentKey() |
org.apache.hadoop.io.Writable |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
LoadFunc |
prepareLoadFuncForReading(PigSplit split) |
public AllReader(String udfSignature)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic LoadFunc prepareLoadFuncForReading(PigSplit split) throws IOException
IOExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.Writable getCurrentKey()
throws IOException,
InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.Writable getCurrentValue()
throws IOException,
InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>IOExceptionCopyright © 2007-2017 The Apache Software Foundation