edu.umd.cloud9.collection
Class XMLInputFormat.XMLRecordReader
java.lang.Object
edu.umd.cloud9.collection.XMLInputFormat.XMLRecordReader
- All Implemented Interfaces:
- RecordReader<LongWritable,Text>
- Enclosing class:
- XMLInputFormat
public static class XMLInputFormat.XMLRecordReader
- extends Object
- implements RecordReader<LongWritable,Text>
XMLInputFormat.XMLRecordReader
public XMLInputFormat.XMLRecordReader(FileSplit split,
JobConf jobConf)
throws IOException
- Throws:
IOException
next
public boolean next(LongWritable key,
Text value)
throws IOException
- Specified by:
next in interface RecordReader<LongWritable,Text>
- Throws:
IOException
createKey
public LongWritable createKey()
- Specified by:
createKey in interface RecordReader<LongWritable,Text>
createValue
public Text createValue()
- Specified by:
createValue in interface RecordReader<LongWritable,Text>
getStart
public long getStart()
getEnd
public long getEnd()
getPos
public long getPos()
throws IOException
- Specified by:
getPos in interface RecordReader<LongWritable,Text>
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface RecordReader<LongWritable,Text>
- Throws:
IOException
getProgress
public float getProgress()
throws IOException
- Specified by:
getProgress in interface RecordReader<LongWritable,Text>
- Throws:
IOException