Uses of Interface
org.springframework.data.mongodb.core.aggregation.Field
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of Field in org.springframework.data.mongodb.core.aggregation
Modifier and TypeInterfaceDescriptioninterface
A special field that points to a variable$$
expression.Modifier and TypeClassDescriptionstatic enum
static class
AField
that the result of a computation done via anAggregationExpression
.enum
Describes the system variables available in MongoDB aggregation framework pipeline expressions.Modifier and TypeMethodDescriptionstatic Field
Creates aField
with the given name.static Field
protected Field
BucketOperationSupport.OperationOutput.getField()
Returns the field that holds theProjectionOperation.ProjectionOperationBuilder.OperationProjection
.ArrayOperators.Reduce.Variable.referringTo
(String property) Create aField
reference to a given property prefixed with theArrayOperators.Reduce.Variable
identifier.Modifier and TypeMethodDescriptionCreates a newProjectionOperation.ArrayProjectionOperationBuilder
with the currentProjectionOperation.Projection
s and the given one.Also unset the given fields.static ObjectOperators.SetField
Creates newaggregation expression
that takes the value pointed to by given inputField
.Set the field to apply the$filter
to.Set the field holding an array to apply the$filter
to.static Fields
static ObjectOperators.GetField
Creates newaggregation expression
that takes the value pointed to by givenField
.AggregationOperationContext.getReference
(Field field) Returns aExposedFields.FieldReference
for the given field.PrefixingDelegatingAggregationOperationContext.getReference
(Field field) TypeBasedAggregationOperationContext.getReference
(Field field) protected ExposedFields.FieldReference
TypeBasedAggregationOperationContext.getReferenceFor
(Field field) Creates a newStringOperators.IndexOfBytes
givenField
that resolves to the substring.Creates a newStringOperators.IndexOfCP
givenField
that resolves to the substring.Creates newAggregationExpression
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.Creates newAggregationExpression
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 boolean
AggregationVariable.isVariable
(Field field) Check if the given field may be variable.static boolean
ArrayOperators.Reduce.Variable.isVariable
(Field field) static LookupOperation
Creates a newLookupOperation
for the givenFields
.Use value of referenced field as delimiter.Creates newAggregationExpression
that divides the associated string representation into an array of substrings based on the delimiter resulting from the referenced field..ModifierConstructorDescriptionBucketAutoOperation
(Field groupByField, int buckets) Creates a newBucketAutoOperation
given agroup-by field
.BucketOperation
(Field groupByField) Creates a newBucketOperation
given agroup-by field
.protected
BucketOperationSupport
(Field groupByField) Creates a newBucketOperationSupport
given agroup-by field
.protected
DensifyOperation
(Field field, List<?> partitionBy, DensifyOperation.Range range) LookupOperation
(String from, Field localField, Field foreignField, VariableOperators.Let let, AggregationPipeline pipeline, Field as) LookupOperation
(String from, VariableOperators.Let let, AggregationPipeline pipeline, Field as) LookupOperation
(Field from, Field localField, Field foreignField, Field as) Creates a newLookupOperation
for the givenField
s.protected
Creates newProjection
for the givenField
.ReplaceRootOperation
(Field field) Creates a newReplaceRootOperation
given theField
field name.SortByCountOperation
(Field groupByField) Creates a newSortByCountOperation
given agroup-by field
.UnwindOperation
(Field field) Creates a newUnwindOperation
for the givenField
.UnwindOperation
(Field field, boolean preserveNullAndEmptyArrays) Creates a newUnwindOperation
using Mongo 3.2 syntax.UnwindOperation
(Field field, Field arrayIndex, boolean preserveNullAndEmptyArrays) Creates a newUnwindOperation
using Mongo 3.2 syntax. -
Uses of Field in org.springframework.data.mongodb.util.aggregation