@InterfaceAudience.Public public interface AsyncTable extends AsyncTableBase
The implementation is required to be thread safe.
The implementation should make sure that user can do everything they want to the returned
CompletableFuture
without breaking anything. Usually the implementation will require user
to provide a ExecutorService
.
Modifier and Type | Method and Description |
---|---|
default ResultScanner |
getScanner(byte[] family)
Gets a scanner on the current table for the given family.
|
default ResultScanner |
getScanner(byte[] family,
byte[] qualifier)
Gets a scanner on the current table for the given family and qualifier.
|
ResultScanner |
getScanner(Scan scan)
Returns a scanner on the current table as specified by the
Scan object. |
void |
scan(Scan scan,
ScanResultConsumer consumer)
The scan API uses the observer pattern.
|
append, batch, batchAll, checkAndDelete, checkAndDelete, checkAndMutate, checkAndMutate, checkAndPut, checkAndPut, delete, delete, deleteAll, exists, exists, existsAll, get, get, getAll, getConfiguration, getName, getOperationTimeout, getReadRpcTimeout, getRpcTimeout, getScanTimeout, getWriteRpcTimeout, increment, incrementColumnValue, incrementColumnValue, mutateRow, put, put, putAll, scanAll
default ResultScanner getScanner(byte[] family)
family
- The column family to scan.default ResultScanner getScanner(byte[] family, byte[] qualifier)
family
- The column family to scan.qualifier
- The column qualifier to scan.ResultScanner getScanner(Scan scan)
Scan
object.scan
- A configured Scan
object.void scan(Scan scan, ScanResultConsumer consumer)
consumer
by calling ScanResultConsumer.onNext(Result)
.
ScanResultConsumer.onComplete()
means the scan is finished, and
ScanResultConsumer.onError(Throwable)
means we hit an unrecoverable error and the scan
is terminated.scan
- A configured Scan
object.consumer
- the consumer used to receive results.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.