Package org.dizitart.no2.filters
Class SortingAwareFilter
java.lang.Object
org.dizitart.no2.filters.NitriteFilter
org.dizitart.no2.filters.FieldBasedFilter
org.dizitart.no2.filters.ComparableFilter
org.dizitart.no2.filters.SortingAwareFilter
- All Implemented Interfaces:
Filter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe comparison operator (>, >=, <, <=) aSortingAwareFilterrepresents. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSortingAwareFilter(String field, Object value) Instantiates a new SortingAwareFilter. -
Method Summary
Modifier and TypeMethodDescriptionabstract SortingAwareFilter.ComparisonModeThe comparison operator this filter represents.booleanIndicates if the filter should scan the index in reverse order.voidsetReverseScan(boolean reverseScan) Indicates if the filter should scan the index in reverse order.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
-
SortingAwareFilter
Instantiates a new SortingAwareFilter.- Parameters:
field- the fieldvalue- the value
-
-
Method Details
-
getComparisonMode
The comparison operator this filter represents.- Returns:
- the comparison mode
-
isReverseScan
public boolean isReverseScan()Indicates if the filter should scan the index in reverse order. -
setReverseScan
public void setReverseScan(boolean reverseScan) Indicates if the filter should scan the index in reverse order.
-