MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
pipeline.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/pipeline-fwd.hpp> // IWYU pragma: export
18
19//
20
22
25
27
29
30#include <cstdint>
31
32namespace mongocxx {
33namespace v1 {
34
41class pipeline {
42 private:
43 class impl;
44 void* _impl;
45
46 public:
51
59
66 MONGOCXX_ABI_EXPORT_CDECL(pipeline&) operator=(pipeline&& other) noexcept;
67
72
76 MONGOCXX_ABI_EXPORT_CDECL(pipeline&) operator=(pipeline const& other);
77
85
90
95
100
105
110
115
120
125
130
135
140
145
150
155
160
169
174
179
184
189
194
199
204
209
214
219
228
233
238
243
248
253
254 class internal;
255};
256
257} // namespace v1
258} // namespace mongocxx
259
260#include <mongocxx/v1/detail/postlude.hpp>
261
pipeline & coll_stats(bsoncxx::v1::document::view v)
Append the "$collStats" stage.
pipeline & skip(std::int32_t v)
Append the "$skip" stage.
pipeline & append_stage(bsoncxx::v1::document::view v)
Append the given aggregation stage.
pipeline & index_stats()
Append the "$indexStats" stage.
pipeline & current_op(bsoncxx::v1::document::view v)
Append the "$currentOp" stage.
~pipeline()
Destroy this object.
pipeline & out(bsoncxx::v1::stdx::string_view v)
Append the "$out" stage.
pipeline(pipeline &&other) noexcept
Move constructor.
pipeline & graph_lookup(bsoncxx::v1::document::view v)
Append the "$graphLookup" stage.
pipeline & project(bsoncxx::v1::document::view v)
Append the "$project" stage.
pipeline & list_sessions(bsoncxx::v1::document::view v)
Append the "$listSessions" stage.
pipeline & limit(std::int32_t v)
Append the "$limit" stage.
pipeline & bucket_auto(bsoncxx::v1::document::view v)
Append the "$bucketAuto" stage.
pipeline & facet(bsoncxx::v1::document::view v)
Append the "$facet" stage.
pipeline & unwind(bsoncxx::v1::document::view v)
Append the "$unwind" stage.
pipeline & redact(bsoncxx::v1::document::view v)
Append the "$redact" stage.
pipeline & match(bsoncxx::v1::document::view v)
Append the "$match" stage.
pipeline & geo_near(bsoncxx::v1::document::view v)
Append the "$geoNear" stage.
pipeline & sample(std::int32_t v)
Append the "$sample" stage.
pipeline & list_local_sessions(bsoncxx::v1::document::view v)
Append the "$listLocalSessions" stage.
pipeline & count(bsoncxx::v1::stdx::string_view v)
Append the "$count" stage.
pipeline & merge(bsoncxx::v1::document::view v)
Append the "$merge" stage.
pipeline & bucket(bsoncxx::v1::document::view v)
Append the "$bucket" stage.
pipeline & append_stages(bsoncxx::v1::array::view v)
Append an array of aggregation stages.
pipeline & group(bsoncxx::v1::document::view v)
Append the "$group" stage.
pipeline & sort_by_count(bsoncxx::v1::document::view v)
Append the "$sortByCount" stage.
pipeline & add_fields(bsoncxx::v1::document::view v)
Append the "$addFields" stage.
pipeline & replace_root(bsoncxx::v1::document::view v)
Append the "$replaceRoot" stage.
pipeline & lookup(bsoncxx::v1::document::view v)
Append the "$lookup" stage.
pipeline & sort(bsoncxx::v1::document::view v)
Append the "$sort" stage.
bsoncxx::v1::array::view view_array() const
Return the current array of aggregation stages.
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::array::view.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::pipeline.
Provides std::string_view-related polyfills for library API usage.