MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
aggregate_options.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <mongocxx/v1/aggregate_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
27
32
34
36
37#include <chrono>
38#include <cstdint>
39
40namespace mongocxx {
41namespace v1 {
42
63 private:
64 class impl;
65 void* _impl;
66
67 public:
74
82
90
95
100
108
113
117 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) allow_disk_use() const;
118
123
127 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) batch_size() const;
128
133
137 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
138
143
147 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) let() const;
148
153
157 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::chrono::milliseconds>) max_time() const;
158
163
168
173
178
183
187 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
188
193
198
203
208
213
217 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>) comment() const;
218
219 class internal;
220};
221
222} // namespace v1
223} // namespace mongocxx
224
225#include <mongocxx/v1/detail/postlude.hpp>
226
Declares mongocxx::v1::aggregate_options.
aggregate_options & hint(v1::hint v)
Set the "hint" field.
aggregate_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
aggregate_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
aggregate_options & read_preference(v1::read_preference v)
Set the "readPreference" field.
aggregate_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
~aggregate_options()
Destroy this object.
aggregate_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
aggregate_options & allow_disk_use(bool v)
Set the "allowDiskUse" field.
aggregate_options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
aggregate_options & batch_size(std::int32_t v)
Set the "batchSize" field.
aggregate_options & let(bsoncxx::v1::document::value v)
Set the "let" field.
aggregate_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
aggregate_options(aggregate_options &&other) noexcept
Move constructor.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Declares mongocxx::v1::read_concern.
Declares mongocxx::v1::read_preference.
Provides std::optional-related polyfills for library API usage.
Declares bsoncxx::v1::types::value.
Declares non-owning, read-only entities representing a BSON type value.
Declares mongocxx::v1::write_concern.