public class OutOperation extends Object implements AggregationOperation
$out-operation.
We recommend to use the static factory method Aggregation.out(String) instead of creating instances of this
class directly.
| Constructor and Description |
|---|
OutOperation(String outCollectionName) |
| Modifier and Type | Method and Description |
|---|---|
org.bson.Document |
toDocument(AggregationOperationContext context)
|
public OutOperation(String outCollectionName)
outCollectionName - Collection name to export the results. Must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationOperationtoDocument in interface AggregationOperationCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.