Package org.dizitart.no2.filters
Class ComparableFilter
java.lang.Object
org.dizitart.no2.filters.NitriteFilter
org.dizitart.no2.filters.FieldBasedFilter
org.dizitart.no2.filters.ComparableFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
IndexOnlyFilter,SortingAwareFilter,StringFilter
An abstract class representing a filter that compares fields.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionComparableFilter(String field, Object value) Instantiates a new Comparable filter. -
Method Summary
Modifier and TypeMethodDescriptionabstract List<?>applyOnIndex(org.dizitart.no2.index.IndexMap indexMap) Apply this filter on a nitrite index.Gets theComparablevalue to filter.Methods 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
-
ComparableFilter
Instantiates a new Comparable filter.- Parameters:
field- the fieldvalue- the value
-
-
Method Details
-
getComparable
Gets theComparablevalue to filter.- Returns:
- the comparable
-
applyOnIndex
Apply this filter on a nitrite index.- Parameters:
indexMap- the index scanner- Returns:
- the object
-