summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_redact.h
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2019-06-19 11:11:18 +0100
committerArun Banala <arun.banala@mongodb.com>2019-06-20 10:42:12 +0100
commit2b34b45c83f03354cc88c295cf24aca7fb9418cc (patch)
tree1265a2b34e7859087819f98f2d50a5a74a1eb3c9 /src/mongo/db/pipeline/document_source_redact.h
parent06ad4fcd09f13abada62c6ca5911b1ab74733228 (diff)
downloadmongo-2b34b45c83f03354cc88c295cf24aca7fb9418cc.tar.gz
SERVER-40832 Add accessor to 'expression' in DocumentSourceRedact
Diffstat (limited to 'src/mongo/db/pipeline/document_source_redact.h')
-rw-r--r--src/mongo/db/pipeline/document_source_redact.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_redact.h b/src/mongo/db/pipeline/document_source_redact.h
index 1e64ba15787..1e9c9784e12 100644
--- a/src/mongo/db/pipeline/document_source_redact.h
+++ b/src/mongo/db/pipeline/document_source_redact.h
@@ -67,6 +67,10 @@ public:
Value serialize(boost::optional<ExplainOptions::Verbosity> explain = boost::none) const final;
+ boost::intrusive_ptr<Expression> getExpression() {
+ return _expression;
+ }
+
private:
DocumentSourceRedact(const boost::intrusive_ptr<ExpressionContext>& expCtx,
const boost::intrusive_ptr<Expression>& previsit);