public class FooterBuffer extends Object
Constructor and Description |
---|
FooterBuffer() |
Modifier and Type | Method and Description |
---|---|
boolean |
initializeBuffer(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.RecordReader recordreader,
int footerCount,
org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable value)
Initialize footer buffer in order to keep footer records at the end of file.
|
void |
setCursor(int cur) |
boolean |
updateBuffer(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.RecordReader recordreader,
org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable value)
Enqueue most recent record read, and dequeue earliest result in the queue.
|
public void setCursor(int cur)
public boolean initializeBuffer(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.RecordReader recordreader, int footerCount, org.apache.hadoop.io.WritableComparable key, org.apache.hadoop.io.Writable value) throws IOException
job
- Current job configuration.recordreader
- Record reader.footerCount
- Footer line number of the table files.key
- Key of current reading record.value
- Value of current reading record.IOException
public boolean updateBuffer(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.RecordReader recordreader, org.apache.hadoop.io.WritableComparable key, org.apache.hadoop.io.Writable value) throws IOException
job
- Current job configuration.recordreader
- Record reader.key
- Key of current reading record.value
- Value of current reading record.IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.