org.apache.hadoop.hbase.client
Class MetaScanner.BlockingMetaScannerVisitor
java.lang.Object
org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitorBase
org.apache.hadoop.hbase.client.MetaScanner.BlockingMetaScannerVisitor
- All Implemented Interfaces:
- Closeable, MetaScanner.MetaScannerVisitor
- Direct Known Subclasses:
- MetaScanner.TableMetaScannerVisitor
- Enclosing class:
- MetaScanner
public abstract static class MetaScanner.BlockingMetaScannerVisitor
- extends MetaScanner.MetaScannerVisitorBase
A MetaScannerVisitor that provides a consistent view of the table's
META entries during concurrent splits (see HBASE-5986 for details). This class
does not guarantee ordered traversal of meta entries, and can block until the
META entries for daughters are available during splits.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaScanner.BlockingMetaScannerVisitor
public MetaScanner.BlockingMetaScannerVisitor(org.apache.hadoop.conf.Configuration conf)
processRowInternal
public abstract boolean processRowInternal(Result rowResult)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class MetaScanner.MetaScannerVisitorBase
- Throws:
IOException
getMetaTable
public HTable getMetaTable()
throws IOException
- Throws:
IOException
processRow
public boolean processRow(Result rowResult)
throws IOException
- Description copied from interface:
MetaScanner.MetaScannerVisitor
- Visitor method that accepts a RowResult and the meta region location.
Implementations can return false to stop the region's loop if it becomes
unnecessary for some reason.
- Parameters:
rowResult
- result
- Returns:
- A boolean to know if it should continue to loop in the region
- Throws:
IOException
- e
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.