public class VectorizedRCFileRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
| Constructor and Description |
|---|
VectorizedRCFileRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.NullWritable |
createKey() |
VectorizedRowBatch |
createValue() |
RCFile.KeyBuffer |
getKeyBuffer() |
Class<?> |
getKeyClass() |
long |
getPos() |
float |
getProgress()
Return the progress within the input split.
|
long |
getStart() |
Class<?> |
getValueClass() |
protected boolean |
next(org.apache.hadoop.io.LongWritable key) |
boolean |
next(org.apache.hadoop.io.NullWritable key,
VectorizedRowBatch value) |
boolean |
nextBlock() |
void |
resetBuffer() |
protected void |
seek(long pos) |
void |
sync(long pos) |
public VectorizedRCFileRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split)
throws IOException
IOExceptionpublic Class<?> getKeyClass()
public Class<?> getValueClass()
public org.apache.hadoop.io.NullWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>public VectorizedRowBatch createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>public boolean nextBlock()
throws IOException
IOExceptionpublic boolean next(org.apache.hadoop.io.NullWritable key,
VectorizedRowBatch value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>IOExceptionprotected boolean next(org.apache.hadoop.io.LongWritable key)
throws IOException
IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>IOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>IOExceptionpublic RCFile.KeyBuffer getKeyBuffer()
protected void seek(long pos)
throws IOException
IOExceptionpublic void sync(long pos)
throws IOException
IOExceptionpublic void resetBuffer()
public long getStart()
public void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.