Class Filter

    • Method Detail

      • isNot

        public boolean isNot()
        Returns:
        true if this filter has been notted
        See Also:
        not()
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • encode

        public void encode​(Datastore datastore,
                           BsonWriter writer,
                           EncoderContext context)
        Parameters:
        datastore - the datastore
        writer - the writer
        context - the context
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • entityType

        public Filter entityType​(Class<?> type)
        Sets the query entity type on the filter
        Parameters:
        type - the type
        Returns:
        this
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • getField

        @Nullable
        public String getField()
        Returns:
        the filter field
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • not

        public Filter not()
        Negates this filter by wrapping in "$not: {}"
        Returns:
        this
        MongoDB documentation
        Query Filter: $not
      • getName

        @Nullable
        public String getName()
        Returns:
        the filter name
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • getValue

        @Nullable
        public Object getValue()
        Returns:
        the filter value
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • isValidating

        public Filter isValidating​(boolean validate)
        Sets whether to validate field names or not
        Parameters:
        validate - true to validate
        Returns:
        this
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.