Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Method and Description |
---|---|
ProjectionOperation |
ProjectionOperation.andExclude(String... fieldNames)
Excludes the given fields from the projection.
|
ProjectionOperation |
ProjectionOperation.andInclude(Fields fields)
Includes the given fields into the projection.
|
ProjectionOperation |
ProjectionOperation.andInclude(String... fieldNames)
Includes the given fields into the projection.
|
ProjectionOperation |
ProjectionOperation.ProjectionOperationBuilder.applyCondition(ConditionalOperators.Cond cond) |
ProjectionOperation |
ProjectionOperation.ProjectionOperationBuilder.applyCondition(ConditionalOperators.IfNull ifNull) |
ProjectionOperation |
ProjectionOperation.ExpressionProjectionOperationBuilder.as(String alias) |
ProjectionOperation |
ProjectionOperation.ProjectionOperationBuilder.as(String alias)
Allows to specify an alias for the previous projection operation.
|
ProjectionOperation |
ProjectionOperation.ArrayProjectionOperationBuilder.as(String name)
Create the
ProjectionOperation for the array property with given name. |
ProjectionOperation |
ProjectionOperation.asArray(String name)
Includes the current
ProjectionOperation as an array with given name. |
ProjectionOperation |
ProjectionOperation.ProjectionOperationBuilder.nested(Fields fields)
Defines a nested field binding for the current field.
|
ProjectionOperation |
ProjectionOperation.ProjectionOperationBuilder.previousOperation()
Projects the result of the previous operation onto the current field.
|
static ProjectionOperation |
Aggregation.project(Class<?> type)
Creates a new
ProjectionOperation including all top level fields of the given given Class . |
static ProjectionOperation |
Aggregation.project(Fields fields)
Creates a new
ProjectionOperation including the given Fields . |
static ProjectionOperation |
Aggregation.project(String... fields)
Creates a new
ProjectionOperation including the given fields. |
Constructor and Description |
---|
ArrayProjectionOperationBuilder(ProjectionOperation target) |
ExpressionProjectionOperationBuilder(String expression,
ProjectionOperation operation,
Object[] parameters)
Creates a new
ProjectionOperation.ExpressionProjectionOperationBuilder for the given value, ProjectionOperation and
parameters. |
ProjectionOperationBuilder(Object value,
ProjectionOperation operation,
org.springframework.data.mongodb.core.aggregation.ProjectionOperation.ProjectionOperationBuilder.OperationProjection previousProjection)
Creates a new
ProjectionOperation.ProjectionOperationBuilder for the field with the given value on top of the given
ProjectionOperation . |
ProjectionOperationBuilder(String name,
ProjectionOperation operation,
org.springframework.data.mongodb.core.aggregation.ProjectionOperation.ProjectionOperationBuilder.OperationProjection previousProjection)
Creates a new
ProjectionOperation.ProjectionOperationBuilder for the field with the given name on top of the given
ProjectionOperation . |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.