MongoDB C++ Driver 4.2.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
43class pipeline {
44 private:
45 class impl;
46 void* _impl;
47
48 public:
53
61
68 MONGOCXX_ABI_EXPORT_CDECL(pipeline&) operator=(pipeline&& other) noexcept;
69
74
78 MONGOCXX_ABI_EXPORT_CDECL(pipeline&) operator=(pipeline const& other);
79
87
92
97
102
107
112
117
122
127
132
137
142
147
152
157
162
171
176
181
186
191
196
201
206
211
216
221
230
235
240
245
250
255
256 class internal;
257};
258
259} // namespace v1
260} // namespace mongocxx
261
262#include <mongocxx/v1/detail/postlude.hpp>
263
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.