|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
#include <couchbase/scan_options.hxx>

Classes | |
| struct | built |
| Immutable value object representing consistent options. More... | |
Public Member Functions | |
| auto | ids_only (bool ids_only) -> scan_options & |
| Specifies whether only document IDs should be included in the results. | |
| auto | consistent_with (const mutation_state &state) -> scan_options & |
Sets the mutation_tokens this scan should be consistent with. | |
| auto | batch_byte_limit (std::uint32_t batch_byte_limit) -> scan_options & |
| Allows to limit the maximum amount of bytes that are sent from the server in each partition batch. | |
| auto | batch_item_limit (std::uint32_t batch_item_limit) -> scan_options & |
| Allows to limit the maximum number of scan items that are sent from the server in each partition batch. | |
| auto | concurrency (std::uint16_t concurrency) -> scan_options & |
| Specifies the maximum number of partitions that can be scanned concurrently. | |
| auto | build () const -> built |
| Validates options and returns them as an immutable value. | |
| Public Member Functions inherited from common_options< scan_options > | |
| auto | timeout (const std::chrono::milliseconds timeout) -> scan_options & |
| Specifies a custom per-operation timeout. | |
| auto | retry_strategy (const std::shared_ptr< retry_strategy > strategy) -> scan_options & |
Specifies a custom couchbase::retry_strategy for this operation. | |
| auto | parent_span (std::shared_ptr< tracing::request_span > span) -> scan_options & |
Additional Inherited Members | |
| Protected Member Functions inherited from common_options< scan_options > | |
| auto | build_common_options () const -> built |
| auto | self () -> scan_options & |
| Allows to return the right options builder instance for child implementations. | |
Options for scan().
|
inline |
Allows to limit the maximum amount of bytes that are sent from the server in each partition batch.
Defaults to 15,000.
| batch_byte_limit | the byte limit |
|
inline |
Allows to limit the maximum number of scan items that are sent from the server in each partition batch.
Defaults to 50.
| batch_item_limit | the item limit |
|
inlinenodiscard |
Validates options and returns them as an immutable value.
| std::system_error | with code invalid_argument if the options are not valid. |
|
inline |
Specifies the maximum number of partitions that can be scanned concurrently.
Defaults to 1.
| concurrency | the maximum number of concurrent partition scans |
|
inline |
Sets the mutation_tokens this scan should be consistent with.
These mutation tokens are returned from mutations (i.e. as part of a mutation_result) and if you want your scan to include those you need to pass the mutation tokens into a mutation_state.
| state | the mutation state containing the mutation tokens. |
|
inline |
Specifies whether only document IDs should be included in the results.
Defaults to false.
| ids_only | if set to true the content will not be included in the results |