|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>
gov.llnl.ontology.text.hbase.GzipTarInputFormat.GzipTarRecordReader
public class GzipTarInputFormat.GzipTarRecordReader
A RecordReader for processing gzipped tarballs of document files.
It is assumed that each tarballed file is a single document, or will be
processed further by other stages.
| Constructor Summary | |
|---|---|
GzipTarInputFormat.GzipTarRecordReader()
|
|
| Method Summary | |
|---|---|
void |
close()
|
org.apache.hadoop.hbase.io.ImmutableBytesWritable |
getCurrentKey()
|
org.apache.hadoop.io.Text |
getCurrentValue()
|
float |
getProgress()
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Extract the Path for the file to be processed by this GzipTarInputFormat.GzipTarRecordReader. |
boolean |
nextKeyValue()
Advances the reader one step to point to the next tarball file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GzipTarInputFormat.GzipTarRecordReader()
| Method Detail |
|---|
public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
Path for the file to be processed by this GzipTarInputFormat.GzipTarRecordReader.
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>IOException
InterruptedException
public boolean nextKeyValue()
throws IOException
null when there are no more files in the tarball.
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>IOExceptionpublic org.apache.hadoop.hbase.io.ImmutableBytesWritable getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>public org.apache.hadoop.io.Text getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>
public float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>IOException
InterruptedException
public void close()
throws IOException
close in interface Closeableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.io.Text>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||