KCollection Property Path
Base class for collection property path.
Inheritors
Functions
Creates a filter that matches all documents where the value of a property is an array that contains all the specified values.
Creates an update that performs a bitwise and between the given integer value and the integral value of the property.
Creates an update that performs a bitwise and between the given long value and the integral value of the property.
Creates an update that performs a bitwise or between the given integer value and the integral value of the property.
Creates an update that performs a bitwise or between the given long value and the integral value of the property.
Creates an update that performs a bitwise xor between the given integer value and the integral value of the property.
Creates an update that performs a bitwise xor between the given long value and the integral value of the property.
Creates a projection of a property whose value is equal to the {@code $$SEARCH_META} variable. for use with {@link Aggregates#search(SearchOperator, SearchOptions)} / {@link Aggregates#search(SearchCollector, SearchOptions)}. Calling this method is equivalent to calling {@link #computed(String, Object)} with {@code "$$SEARCH_META"} as the second argument.
Returns a composed property. For example Friend::address / Address::postalCode = "address.postalCode".
Returns a collection composed property. For example Friend::addresses / Address::postalCode = "addresses.postalCode".
Returns a map composed property. For example Friend::addresses / Address::postalCode = "addresses.postalCode".
Creates a filter that matches all documents containing a property that is an array where at least one member of the array matches the given filter.
Creates a projection that includes for the given property only the first element of the array value of that field that matches the given query filter.
Creates a filter that matches all documents that contain the given property.
Creates a filter that matches all documents that either contain or do not contain the given property, depending on the value of the exists parameter.
[The filtered positional operator $\] (https://docs.mongodb.com/manual/reference/operator/update/positional-filtered/)
Creates a filter that matches all documents containing a property with geospatial data that intersects with the specified shape.
Creates a filter that matches all documents containing a property with geospatial data that exists entirely within the specified shape.
Creates a filter that matches all documents containing a property with geospatial data (GeoJSON or legacy coordinate pairs) that exist entirely within the specified circle, using spherical geometry. If using longitude and latitude, specify longitude first.
Key projection of map. Sample: p.keyProjection(Locale.ENGLISH) / Gift::amount
To be overridden to return the right type.
Creates a searchHighlights projection for the given property, for use with {@link Aggregates#search(SearchOperator, SearchOptions)} / {@link Aggregates#search(SearchCollector, SearchOptions)}. Calling this method is equivalent to calling {@link #meta(String, String)} with {@code "searchHighlights"} as the argument.
Creates a searchScore projection for the given property, for use with {@link Aggregates#search(SearchOperator, SearchOptions)} / {@link Aggregates#search(SearchCollector, SearchOptions)}. Calling this method is equivalent to calling {@link #meta(String, String)} with {@code "searchScore"} as the argument.
Creates a textScore projection for the given property, for use with text queries. Calling this method is equivalent to calling {@link #meta(String)} with {@code "textScore"} as the argument.
Creates a vectorSearchScore projection for the given property, for use with {@link Aggregates#vectorSearch(FieldSearchPath, Iterable, String, long, VectorSearchOptions)} . Calling this method is equivalent to calling {@link #meta(String, String)} with {@code "vectorSearchScore"} as the argument.
Creates a filter that matches all documents containing a property with geospatial data that is near the specified GeoJSON point.
Creates a filter that matches all documents containing a property with geospatial data that is near the specified point.
Creates a filter that matches all documents containing a property with geospatial data that is near the specified GeoJSON point using spherical geometry.
Creates a filter that matches all documents containing a property with geospatial data that is near the specified point using spherical geometry.
In order to write $p.p2
Creates an update that removes all instances of the given value from the array value of the property.
Creates a filter that matches all documents where the value of the property matches the given regular expression pattern.
Creates a filter that matches all documents where the value of the option matches the given regular expression pattern with the given options applied.
Returns a composed property without type checks. For example Friend::address % Address::postalCode = "address.postalCode".
Properties
Returns a collection property.
Returns a map property.
The projection of the property. This is used in an aggregation pipeline to reference a property from a path.