Class Filter.BeforeFilter
- java.lang.Object
-
- com.rbmhtechnology.vind.api.query.filter.Filter
-
- com.rbmhtechnology.vind.api.query.filter.FieldBasedFilter
-
- com.rbmhtechnology.vind.api.query.filter.Filter.BeforeFilter
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Filter
public static class Filter.BeforeFilter extends FieldBasedFilter
Filter Class implementing a filter by field value. A query performed with this filter should return all the documents with thisfield
and value beforedate
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.rbmhtechnology.vind.api.query.filter.Filter
Filter.AfterFilter, Filter.AndFilter, Filter.BeforeFilter, Filter.BetweenDatesFilter, Filter.BetweenNumericFilter, Filter.ChildrenDocumentFilter, Filter.DescriptorFilter<T>, Filter.GreaterThanFilter, Filter.LowerThanFilter, Filter.NotEmptyFilter, Filter.NotEmptyLocationFilter, Filter.NotEmptyTextFilter, Filter.NotFilter, Filter.OrFilter, Filter.PrefixFilter, Filter.Scope, Filter.TermFilter, Filter.TermsQueryFilter<T>, Filter.WithinBBoxFilter, Filter.WithinCircleFilter
-
-
Field Summary
-
Fields inherited from class com.rbmhtechnology.vind.api.query.filter.Filter
AndCollector, DEFAULT_SCOPE, filterScope, OrCollector
-
-
Constructor Summary
Constructors Constructor Description BeforeFilter(String field, DateMathExpression date, Filter.Scope scope)
Creates aFilter.BeforeFilter
object based on a given field name parameter and a date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
clone()
DateMathExpression
getDate()
Get the date of the filter.String
getField()
Get the filtered field nameString
toString()
-
Methods inherited from class com.rbmhtechnology.vind.api.query.filter.Filter
after, after, after, after, after, after, and, before, before, before, before, before, before, between, between, between, between, between, between, between, between, eq, eq, eq, eq, getFilterScope, getFilterScope, getFilterScope, getType, greaterThan, greaterThan, hasChildrenDocuments, hasChildrenDocuments, lesserThan, lesserThan, not, or, prefix, prefix, terms, terms, withinBBox, withinBBox, withinCircle, withinCircle
-
-
-
-
Constructor Detail
-
BeforeFilter
public BeforeFilter(String field, DateMathExpression date, Filter.Scope scope)
Creates aFilter.BeforeFilter
object based on a given field name parameter and a date.- Parameters:
field
- String name of the field to build the filter over.date
- ZoneDateTime date setting the time point before which all documents are filtered by.scope
- EnumFilter.Scope
describing the scope to perform the filter on.
-
-
Method Detail
-
getField
public String getField()
Get the filtered field name- Specified by:
getField
in classFieldBasedFilter
- Returns:
- String
field
with the field name.
-
getDate
public DateMathExpression getDate()
Get the date of the filter.- Returns:
- ZonedDateTime filter before date.
-
-