72 mutation_state_ = state.tokens();
151 batch_byte_limit_, batch_item_limit_, concurrency_ };
155 bool ids_only_{
false };
156 std::vector<mutation_token> mutation_state_{};
157 std::optional<std::uint32_t> batch_byte_limit_{};
158 std::optional<std::uint32_t> batch_item_limit_{};
159 std::optional<std::uint16_t> concurrency_{};
Common options that used by most operations.
Definition common_options.hxx:37
auto self() -> scan_options &
Definition common_options.hxx:102
auto build_common_options() const -> built
Definition common_options.hxx:89
Aggregation of one or more mutation_tokens for specifying consistency requirements of N1QL or FTS que...
Definition mutation_state.hxx:35
Definition scan_result.hxx:44
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, scan_result)> scan_handler
The signature for the handler of the collection::scan() operation.
Definition scan_options.hxx:168
Immutable value object representing consistent options.
Definition scan_options.hxx:129
std::vector< mutation_token > mutation_state
Definition scan_options.hxx:131
std::optional< std::uint32_t > batch_byte_limit
Definition scan_options.hxx:132
std::optional< std::uint32_t > batch_item_limit
Definition scan_options.hxx:133
bool ids_only
Definition scan_options.hxx:130
std::optional< std::uint16_t > concurrency
Definition scan_options.hxx:134
Options for collection::scan().
Definition scan_options.hxx:40
auto ids_only(bool ids_only) -> scan_options &
Specifies whether only document IDs should be included in the results.
Definition scan_options.hxx:51
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 batc...
Definition scan_options.hxx:102
auto build() const -> built
Validates options and returns them as an immutable value.
Definition scan_options.hxx:148
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.
Definition scan_options.hxx:86
auto concurrency(std::uint16_t concurrency) -> scan_options &
Specifies the maximum number of partitions that can be scanned concurrently.
Definition scan_options.hxx:117
auto consistent_with(const mutation_state &state) -> scan_options &
Sets the mutation_tokens this scan should be consistent with.
Definition scan_options.hxx:70