@Deprecated public class AggregateToCollectionOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
| Constructor and Description |
|---|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline)
Deprecated.
|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline,
ReadConcern readConcern)
Deprecated.
Construct a new instance.
|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline,
ReadConcern readConcern,
WriteConcern writeConcern)
Deprecated.
Construct a new instance.
|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline,
ReadConcern readConcern,
WriteConcern writeConcern,
AggregationLevel aggregationLevel)
Deprecated.
Construct a new instance.
|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline,
WriteConcern writeConcern)
Deprecated.
Construct a new instance.
|
AggregateToCollectionOperation(MongoNamespace namespace,
java.util.List<BsonDocument> pipeline,
WriteConcern writeConcern,
AggregationLevel aggregationLevel)
Deprecated.
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateToCollectionOperation |
allowDiskUse(java.lang.Boolean allowDiskUse)
Deprecated.
Enables writing to temporary files.
|
ReadOperation<BsonDocument> |
asExplainableOperation(ExplainVerbosity explainVerbosity)
Deprecated.
Gets an operation whose execution explains this operation.
|
AggregateToCollectionOperation |
bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Deprecated.
Sets the bypass document level validation flag.
|
AggregateToCollectionOperation |
collation(Collation collation)
Deprecated.
Sets the collation options
|
AggregateToCollectionOperation |
comment(java.lang.String comment)
Deprecated.
Sets the comment to the aggregation.
|
java.lang.Void |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
Deprecated.
General execute which can return anything of type T
|
java.lang.Boolean |
getAllowDiskUse()
Deprecated.
Whether writing to temporary files is enabled.
|
java.lang.Boolean |
getBypassDocumentValidation()
Deprecated.
Gets the bypass document level validation flag
|
Collation |
getCollation()
Deprecated.
Returns the collation options
|
java.lang.String |
getComment()
Deprecated.
Returns the comment to send with the aggregate.
|
BsonDocument |
getHint()
Deprecated.
Returns the hint for which index to use.
|
long |
getMaxTime(java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Gets the maximum execution time on the server for this operation.
|
java.util.List<BsonDocument> |
getPipeline()
Deprecated.
Gets the aggregation pipeline.
|
ReadConcern |
getReadConcern()
Deprecated.
Gets the read concern.
|
WriteConcern |
getWriteConcern()
Deprecated.
Gets the write concern.
|
AggregateToCollectionOperation |
hint(BsonDocument hint)
Deprecated.
Sets the hint for which index to use.
|
AggregateToCollectionOperation |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Sets the maximum execution time on the server for this operation.
|
@Deprecated public AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline)
AggregateToCollectionOperation(MongoNamespace, List, WriteConcern)namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.public AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline, WriteConcern writeConcern)
namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.writeConcern - the write concern to applypublic AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline, ReadConcern readConcern)
namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.readConcern - the read concern to applypublic AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline, ReadConcern readConcern, WriteConcern writeConcern)
namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.writeConcern - the write concern to applyreadConcern - the read concern to applypublic AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline, WriteConcern writeConcern, AggregationLevel aggregationLevel)
namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.writeConcern - the write concern to applyaggregationLevel - the aggregation levelpublic AggregateToCollectionOperation(MongoNamespace namespace, java.util.List<BsonDocument> pipeline, ReadConcern readConcern, WriteConcern writeConcern, AggregationLevel aggregationLevel)
namespace - the database and collection namespace for the operation.pipeline - the aggregation pipeline.readConcern - the read concern to applywriteConcern - the write concern to applyaggregationLevel - the aggregation levelpublic java.util.List<BsonDocument> getPipeline()
public ReadConcern getReadConcern()
public WriteConcern getWriteConcern()
public java.lang.Boolean getAllowDiskUse()
public AggregateToCollectionOperation allowDiskUse(java.lang.Boolean allowDiskUse)
allowDiskUse - true if writing to temporary files is enabledpublic long getMaxTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit - the time unit to return the result inpublic AggregateToCollectionOperation maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime - the max timetimeUnit - the time unit, which may not be nullpublic java.lang.Boolean getBypassDocumentValidation()
public AggregateToCollectionOperation bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Note: This only applies when an $out or $merge stage is specified
.bypassDocumentValidation - If true, allows the write to opt-out of document level validation.public Collation getCollation()
public AggregateToCollectionOperation collation(Collation collation)
A null value represents the server default.
collation - the collation options to usepublic java.lang.String getComment()
public AggregateToCollectionOperation comment(java.lang.String comment)
comment - the commentpublic BsonDocument getHint()
public AggregateToCollectionOperation hint(BsonDocument hint)
hint - the hintpublic ReadOperation<BsonDocument> asExplainableOperation(ExplainVerbosity explainVerbosity)
explainVerbosity - the explain verbositypublic java.lang.Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<java.lang.Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<java.lang.Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executedCopyright © 2010 - 2023 Adobe. All Rights Reserved