Package org.apache.hadoop.hbase
Class ClientMetaTableAccessor.CollectingVisitor<T>
java.lang.Object
org.apache.hadoop.hbase.ClientMetaTableAccessor.CollectingVisitor<T>
- All Implemented Interfaces:
ClientMetaTableAccessor.Visitor
- Direct Known Subclasses:
ClientMetaTableAccessor.CollectAllVisitor
,ClientMetaTableAccessor.CollectRegionLocationsVisitor
- Enclosing class:
- ClientMetaTableAccessor
private abstract static class ClientMetaTableAccessor.CollectingVisitor<T>
extends Object
implements ClientMetaTableAccessor.Visitor
A
ClientMetaTableAccessor.Visitor
that collects content out of passed Result
.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
results
-
-
Constructor Details
-
CollectingVisitor
private CollectingVisitor()
-
-
Method Details
-
visit
Description copied from interface:ClientMetaTableAccessor.Visitor
Visit the catalog table row.- Specified by:
visit
in interfaceClientMetaTableAccessor.Visitor
- Parameters:
r
- A row from catalog table- Returns:
- True if we are to proceed scanning the table, else false if we are to stop now.
- Throws:
IOException
-
add
-
getResults
List<T> getResults()Returns Collected results; wait till visits complete to collect all possible results
-