Package org.dizitart.no2.filters
Class IndexOnlyFilter
java.lang.Object
org.dizitart.no2.filters.NitriteFilter
org.dizitart.no2.filters.FieldBasedFilter
org.dizitart.no2.filters.ComparableFilter
org.dizitart.no2.filters.IndexOnlyFilter
- All Implemented Interfaces:
Filter
An abstract class representing a filter that can be applied to an index.
NOTE: This filter does not support collection scan.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIndexOnlyFilter(String field, Object value) Instantiates a newIndexOnlyFilter. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancanBeGrouped(IndexOnlyFilter other) Checks ifotherfilter can be grouped together with this filter.abstract StringGets the supported index type for this filter.Methods inherited from class org.dizitart.no2.filters.ComparableFilter
applyOnIndex, getComparableMethods inherited from class org.dizitart.no2.filters.FieldBasedFilter
equals, getField, getValue, hashCode, setField, setProcessed, setValue, toStringMethods inherited from class org.dizitart.no2.filters.NitriteFilter
and, getCollectionName, getNitriteConfig, getObjectFilter, or, setCollectionName, setNitriteConfig, setObjectFilter
-
Constructor Details
-
IndexOnlyFilter
Instantiates a newIndexOnlyFilter.- Parameters:
field- the fieldvalue- the value
-
-
Method Details
-
supportedIndexType
Gets the supported index type for this filter.- Returns:
- the supported index type
-
canBeGrouped
Checks ifotherfilter can be grouped together with this filter.- Parameters:
other- the comparable filter- Returns:
- the boolean
-