scan Documents
Depending on the scan type, returns from this collection:
Every document whose ID starts with a ScanType.prefix.
Every document whose ID is within a lexicographic ScanType.range.
A random ScanType.sample of documents.
Parameters
Specifies which documents to include in the scan results. Defaults to every document in the collection.
By default, the scan runs immediately, without waiting for previous KV mutations to be indexed. If the scan results must include certain mutations, pass KvScanConsistency.consistentWith.
Tunes how many documents the server may send in a single round trip. The value is per partition (vbucket), so multiply by 1024 when calculating memory requirements. Might affect performance, but does not change the results of this method.
Tunes how many bytes the server may send in a single round trip. The value is per partition (vbucket), so multiply by 1024 when calculating memory requirements. Might affect performance, but does not change the results of this method.