public class TableRecordReader extends RecordReader<K,V>
Constructor and Description |
---|
TableRecordReader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the record reader.
|
PrimaryKey |
getCurrentKey()
Get the current key.
|
Row |
getCurrentValue()
Get the current value.
|
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 row.
|
protected Row current
public PrimaryKey getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class RecordReader<PrimaryKey,Row>
IOException
InterruptedException
public Row getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class RecordReader<PrimaryKey,Row>
IOException
InterruptedException
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
initialize
in class RecordReader<K,V>
split
- the split that defines the range of records to readcontext
- the information about the taskIOException
InterruptedException
public boolean nextKeyValue()
nextKeyValue
in class RecordReader<K,V>
public float getProgress()
getProgress
in class RecordReader<K,V>
public void close() throws IOException
close
in interface Closeable
close
in class RecordReader<K,V>
IOException
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.