|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
org.apache.hadoop.vertica.VerticaRecordReader
public class VerticaRecordReader
Constructor Summary | |
---|---|
VerticaRecordReader(VerticaInputSplit split,
org.apache.hadoop.conf.Configuration job)
|
Method Summary | |
---|---|
void |
close()
Close the record reader. |
org.apache.hadoop.io.LongWritable |
getCurrentKey()
Get the current key |
VerticaRecord |
getCurrentValue()
Get the current value. |
long |
getPos()
|
float |
getProgress()
The current progress of the record reader through its data. |
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization. |
boolean |
next(org.apache.hadoop.io.LongWritable key,
VerticaRecord value)
|
boolean |
nextKeyValue()
Read the next key, value pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerticaRecordReader(VerticaInputSplit split, org.apache.hadoop.conf.Configuration job) throws Exception
Exception
Method Detail |
---|
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReader
initialize
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
split
- the split that defines the range of records to readcontext
- the information about the task
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
IOException
public long getPos() throws IOException
IOException
public float getProgress() throws IOException
RecordReader
getProgress
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
IOException
public boolean next(org.apache.hadoop.io.LongWritable key, VerticaRecord value) throws IOException
IOException
public org.apache.hadoop.io.LongWritable getCurrentKey() throws IOException, InterruptedException
RecordReader
getCurrentKey
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
IOException
InterruptedException
public VerticaRecord getCurrentValue() throws IOException, InterruptedException
RecordReader
getCurrentValue
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
RecordReader
nextKeyValue
in class RecordReader<org.apache.hadoop.io.LongWritable,VerticaRecord>
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |