public interface ScanCallback
scan()
calls, so the caller can
be notified with scan results.Modifier and Type | Method and Description |
---|---|
void |
scanCallback(Key key,
Record record)
This method will be called for each record returned from a scan.
|
void scanCallback(Key key, Record record) throws AerospikeException
AerospikeException.ScanTerminated
exception if the scan should be aborted. If any exception is thrown, parallel scan threads
to other nodes will also be terminated and the exception will be propagated back through the
initiating scan call.
Multiple threads will likely be calling scanCallback in parallel. Therefore, your scanCallback implementation should be thread safe.
key
- unique record identifierrecord
- container for bins and record meta-dataAerospikeException
- if error occurs or scan should be terminated.Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.