|
||||||||||
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.Text,org.apache.hadoop.io.Text>
org.apache.hadoop.vertica.VerticaStreamingRecordReader
public class VerticaStreamingRecordReader
Constructor Summary | |
---|---|
VerticaStreamingRecordReader(VerticaInputSplit split,
org.apache.hadoop.conf.Configuration conf)
|
Method Summary | |
---|---|
void |
close()
Close the record reader. |
org.apache.hadoop.io.Text |
getCurrentKey()
Get the current key |
org.apache.hadoop.io.Text |
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 |
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 VerticaStreamingRecordReader(VerticaInputSplit split, org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
Method Detail |
---|
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
initialize
in class RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
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.Text,org.apache.hadoop.io.Text>
IOException
public long getPos() throws IOException
IOException
public float getProgress() throws IOException
RecordReader
getProgress
in class RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
public org.apache.hadoop.io.Text getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
public org.apache.hadoop.io.Text getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException
nextKeyValue
in class RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |