org.apache.pig.piggybank.storage
Class HadoopJobHistoryLoader.HadoopJobHistoryReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
      extended by org.apache.pig.piggybank.storage.HadoopJobHistoryLoader.HadoopJobHistoryReader
All Implemented Interfaces:
Closeable
Enclosing class:
HadoopJobHistoryLoader

public static class HadoopJobHistoryLoader.HadoopJobHistoryReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>


Constructor Summary
HadoopJobHistoryLoader.HadoopJobHistoryReader()
           
 
Method Summary
 void close()
           
 org.apache.hadoop.io.Text getCurrentKey()
           
 HadoopJobHistoryLoader.MRJobInfo getCurrentValue()
           
 float getProgress()
           
 void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 boolean nextKeyValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopJobHistoryLoader.HadoopJobHistoryReader

public HadoopJobHistoryLoader.HadoopJobHistoryReader()
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException

getCurrentKey

public org.apache.hadoop.io.Text getCurrentKey()
                                        throws IOException,
                                               InterruptedException
Specified by:
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException
InterruptedException

getCurrentValue

public HadoopJobHistoryLoader.MRJobInfo getCurrentValue()
                                                 throws IOException,
                                                        InterruptedException
Specified by:
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException
InterruptedException

getProgress

public float getProgress()
                  throws IOException,
                         InterruptedException
Specified by:
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException
InterruptedException

initialize

public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
Specified by:
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException
InterruptedException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Specified by:
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,HadoopJobHistoryLoader.MRJobInfo>
Throws:
IOException
InterruptedException


Copyright © ${year} The Apache Software Foundation