User Tools

Site Tools


15_cheatsheet:operators

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
15_cheatsheet:operators [2025/11/03 04:24] – created gaetan15_cheatsheet:operators [2026/01/05 15:09] (current) – [Selection Operators] barley1965
Line 1: Line 1:
 ====== XL operators ====== ====== XL operators ======
  
-XL-Operators are designed to simplify the usage of XL queries and rewriting rules. Moreover these operators can improve the performance of a query due to there deep integration into the model. +XL-Operators are designed to simplify the usage of XL queries and rewriting rules. Moreover these operators can improve the performance of a query due to their deep integration into the model. 
-In the following the operators a separated into Analytical and selection operators to either get a value for analysis or a node/ a collection of nodes for rewriting.+In the followingthe operators a separated into analytical and selection operators to either get a value for analysis or a node/ a collection of nodes for rewriting.
  
 ====== Analytical Operators ====== ====== Analytical Operators ======
Line 24: Line 24:
 | first((*//query//*) ) | get the first element found with the query | first((*F*) ) | | first((*//query//*) ) | get the first element found with the query | first((*F*) ) |
 | last((*//query//*) ) | get the last element found with the query | last((*F*) ) | | last((*//query//*) ) | get the last element found with the query | last((*F*) ) |
-| slice((*//query//*),//s//,//e//) | return the subset(form s to e) of the result | slice((*F*),2,4), slice((*F*)[length],2,4)  |+| slice((*//query//*),//s//,//e//) | return the subset(from s to e) of the result | slice((*F*),2,4), slice((*F*)[length],2,4)  |
 |selectWhere((*//query//*),//condition//)| Select a node of the query that fits the condition | selectWhere((*f:F*),f[length]==1) | |selectWhere((*//query//*),//condition//)| Select a node of the query that fits the condition | selectWhere((*f:F*),f[length]==1) |
 |selectWhereMin((*//query//*),//parameter//)| Select a node of the query where the parameter is the smallest | selectWhereMin((*f:F*),f[length])  | |selectWhereMin((*//query//*),//parameter//)| Select a node of the query where the parameter is the smallest | selectWhereMin((*f:F*),f[length])  |
15_cheatsheet/operators.1762140275.txt.gz · Last modified: 2025/11/03 04:24 by gaetan