20 #include <bsoncxx/document/view.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <mongocxx/stdx.hpp>
25 #include <mongocxx/config/prelude.hpp>
28 MONGOCXX_INLINE_NAMESPACE_BEGIN
50 MONGOCXX_PRIVATE
virtual int type()
const = 0;
73 const stdx::optional<bsoncxx::string::view_or_value>& config_string()
const;
77 MONGOCXX_PRIVATE
int type()
const override;
78 stdx::optional<bsoncxx::string::view_or_value> _config_string;
92 index& background(
bool background);
99 const stdx::optional<bool>& background()
const;
110 index& unique(
bool unique);
117 const stdx::optional<bool>& unique()
const;
132 const stdx::optional<bsoncxx::string::view_or_value>& name()
const;
143 index& sparse(
bool sparse);
150 const stdx::optional<bool>& sparse()
const;
159 index& storage_options(std::unique_ptr<base_storage_options> storage_options);
164 index& storage_options(std::unique_ptr<wiredtiger_storage_options> storage_options);
175 index& expire_after(std::chrono::seconds seconds);
182 const stdx::optional<std::chrono::seconds>& expire_after()
const;
190 index& version(std::int32_t v);
197 const stdx::optional<std::int32_t>& version()
const;
213 const stdx::optional<bsoncxx::document::view>& weights()
const;
229 const stdx::optional<bsoncxx::string::view_or_value>& default_language()
const;
245 const stdx::optional<bsoncxx::string::view_or_value>& language_override()
const;
260 const stdx::optional<bsoncxx::document::view>& partial_filter_expression()
const;
268 index& twod_sphere_version(std::uint8_t twod_sphere_version);
275 const stdx::optional<std::uint8_t>& twod_sphere_version()
const;
283 index& twod_bits_precision(std::uint8_t twod_bits_precision);
290 const stdx::optional<std::uint8_t>& twod_bits_precision()
const;
298 index& twod_location_min(
double twod_location_min);
305 const stdx::optional<double>& twod_location_min()
const;
313 index& twod_location_max(
double twod_location_max);
320 const stdx::optional<double>& twod_location_max()
const;
332 index& haystack_bucket_size(
double haystack_bucket_size);
339 const stdx::optional<double>& haystack_bucket_size()
const;
344 stdx::optional<bool> _background;
345 stdx::optional<bool> _unique;
346 stdx::optional<bsoncxx::string::view_or_value> _name;
347 stdx::optional<bool> _sparse;
348 std::unique_ptr<base_storage_options> _storage_options;
349 stdx::optional<std::chrono::seconds> _expire_after;
350 stdx::optional<std::int32_t> _version;
351 stdx::optional<bsoncxx::document::view> _weights;
352 stdx::optional<bsoncxx::string::view_or_value> _default_language;
353 stdx::optional<bsoncxx::string::view_or_value> _language_override;
354 stdx::optional<bsoncxx::document::view> _partial_filter_expression;
355 stdx::optional<std::uint8_t> _twod_sphere_version;
356 stdx::optional<std::uint8_t> _twod_bits_precision;
357 stdx::optional<double> _twod_location_min;
358 stdx::optional<double> _twod_location_max;
359 stdx::optional<double> _haystack_bucket_size;
364 const std::unique_ptr<base_storage_options>& storage_options()
const;
368 MONGOCXX_INLINE_NAMESPACE_END
371 #include <mongocxx/config/postlude.hpp>
Definition: bulk_write.hpp:22
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
Base class representing the optional storage engine options for indexes.
Definition: index.hpp:44
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36
Class representing the optional arguments to a MongoDB create index operation.
Definition: index.hpp:39
Class representing the optional WiredTiger storage engine options for indexes.
Definition: index.hpp:56
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:74