Operators

All available operators are accessed via the QueryExpressions class. Many of the arguments and return types are hard to understand, and typically you don't need to bother to understand exactly what they are for. The intent is that the query expressions are written in the Query Fluent API style, and one ignore the intermediary types that is produced to be able to translate the expressed intent to the underlying indexing query language.

So, the operators goes together with the Factory Methods, also present in the QueryExpressions class.

Query expressions can become arbitrarily complex boolean expressions (all operators returns an BooleanExpression) as a full abstract syntax tree will be built under the hood for translation into the query language in use.

The where() method is also an implicit operator, namely "and()", so if many where() clauses are given, they must all evaluate true for selection to occur.


Qi4j and the Qi4j logo are trademarks of Richard Öberg, Niclas Hedhman and the members of the Qi4j Core Team. See Qi4j licensing for more information.
Powered by SiteVisionexternal link.