|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<LongWritable,Text>
edu.umd.cloud9.collection.XMLInputFormat.XMLRecordReader
public static class XMLInputFormat.XMLRecordReader
Simple RecordReader for XML documents (org.apache.hadoop.mapreduce API). Recognizes begin-of-document and end-of-document tags only:
everything between those delimiting tags is returned in a Text object.
| Constructor Summary | |
|---|---|
XMLInputFormat.XMLRecordReader()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the record reader. |
LongWritable |
getCurrentKey()
Returns the current key. |
Text |
getCurrentValue()
Returns the current value. |
float |
getProgress()
The current progress of the record reader through its data. |
void |
initialize(InputSplit input,
TaskAttemptContext context)
Called once at initialization. |
boolean |
nextKeyValue()
Read the next key, value pair. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLInputFormat.XMLRecordReader()
| Method Detail |
|---|
public void initialize(InputSplit input,
TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class RecordReader<LongWritable,Text>input - the split that defines the range of records to readcontext - the information about the task
IOException
InterruptedException
public boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class RecordReader<LongWritable,Text>true if a key/value pair was read
IOException
InterruptedException
public LongWritable getCurrentKey()
throws IOException,
InterruptedException
getCurrentKey in class RecordReader<LongWritable,Text>null if there is no current key
IOException
InterruptedException
public Text getCurrentValue()
throws IOException,
InterruptedException
getCurrentValue in class RecordReader<LongWritable,Text>IOException
InterruptedException
public void close()
throws IOException
close in interface Closeableclose in class RecordReader<LongWritable,Text>IOException
public float getProgress()
throws IOException
getProgress in class RecordReader<LongWritable,Text>IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||