org.apache.hadoop.hbase.client
Class MetaScanner.DefaultMetaScannerVisitor

java.lang.Object
  extended by org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitorBase
      extended by org.apache.hadoop.hbase.client.MetaScanner.DefaultMetaScannerVisitor
All Implemented Interfaces:
Closeable, MetaScanner.MetaScannerVisitor
Direct Known Subclasses:
MetaScanner.TableMetaScannerVisitor
Enclosing class:
MetaScanner

public abstract static class MetaScanner.DefaultMetaScannerVisitor
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.


Field Summary
protected  org.apache.hadoop.conf.Configuration conf
           
 
Constructor Summary
MetaScanner.DefaultMetaScannerVisitor(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 boolean processRow(Result rowResult)
          Visitor method that accepts a RowResult and the meta region location.
abstract  boolean processRowInternal(Result rowResult)
           
 
Methods inherited from class org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitorBase
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected org.apache.hadoop.conf.Configuration conf
Constructor Detail

MetaScanner.DefaultMetaScannerVisitor

public MetaScanner.DefaultMetaScannerVisitor(org.apache.hadoop.conf.Configuration conf)
Method Detail

processRowInternal

public abstract boolean processRowInternal(Result rowResult)
                                    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 © 2013 The Apache Software Foundation. All Rights Reserved.