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>
IOException
InterruptedException
public LoadFunc prepareLoadFuncForReading(PigSplit split) throws IOException
IOException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
IOException
InterruptedException
public 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>
IOException
InterruptedException
public 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>
IOException
InterruptedException
public float getProgress() throws IOException, InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
IOException
Copyright © 2007-2017 The Apache Software Foundation