class QueryBuilder
Query builder
The query builder is used for building WQL queries.
<init> |
Query builder QueryBuilder() |
and |
Adds $and combinator to current request context. fun and(combinatorBuilder: QueryCombinatorBuilder): QueryBuilder |
any |
Adds $in operator to current request context. fun <T> any(tagName: String, values: List<T>, encrypted: Boolean = true): QueryBuilder |
contains |
Adds $like operator to current request context. The like case is %value% This operator is applied only for un-encrypted tags. fun contains(tagName: String, value: String): QueryBuilder |
endsWith |
Adds $like operator to current request context. The like case is value% This operator is applied only for un-encrypted tags. fun endsWith(tagName: String, value: String): QueryBuilder |
eq |
Adds $eq operator to current request context fun <T> eq(tagName: String, value: T, encrypted: Boolean = true): QueryBuilder |
gt |
Adds $gt operator to current request context. This operator is applied only for un-encrypted tags. fun <T> gt(tagName: String, value: T): QueryBuilder |
gte |
Adds $gte operator to current request context. This operator is applied only for un-encrypted tags. fun <T> gte(tagName: String, value: T): QueryBuilder |
lt |
Adds $lt operator to current request context. This operator is applied only for un-encrypted tags. fun <T> lt(tagName: String, value: T): QueryBuilder |
lte |
Adds $lte operator to current request context. This operator is applied only for un-encrypted tags. fun <T> lte(tagName: String, value: T): QueryBuilder |
neq |
Adds $neq operator to current request context fun <T> neq(tagName: String, value: T, encrypted: Boolean = true): QueryBuilder |
not |
Adds $not combinator to current request context. fun not(subqueryBuilder: SubqueryBuilder): QueryBuilder |
or |
Adds $or combinator to current request context. fun or(combinatorBuilder: QueryCombinatorBuilder): QueryBuilder |
query |
Returns the current query state fun query(): SearchQuery |
startsWith |
Adds $like operator to current request context. The like case is value% This operator is applied only for un-encrypted tags. fun startsWith(tagName: String, value: String): QueryBuilder |
EMPTY_QUERY |
val EMPTY_QUERY: Map<String, Any> |
and |
Extends QueryBuilder and method. The current implementation makes using $and combinator more idiomatically for Kotlin. fun QueryBuilder.and(queries: List<SearchQuery> = emptyList(), block: QueryCombinatorBuilder.() -> Unit = {}): QueryBuilder |
not |
Extends QueryBuilder not method. The current implementation makes using $not combinator more idiomatically for Kotlin. fun QueryBuilder.not(block: QueryBuilder.() -> Unit): QueryBuilder |
or |
Extends QueryBuilder or method. The current implementation makes using $or combinator more idiomatically for Kotlin. fun QueryBuilder.or(queries: List<SearchQuery> = emptyList(), block: QueryCombinatorBuilder.() -> Unit = {}): QueryBuilder |