|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.client.MetaScanner
public class MetaScanner
Scanner class that contains the .META. table scanning logic
and uses a Retryable scanner. Provided visitors will be called
for each row.
Although public visibility, this is not a public-facing API and may evolve in
minor releases.
| Nested Class Summary | |
|---|---|
static interface |
MetaScanner.MetaScannerVisitor
Visitor class called to process each row of the .META. |
| Constructor Summary | |
|---|---|
MetaScanner()
|
|
| Method Summary | |
|---|---|
static void |
metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor)
Scans the meta table and calls a visitor on each RowResult and uses a empty start row value as table name. |
static void |
metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor,
byte[] tableName)
Scans the meta table and calls a visitor on each RowResult. |
static void |
metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor,
byte[] tableName,
byte[] row,
int rowLimit)
Scans the meta table and calls a visitor on each RowResult. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaScanner()
| Method Detail |
|---|
public static void metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor)
throws IOException
configuration - confvisitor - A custom visitor
IOException - e
public static void metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor,
byte[] tableName)
throws IOException
configuration - configvisitor - visitor objecttableName - table name
IOException - e
public static void metaScan(org.apache.hadoop.conf.Configuration configuration,
MetaScanner.MetaScannerVisitor visitor,
byte[] tableName,
byte[] row,
int rowLimit)
throws IOException
rowLimit of rows.
configuration - HBase configuration.visitor - Visitor object.tableName - User table name.row - Name of the row at the user table. The scan will start from
the region row where the row resides.rowLimit - Max of processed rows. If it is less than 0, it
will be set to default value Integer.MAX_VALUE.
IOException - e
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||