@Deprecated public class TableRecordReader extends java.lang.Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>
| Constructor and Description |
|---|
TableRecordReader(org.apache.hadoop.zebra.mapred.TableExpr expr,
java.lang.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,
java.lang.String projection,
org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf conf)
throws java.io.IOException,
ParseException
expr - Table expressionprojection - projection schema. Should never be null.split - the split to work onconf - JobConf objectjava.io.IOExceptionParseExceptionpublic void close()
throws java.io.IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>java.io.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 java.io.IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>java.io.IOExceptionpublic float getProgress()
throws java.io.IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>java.io.IOExceptionpublic boolean next(org.apache.hadoop.io.BytesWritable key,
Tuple value)
throws java.io.IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.BytesWritable,Tuple>java.io.IOExceptionpublic boolean seekTo(org.apache.hadoop.io.BytesWritable key)
throws java.io.IOException
key - the key to seek onjava.io.IOExceptionpublic boolean atEnd()
throws java.io.IOException
java.io.IOExceptionCopyright © 2007-2012 The Apache Software Foundation