ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / project.filter / FilterCondition

FilterCondition

sealed class FilterCondition

Light wrapper classes around MongoDB query elements. To use the FilterCondition as a parameter for MongoDB find, call buildQuery +on the FilterCondition object. Support for:

Properties

Name Summary
key val key: String

Functions

Name Summary
buildBson fun buildBson(): BsonDocument
buildQuery fun buildQuery(): ObjectNode
equals open fun equals(other: Any?): Boolean
hashCode open fun hashCode(): Int
toString open fun toString(): String

Inheritors

Name Summary
And class And : FilterCondition
ContainsAll Equivalent to And connection between Contains conditions, exists as shorthand Example: { tags: { $all: ssl,security } } => { $and: {tags:ssl},{tags:security} }class ContainsAll : FilterCondition
DateGreaterThanEquals Filter based on a mapping a date string to timestamp and then performing GTE on the value provided.class DateGreaterThanEquals : FilterCondition
DateLessThanEquals Filter based on a mapping a date string to timestamp and then performing LTE on the value provided. If the value is not existing, won’t return the documentclass DateLessThanEquals : FilterCondition
Equals Use for direct equals or array containsclass Equals : FilterCondition
GreaterThan class GreaterThan : FilterCondition
GreaterThanEquals class GreaterThanEquals : FilterCondition
In class In : FilterCondition
KeyExists class KeyExists : FilterCondition
LessThan class LessThan : FilterCondition
LessThanEquals class LessThanEquals : FilterCondition
Nor class Nor : FilterCondition
Not class Not : FilterCondition
NotEquals class NotEquals : FilterCondition
NotIn class NotIn : FilterCondition
Or class Or : FilterCondition
Regex class Regex : FilterCondition
Size class Size : FilterCondition
StringEquals Class to compare value inside document and value both as strings, using Mongos expr featureclass StringEquals : FilterCondition