public static class ProjectionOperation.ExpressionProjectionOperationBuilder extends ProjectionOperation.ProjectionOperationBuilder
ProjectionOperation.ProjectionOperationBuilder that is used for SpEL expression based projections.| Constructor and Description |
|---|
ExpressionProjectionOperationBuilder(String expression,
ProjectionOperation operation,
Object[] parameters)
Creates a new
ProjectionOperation.ExpressionProjectionOperationBuilder for the given value, ProjectionOperation and
parameters. |
| Modifier and Type | Method and Description |
|---|---|
ProjectionOperation |
as(String alias)
Allows to specify an alias for the previous projection operation.
|
ProjectionOperation.ProjectionOperationBuilder |
project(String operation,
Object... values)
Adds a generic projection for the current field.
|
divide, divide, extractDayOfMonth, extractDayOfWeek, extractDayOfYear, extractHour, extractMillisecond, extractMinute, extractMonth, extractSecond, extractWeek, extractYear, minus, minus, mod, mod, multiply, multiply, nested, plus, plus, previousOperation, toDBObjectpublic ExpressionProjectionOperationBuilder(String expression, ProjectionOperation operation, Object[] parameters)
ProjectionOperation.ExpressionProjectionOperationBuilder for the given value, ProjectionOperation and
parameters.expression - must not be null.operation - must not be null.parameters - public ProjectionOperation.ProjectionOperationBuilder project(String operation, Object... values)
ProjectionOperation.ProjectionOperationBuilderproject in class ProjectionOperation.ProjectionOperationBuilderoperation - the operation key, e.g. $add.values - the values to be set for the projection operation.public ProjectionOperation as(String alias)
ProjectionOperation.ProjectionOperationBuilderas in class ProjectionOperation.ProjectionOperationBuilderalias - will never be null or empty.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.