Skip to content

Commit 277585c

Browse files
committed
Add Javadoc indicating which server version supports explain
JAVA-3909
1 parent 785d221 commit 277585c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

driver-legacy/src/main/com/mongodb/DBCollection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@ public Cursor aggregate(final List<? extends DBObject> pipeline, final Aggregati
12521252
* @return the command result. The explain output may change from release to release, so best to simply log this.
12531253
* @mongodb.driver.manual core/aggregation-pipeline/ Aggregation
12541254
* @mongodb.driver.manual reference/operator/meta/explain/ Explain query
1255+
* @mongodb.server.release 3.6
12551256
*/
12561257
public CommandResult explainAggregate(final List<? extends DBObject> pipeline, final AggregationOptions options) {
12571258
AggregateOperation<BsonDocument> operation = new AggregateOperation<BsonDocument>(getNamespace(), preparePipeline(pipeline),

driver-legacy/src/main/com/mongodb/DBCursor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public DBCursor maxTime(final long maxTime, final TimeUnit timeUnit) {
335335
* @return a {@code DBObject} containing the explain output for this DBCursor's query
336336
* @throws MongoException if the operation failed
337337
* @mongodb.driver.manual reference/command/explain Explain Output
338-
* @deprecated Replace with direct use of the explain command using the runCommand helper method
338+
* @mongodb.server.release 3.0
339339
*/
340340
@Deprecated
341341
public DBObject explain() {

0 commit comments

Comments
 (0)