Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
org.springframework.data.mongodb.util.aggregation |
Modifier and Type | Class and Description |
---|---|
static class |
ArrayOperators.Reduce.Variable |
static class |
SetWindowFieldsOperation.ComputedField
A
Field that the result of a computation done via an AggregationExpression . |
Modifier and Type | Method and Description |
---|---|
static Field |
Fields.field(String name)
Creates a
Field with the given name. |
static Field |
Fields.field(String name,
String target)
|
protected Field |
BucketOperationSupport.OperationOutput.getField()
Returns the field that holds the
ProjectionOperationBuilder.OperationProjection . |
Field |
Fields.getField(String name) |
Field |
ArrayOperators.Reduce.Variable.referringTo(String property)
Create a
Field reference to a given property prefixed with the ArrayOperators.Reduce.Variable identifier. |
Modifier and Type | Method and Description |
---|---|
List<Field> |
Fields.asList() |
Iterator<Field> |
Fields.iterator() |
Modifier and Type | Method and Description |
---|---|
UnsetOperation |
UnsetOperation.and(Field... fields)
Also unset the given fields.
|
Fields |
Fields.and(Field field) |
ProjectionOperation.ArrayProjectionOperationBuilder |
ProjectionOperation.ArrayProjectionOperationBuilder.and(Field field)
Creates a new
ProjectionOperation.ArrayProjectionOperationBuilder with the current Projection s and the given one. |
static ArrayOperators.Filter.AsBuilder |
ArrayOperators.Filter.filter(Field field)
Set the field to apply the
$filter to. |
ArrayOperators.Filter.AsBuilder |
ArrayOperators.Filter.InputBuilder.filter(Field field)
Set the field holding an array to apply the
$filter to. |
static Fields |
Fields.from(Field... fields)
|
ExposedFields.FieldReference |
AggregationOperationContext.getReference(Field field)
Returns a
ExposedFields.FieldReference for the given field. |
ExposedFields.FieldReference |
PrefixingDelegatingAggregationOperationContext.getReference(Field field) |
ExposedFields.FieldReference |
TypeBasedAggregationOperationContext.getReference(Field field) |
protected ExposedFields.FieldReference |
RelaxedTypeBasedAggregationOperationContext.getReferenceFor(Field field) |
protected ExposedFields.FieldReference |
TypeBasedAggregationOperationContext.getReferenceFor(Field field) |
StringOperators.IndexOfBytes |
StringOperators.StringOperatorFactory.indexOf(Field fieldReference)
Creates new
AggregationExpression that takes the associated string representation and searches a string
for an occurrence of a substring contained in the given field reference and returns the UTF-8 byte
index (zero-based) of the first occurrence. |
StringOperators.IndexOfBytes |
StringOperators.IndexOfBytes.SubstringBuilder.indexOf(Field fieldReference)
Creates a new
StringOperators.IndexOfBytes given Field that resolves to the substring. |
StringOperators.IndexOfCP |
StringOperators.IndexOfCP.SubstringBuilder.indexOf(Field fieldReference)
Creates a new
StringOperators.IndexOfCP given Field that resolves to the substring. |
StringOperators.IndexOfCP |
StringOperators.StringOperatorFactory.indexOfCP(Field fieldReference)
Creates new
AggregationExpression that takes the associated string representation and searches a string
for an occurrence of a substring contained in the given field reference and returns the UTF-8 code
point index (zero-based) of the first occurrence. |
static LookupOperation |
Aggregation.lookup(Field from,
Field localField,
Field foreignField,
Field as)
Creates a new
LookupOperation for the given Fields . |
StringOperators.Split |
StringOperators.StringOperatorFactory.split(Field fieldReference)
Creates new
AggregationExpression that divides the associated string representation into an array of
substrings based on the delimiter resulting from the referenced field.. |
StringOperators.Split |
StringOperators.Split.split(Field fieldReference)
Use value of referenced field as delimiter.
|
Constructor and Description |
---|
BucketAutoOperation(Field groupByField,
int buckets)
Creates a new
BucketAutoOperation given a group-by field . |
BucketOperation(Field groupByField)
Creates a new
BucketOperation given a group-by field . |
BucketOperationSupport(Field groupByField)
Creates a new
BucketOperationSupport given a group-by field . |
LookupOperation(Field from,
Field localField,
Field foreignField,
Field as)
Creates a new
LookupOperation for the given Field s. |
Output(Field field)
Creates new
Projection for the given Field . |
ReplaceRootOperation(Field field)
Creates a new
ReplaceRootOperation given the Field field name. |
SortByCountOperation(Field groupByField)
Creates a new
SortByCountOperation given a group-by field . |
UnwindOperation(Field field)
Creates a new
UnwindOperation for the given Field . |
UnwindOperation(Field field,
boolean preserveNullAndEmptyArrays)
Creates a new
UnwindOperation using Mongo 3.2 syntax. |
UnwindOperation(Field field,
Field arrayIndex,
boolean preserveNullAndEmptyArrays)
Creates a new
UnwindOperation using Mongo 3.2 syntax. |
Modifier and Type | Method and Description |
---|---|
ExposedFields.FieldReference |
TestAggregationContext.getReference(Field field) |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.