Class 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 this field and value before date.
    See Also:
    Serialized Form
    • Constructor Detail

      • BeforeFilter

        public BeforeFilter​(String field,
                            DateMathExpression date,
                            Filter.Scope scope)
        Creates a Filter.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 - Enum Filter.Scope describing the scope to perform the filter on.