Class PartialIndexFilter
java.lang.Object
org.springframework.data.mongodb.core.index.PartialIndexFilter
- All Implemented Interfaces:
IndexFilter
IndexFilter
implementation for usage with plain Document
as well as CriteriaDefinition
filter
expressions.- Since:
- 1.10
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionorg.bson.Document
Get the raw (unmapped) filter expression.static PartialIndexFilter
of
(org.bson.Document where) Create newPartialIndexFilter
for givenfilter expression
.static PartialIndexFilter
of
(CriteriaDefinition where) Create newPartialIndexFilter
for givenfilter expression
.
-
Method Details
-
of
Create newPartialIndexFilter
for givenfilter expression
.- Parameters:
where
- must not be null.- Returns:
-
of
Create newPartialIndexFilter
for givenfilter expression
.- Parameters:
where
- must not be null.- Returns:
-
getFilterObject
public org.bson.Document getFilterObject()Description copied from interface:IndexFilter
Get the raw (unmapped) filter expression.- Specified by:
getFilterObject
in interfaceIndexFilter
- Returns:
- never null.
-