public interface TableScanner
extends java.io.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.
|
java.lang.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 java.io.IOException
java.io.IOExceptionboolean advance()
throws java.io.IOException
java.io.IOExceptionvoid getKey(org.apache.hadoop.io.BytesWritable key)
throws java.io.IOException
key - The output parameter to hold the result.java.io.IOExceptionvoid getValue(Tuple row) throws java.io.IOException
row - The output parameter to hold the result. It must conform to the
schema that the scanner is aware of.java.io.IOExceptiongetSchema()boolean seekTo(org.apache.hadoop.io.BytesWritable key)
throws java.io.IOException
key - The input key.java.io.IOExceptionvoid seekToEnd()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getProjection()
Schema getSchema()
Copyright © 2007-2012 The Apache Software Foundation