Package org.apache.hadoop.hbase
Class ClientMetaTableAccessor.MetaTableScanResultConsumer
java.lang.Object
org.apache.hadoop.hbase.ClientMetaTableAccessor.MetaTableScanResultConsumer
- All Implemented Interfaces:
- AdvancedScanResultConsumer,- ScanResultConsumerBase
- Enclosing class:
- ClientMetaTableAccessor
private static final class ClientMetaTableAccessor.MetaTableScanResultConsumer
extends Object
implements AdvancedScanResultConsumer
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.AdvancedScanResultConsumerAdvancedScanResultConsumer.ScanController, AdvancedScanResultConsumer.ScanResumer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final CompletableFuture<Void>private final intprivate final ClientMetaTableAccessor.Visitor
- 
Constructor SummaryConstructorsConstructorDescriptionMetaTableScanResultConsumer(int rowUpperLimit, ClientMetaTableAccessor.Visitor visitor, CompletableFuture<Void> future) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidIndicate that the scan operation is completed normally.voidIndicate that we hit an unrecoverable error and the scan operation is terminated.voidonNext(Result[] results, AdvancedScanResultConsumer.ScanController controller) Indicate that we have receive some data.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.client.AdvancedScanResultConsumeronHeartbeatMethods inherited from interface org.apache.hadoop.hbase.client.ScanResultConsumerBaseonScanMetricsCreated
- 
Field Details- 
currentRowCount
- 
rowUpperLimit
- 
visitor
- 
future
 
- 
- 
Constructor Details- 
MetaTableScanResultConsumerMetaTableScanResultConsumer(int rowUpperLimit, ClientMetaTableAccessor.Visitor visitor, CompletableFuture<Void> future) 
 
- 
- 
Method Details- 
onErrorDescription copied from interface:ScanResultConsumerBaseIndicate that we hit an unrecoverable error and the scan operation is terminated.We will not call ScanResultConsumerBase.onComplete()after callingScanResultConsumerBase.onError(Throwable).- Specified by:
- onErrorin interface- ScanResultConsumerBase
 
- 
onCompleteDescription copied from interface:ScanResultConsumerBaseIndicate that the scan operation is completed normally.- Specified by:
- onCompletein interface- ScanResultConsumerBase
 
- 
onNextDescription copied from interface:AdvancedScanResultConsumerIndicate that we have receive some data.- Specified by:
- onNextin interface- AdvancedScanResultConsumer
- Parameters:
- results- the data fetched from HBase service.
- controller- used to suspend or terminate the scan. Notice that the- controllerinstance is only valid within scope of onNext method. You can only call its method in onNext, do NOT store it and call it later outside onNext.
 
 
-