public class DocumentDBRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>
| Constructor and Description |
|---|
DocumentDBRecordReader(WrapperSplit split)
A record reader using the old mapred.* API that reads documents
from DocumentDB.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.LongWritable |
createKey() |
DocumentDBWritable |
createValue() |
long |
getPos() |
float |
getProgress() |
boolean |
next(org.apache.hadoop.io.LongWritable key,
DocumentDBWritable value) |
public DocumentDBRecordReader(WrapperSplit split) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>IOExceptionpublic org.apache.hadoop.io.LongWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>public DocumentDBWritable createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>public long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>IOExceptionpublic boolean next(org.apache.hadoop.io.LongWritable key,
DocumentDBWritable value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,DocumentDBWritable>IOExceptionCopyright © 2015. All rights reserved.