Web-based responsive document annotation tool
activeannoservice / project.filter / 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:
Name | Summary |
---|---|
key | val key: String |
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 |
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 |