@Deprecated public class TableRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>
| Constructor and Description |
|---|
TableRecordReader(org.apache.hadoop.zebra.mapred.TableExpr expr,
String projection,
org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf conf)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
atEnd()
Deprecated.
Check if the end of the input has been reached
|
void |
close()
Deprecated.
|
org.apache.hadoop.io.BytesWritable |
createKey()
Deprecated.
|
Tuple |
createValue()
Deprecated.
|
long |
getPos()
Deprecated.
|
float |
getProgress()
Deprecated.
|
boolean |
next(org.apache.hadoop.io.BytesWritable key,
Tuple value)
Deprecated.
|
boolean |
seekTo(org.apache.hadoop.io.BytesWritable key)
Deprecated.
Seek to the position at the first row which has the key
or just after the key; only applicable for sorted Zebra table
|
public TableRecordReader(org.apache.hadoop.zebra.mapred.TableExpr expr,
String projection,
org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf conf)
throws IOException,
ParseException
expr - Table expressionprojection - projection schema. Should never be null.split - the split to work onconf - JobConf objectIOExceptionParseExceptionpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>IOExceptionpublic org.apache.hadoop.io.BytesWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>public Tuple createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>public long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>IOExceptionpublic boolean next(org.apache.hadoop.io.BytesWritable key,
Tuple value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>IOExceptionpublic boolean seekTo(org.apache.hadoop.io.BytesWritable key)
throws IOException
key - the key to seek onIOExceptionpublic boolean atEnd()
throws IOException
IOExceptionCopyright © 2007-2012 The Apache Software Foundation