public interface TableScanner extends Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
advance()
Advance cursor to the next Row.
|
boolean |
atEnd()
Test whether the cursor is at the end of the scan range.
|
void |
getKey(org.apache.hadoop.io.BytesWritable key)
Get the row key.
|
String |
getProjection() |
Schema |
getSchema()
Get the projection's schema
|
void |
getValue(Tuple row)
Get the row.
|
boolean |
seekTo(org.apache.hadoop.io.BytesWritable key)
Seek to the key that is greater or equal to the provided key, or we reach
the end.
|
void |
seekToEnd()
Seek to the end of the scan range.
|
boolean atEnd()
throws IOException
IOExceptionboolean advance()
throws IOException
IOExceptionvoid getKey(org.apache.hadoop.io.BytesWritable key)
throws IOException
key - The output parameter to hold the result.IOExceptionvoid getValue(Tuple row) throws IOException
row - The output parameter to hold the result. It must conform to the
schema that the scanner is aware of.IOExceptiongetSchema()boolean seekTo(org.apache.hadoop.io.BytesWritable key)
throws IOException
key - The input key.IOExceptionvoid seekToEnd()
throws IOException
IOExceptionString getProjection()
Schema getSchema()
Copyright © 2007-2012 The Apache Software Foundation