Package org.apache.hadoop.hbase
Class AsyncMetaTableAccessor.MetaTableScanResultConsumer
java.lang.Object
org.apache.hadoop.hbase.AsyncMetaTableAccessor.MetaTableScanResultConsumer
- All Implemented Interfaces:
AdvancedScanResultConsumer,ScanResultConsumerBase
- Enclosing class:
- AsyncMetaTableAccessor
private static final class AsyncMetaTableAccessor.MetaTableScanResultConsumer
extends Object
implements AdvancedScanResultConsumer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.AdvancedScanResultConsumer
AdvancedScanResultConsumer.ScanController, AdvancedScanResultConsumer.ScanResumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final CompletableFuture<Void>private final intprivate final MetaTableAccessor.Visitor -
Constructor Summary
ConstructorsConstructorDescriptionMetaTableScanResultConsumer(int rowUpperLimit, MetaTableAccessor.Visitor visitor, CompletableFuture<Void> future) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.client.AdvancedScanResultConsumer
onHeartbeatMethods inherited from interface org.apache.hadoop.hbase.client.ScanResultConsumerBase
onScanMetricsCreated
-
Field Details
-
currentRowCount
-
rowUpperLimit
-
visitor
-
future
-
-
Constructor Details
-
MetaTableScanResultConsumer
MetaTableScanResultConsumer(int rowUpperLimit, MetaTableAccessor.Visitor visitor, CompletableFuture<Void> future)
-
-
Method Details
-
onError
Description 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 interfaceScanResultConsumerBase
-
onComplete
Description copied from interface:ScanResultConsumerBaseIndicate that the scan operation is completed normally.- Specified by:
onCompletein interfaceScanResultConsumerBase
-
onNext
Description copied from interface:AdvancedScanResultConsumerIndicate that we have receive some data.- Specified by:
onNextin interfaceAdvancedScanResultConsumer- Parameters:
results- the data fetched from HBase service.controller- used to suspend or terminate the scan. Notice that thecontrollerinstance 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.
-