Class BucketOperationSupport.Outputs
java.lang.Object
org.springframework.data.mongodb.core.aggregation.BucketOperationSupport.Outputs
- All Implemented Interfaces:
AggregationExpression
,MongoExpression
- Enclosing class:
- BucketOperationSupport<T extends BucketOperationSupport<T,
B>, B extends BucketOperationSupport.OutputBuilder<B, T>>
protected static class BucketOperationSupport.Outputs
extends Object
implements AggregationExpression
Encapsulates
BucketOperationSupport.Output
s.- Author:
- Mark Paluch
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BucketOperationSupport.Outputs
and
(BucketOperationSupport.Output output) Create a newBucketOperationSupport.Outputs
that contains the newBucketOperationSupport.Output
.protected ExposedFields
protected boolean
isEmpty()
org.bson.Document
toDocument
(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationExpression
toDocument
-
Field Details
-
EMPTY
-
-
Method Details
-
asExposedFields
- Returns:
- the
ExposedFields
derived fromBucketOperationSupport.Output
.
-
and
Create a newBucketOperationSupport.Outputs
that contains the newBucketOperationSupport.Output
.- Parameters:
output
- must not be null.- Returns:
- the new
BucketOperationSupport.Outputs
that contains the newBucketOperationSupport.Output
-
isEmpty
protected boolean isEmpty()- Returns:
- true if
BucketOperationSupport.Outputs
contains noBucketOperationSupport.Output
.
-
toDocument
Description copied from interface:AggregationExpression
- Specified by:
toDocument
in interfaceAggregationExpression
- Parameters:
context
- must not be null.- Returns:
- the MongoDB native (
Document
) form of the expression.
-