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
IOException
public 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
IOException
public 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>
IOException
protected boolean next(org.apache.hadoop.io.LongWritable key) throws IOException
IOException
public float getProgress() throws IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>
IOException
public RCFile.KeyBuffer getKeyBuffer()
protected void seek(long pos) throws IOException
IOException
public void sync(long pos) throws IOException
IOException
public void resetBuffer()
public long getStart()
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,VectorizedRowBatch>
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.