public class TeradataBinaryRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>
| Constructor and Description |
|---|
TeradataBinaryRecordReader(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.FileSplit fileSplit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.NullWritable |
createKey()
Create an object of the appropriate type to be used as a key.
|
org.apache.hadoop.io.BytesWritable |
createValue()
Create an object of the appropriate type to be used as a value.
|
long |
getPos()
Returns the current position in the input.
|
float |
getProgress()
How much of the input has the
RecordReader consumed i.e. |
boolean |
next(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.BytesWritable value)
Reads the next key/value pair from the input for processing.
|
public TeradataBinaryRecordReader(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.FileSplit fileSplit)
throws IOException
IOExceptionpublic boolean next(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.BytesWritable value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>key - the key to read data intovalue - the value to read data intoIOExceptionpublic org.apache.hadoop.io.NullWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>public org.apache.hadoop.io.BytesWritable createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>public long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic float getProgress()
throws IOException
RecordReader consumed i.e.
has been processed by?getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.BytesWritable>0.0 to 1.0.IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.