public class SplitterUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static GridSqlAggregateFunction |
aggregate(boolean distinct,
GridSqlFunctionType type) |
static GridSqlAlias |
alias(String alias,
GridSqlAst child) |
static void |
checkNoDataTablesInReduceQuery(GridSqlAst ast,
String rdcQry) |
static GridSqlColumn |
column(String name) |
static void |
findParamsQuery(GridSqlQuery qry,
int paramsCnt,
TreeSet<Integer> paramIdxs) |
static boolean |
hasAggregates(GridSqlAst el)
Check whether AST element has aggregates.
|
static boolean |
hasDistinctAggregates(GridSqlAst el)
Lookup for distinct aggregates.
|
static boolean |
hasLeftJoin(GridSqlAst from)
Check whether LEFT OUTER join exist.
|
static boolean |
hasPartitionedTables(GridSqlAst ast) |
static boolean |
hasSubQueries(GridSqlSelect qry)
Check whether the given SELECT has subqueries.
|
static boolean |
isFractionalType(int type) |
static boolean |
isTrue(GridSqlAst expr) |
static GridSqlOperation |
op(GridSqlOperationType type,
GridSqlAst left,
GridSqlAst right) |
public static boolean hasAggregates(GridSqlAst el)
el - Expression part in SELECT clause.true If expression contains aggregates.public static void findParamsQuery(GridSqlQuery qry, int paramsCnt, TreeSet<Integer> paramIdxs)
qry - Select.paramsCnt - Number of parameters.paramIdxs - Parameter indexes.public static boolean hasDistinctAggregates(GridSqlAst el)
el - Expression.true If expression contains distinct aggregates.public static boolean hasLeftJoin(GridSqlAst from)
from - FROM clause.true If contains LEFT OUTER JOIN.public static void checkNoDataTablesInReduceQuery(GridSqlAst ast, String rdcQry)
ast - Reduce query AST.rdcQry - Reduce query string.public static boolean isTrue(GridSqlAst expr)
expr - Expression.true If this expression represents a constant value `TRUE`.public static boolean isFractionalType(int type)
type - data type idpublic static GridSqlAggregateFunction aggregate(boolean distinct, GridSqlFunctionType type)
distinct - Distinct.type - Type.public static GridSqlColumn column(String name)
name - Column name.public static GridSqlAlias alias(String alias, GridSqlAst child)
alias - Alias.child - Child.public static GridSqlOperation op(GridSqlOperationType type, GridSqlAst left, GridSqlAst right)
type - Type.left - Left expression.right - Right expression.public static boolean hasPartitionedTables(GridSqlAst ast)
ast - Map query AST.true If the given AST has partitioned tables.public static boolean hasSubQueries(GridSqlSelect qry)
qry - Query.True if subqueries are found.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025