summaryrefslogtreecommitdiff
path: root/src/mongo/db/views/resolved_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/views/resolved_view.h')
-rw-r--r--src/mongo/db/views/resolved_view.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/mongo/db/views/resolved_view.h b/src/mongo/db/views/resolved_view.h
index a68ed1d5b1e..c0b3ae3d503 100644
--- a/src/mongo/db/views/resolved_view.h
+++ b/src/mongo/db/views/resolved_view.h
@@ -48,19 +48,15 @@ public:
std::vector<BSONObj> pipeline,
BSONObj defaultCollation,
boost::optional<TimeseriesOptions> timeseriesOptions = boost::none,
- boost::optional<bool> timeseriesMayContainMixedData = boost::none,
- boost::optional<bool> timeseriesUsesExtendedRange = boost::none)
+ boost::optional<bool> timeseriesMayContainMixedData = boost::none)
: _namespace(collectionNs),
_pipeline(std::move(pipeline)),
_defaultCollation(std::move(defaultCollation)),
_timeseriesOptions(timeseriesOptions),
- _timeseriesMayContainMixedData(timeseriesMayContainMixedData),
- _timeseriesUsesExtendedRange(timeseriesUsesExtendedRange) {}
+ _timeseriesMayContainMixedData(timeseriesMayContainMixedData) {}
static ResolvedView fromBSON(const BSONObj& commandResponseObj);
- void handleTimeseriesRewrites(std::vector<BSONObj>* resolvedPipeline) const;
-
/**
* Convert an aggregation command on a view to the equivalent command against the view's
* underlying collection.
@@ -80,16 +76,10 @@ public:
return _defaultCollation;
}
- bool timeseries() const {
- return _timeseriesOptions.has_value();
- }
-
// ErrorExtraInfo API
static constexpr auto code = ErrorCodes::CommandOnShardedViewNotSupportedOnMongod;
static constexpr StringData kTimeseriesMayContainMixedData = "timeseriesMayContainMixedData"_sd;
static constexpr StringData kTimeseriesOptions = "timeseriesOptions"_sd;
- static constexpr StringData kTimeseriesUsesExtendedRange = "timeseriesUsesExtendedRange"_sd;
-
void serialize(BSONObjBuilder* bob) const final;
static std::shared_ptr<const ErrorExtraInfo> parse(const BSONObj&);
@@ -97,17 +87,16 @@ private:
NamespaceString _namespace;
std::vector<BSONObj> _pipeline;
- // The default collation associated with this view. An empty object means that the default
- // is the simple collation.
+ // The default collation associated with this view. An empty object means that the default is
+ // the simple collation.
//
// Currently all operations which run over a view must use the default collation. This means
- // that operations on the view which do not specify a collation inherit the default.
- // Operations on the view which specify any other collation fail with a user error.
+ // that operations on the view which do not specify a collation inherit the default. Operations
+ // on the view which specify any other collation fail with a user error.
BSONObj _defaultCollation;
boost::optional<TimeseriesOptions> _timeseriesOptions;
boost::optional<bool> _timeseriesMayContainMixedData;
- boost::optional<bool> _timeseriesUsesExtendedRange;
};
} // namespace mongo