public class MapRedRowRecordReader extends RowRecordReader implements org.apache.hadoop.mapred.RecordReader<Key,Row>
RowRecordReader to make the reader compliant with
mapred.* api, a.k.a. old map reduce apies, logger, rs, splitIterator| Constructor and Description |
|---|
MapRedRowRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Key |
createKey() |
Row |
createValue() |
protected long[] |
getLengths(org.apache.hadoop.mapred.InputSplit split) |
long |
getPos() |
float |
getProgress() |
protected org.apache.hadoop.fs.Path[] |
getSplitPaths(org.apache.hadoop.mapred.InputSplit split) |
protected long[] |
getStartOffsets(org.apache.hadoop.mapred.InputSplit split) |
boolean |
next(Key key,
Row value) |
getCurrentKey, getCurrentValue, getResultSetProgress, getRowKeyBytes, initialize, instantiateGfxdLoner, nextKeyValue, nextRowprotected org.apache.hadoop.fs.Path[] getSplitPaths(org.apache.hadoop.mapred.InputSplit split)
protected long[] getStartOffsets(org.apache.hadoop.mapred.InputSplit split)
protected long[] getLengths(org.apache.hadoop.mapred.InputSplit split)
public final Key createKey()
public final Row createValue()
public final boolean next(Key key, Row value) throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<Key,Row>IOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<Key,Row>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.mapred.RecordReader<Key,Row>close in class RowRecordReaderIOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<Key,Row>getProgress in class RowRecordReaderIOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.