MongoDB C++ Driver
mongocxx-3.6.2
|
21 #include <bsoncxx/array/view.hpp>
22 #include <bsoncxx/array/view_or_value.hpp>
23 #include <bsoncxx/document/view.hpp>
24 #include <bsoncxx/document/view_or_value.hpp>
26 #include <mongocxx/config/prelude.hpp>
29 MONGOCXX_INLINE_NAMESPACE_BEGIN
125 bsoncxx::document::view_or_value coll_stats_args =
bsoncxx::document::view{});
551 class MONGOCXX_PRIVATE impl;
552 std::unique_ptr<impl> _impl;
555 MONGOCXX_INLINE_NAMESPACE_END
558 #include <mongocxx/config/postlude.hpp>
pipeline & list_sessions(bsoncxx::document::view_or_value list_sessions_args)
Lists all sessions stored in the system.sessions collection in the config database.
pipeline & replace_root(bsoncxx::document::view_or_value replace_root_args)
Promotes a specified document to the top level and replaces all other fields.
pipeline & current_op(bsoncxx::document::view_or_value current_op_args)
Returns a stream of documents containing information on active and/or dormant operations as well as i...
bsoncxx::array::view view_array() const
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
pipeline & lookup(bsoncxx::document::view_or_value lookup_args)
Performs a left outer join to an unsharded collection in the same database to filter in documents fro...
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
pipeline & sort_by_count(std::string field_expression)
Groups incoming documents based on the value of a specified expression, then computes the count of do...
pipeline & index_stats()
Returns statistics regarding the use of each index for the collection.
pipeline & sample(std::int32_t size)
Randomly selects the specified number of documents that pass into the stage and passes the remaining ...
pipeline & sort(bsoncxx::document::view_or_value ordering)
Sorts all input documents and returns them to the pipeline in sorted order.
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
Class representing a client connection to MongoDB.
Definition: client.hpp:58
pipeline & unwind(bsoncxx::document::view_or_value unwind_args)
Deconstructs an array field from the input documents to output a document for each element.
pipeline & limit(std::int32_t limit)
Limits the number of documents passed to the next stage in the pipeline.
pipeline & skip(std::int32_t docs_to_skip)
Skips over the specified number of documents that pass into the stage and passes the remaining docume...
pipeline & list_local_sessions(bsoncxx::document::view_or_value list_local_sessions_args)
Lists the sessions cached in memory by the mongod or mongos instance.
pipeline & graph_lookup(bsoncxx::document::view_or_value graph_lookup_args)
Performs a recursive search on a collection.
pipeline & unwind(std::string field_name)
Deconstructs an array field from the input documents to output a document for each element.
pipeline & count(std::string field)
Returns a document containing a count of the number of documents input to the stage.
pipeline & match(bsoncxx::document::view_or_value filter)
Filters the documents.
pipeline()
Creates a new aggregation pipeline.
pipeline & append_stage(bsoncxx::document::view_or_value stage)
Appends a stage to this pipeline object.
pipeline & project(bsoncxx::document::view_or_value projection)
Projects a subset of the fields in the documents to the next stage of the pipeline.
pipeline & sort_by_count(bsoncxx::document::view_or_value field_expression)
Groups incoming documents based on the value of a specified expression, then computes the count of do...
Class representing a MongoDB aggregation pipeline.
Definition: pipeline.hpp:38
pipeline & facet(bsoncxx::document::view_or_value facet_args)
Processes multiple aggregation pipelines within a single stage on the same set of input documents.
Class representing a MongoDB database.
Definition: database.hpp:43
pipeline & append_stages(bsoncxx::array::view_or_value stages)
Appends stages to this pipeline object from the given bson array.
pipeline(pipeline &&) noexcept
Move constructs a pipeline.
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:81
pipeline & merge(bsoncxx::document::view_or_value merge_args)
Outputs the aggregation results to a collection.
pipeline & out(std::string collection_name)
Takes documents returned by the aggregation pipeline and writes them to a specified collection.
pipeline & redact(bsoncxx::document::view_or_value restrictions)
Restricts the contents of the documents based on information stored in the documents themselves.
pipeline & group(bsoncxx::document::view_or_value group_args)
Groups documents by some specified expression and outputs to the next stage a document for each disti...
pipeline & geo_near(bsoncxx::document::view_or_value geo_near_args)
Outputs documents in order of nearest to farthest from a specified point.