Package-level declarations
Types
Expression visitor interceptor for removing table aliases, used by Ktorm internally.
Base class of DSL builders, provide basic functions used to build assignments for insert or update DSL.
DSL builder for batch insert statements.
DSL builder for batch update statements.
Helper class used to build case-when SQL DSL. See CaseWhenExpression.
Query is an abstraction of query operations and the core class of Ktorm's query DSL.
Represents a query source, used in the from
clause of a query.
DSL builder for update statements.
Utility object that creates expressions of window frame bounds.
Functions
And operator, translated to the and
keyword in SQL.
Order this column or expression in ascending order.
Wrap this query as Iterable.
Return a Map containing the values provided by valueTransform and indexed by keySelector functions applied to rows of the query.
Populate and return the destination mutable map with key-value pairs, where key is provided by the keySelector function and value is provided by the valueTransform function applied to rows of the query.
Populate and return the destination mutable map with key-value pairs provided by transform function applied to each row of the query.
The avg function, translated to avg(column)
in SQL.
The avg function with distinct, translated to avg(distinct column)
in SQL.
Construct insert expressions in the given closure, then batch execute them and return the effected row counts for each expression.
Construct update expressions in the given closure, then batch execute them and return the effected row counts for each expression.
Between operator, translated to between .. and ..
in SQL.
Cast the current column or expression to the given SqlType.
Combine this iterable of boolean expressions with the and operator.
The count function, translated to count(column)
in SQL.
The count function with distinct, translated to count(distinct column)
in SQL.
Perform a cross join and return a new QuerySource, translated to cross join
in SQL.
The cume_dist window function, translated to cume_dist()
in SQL.
The dense_rank window function, translated to dense_rank()
in SQL.
Order this column or expression in descending order, corresponding to the desc
keyword in SQL.
Divide operator, translated to /
in SQL.
Finishes the case-when DSL and returns a CaseWhenExpression.
Equal operator, translated to =
in SQL.
Check if the given query has at least one result, translated to the exists
keyword in SQL.
The first_value window function, translated to first_value(expr)
in SQL.
Return a single list of all elements yielded from results of transform function being invoked on each row and its index in the query.
Append all elements yielded from results of transform function being invoked on each row and its index in the query, to the given destination.
Append all elements yielded from results of transform function being invoked on each row of the query, to the given destination.
Perform the given action on each row of the query, providing sequential index with the row.
Wrap the specific table as a QuerySource.
Perform a full join and return a new QuerySource, translated to full join
in SQL.
Get generated key from the row set.
Greater operator, translated to >
in SQL.
Greater-eq operator, translated to >=
in SQL.
Specify the group by
clause of this query using the given columns or expressions.
Greater operator, translated to >
in SQL.
Greater-eq operator, translated to >=
in SQL.
Specify the having
clause of this query using the expression returned by the given callback function.
Specify the having
clause of this query using the given condition expression.
In-list operator, translated to the in
keyword in SQL.
Perform an inner join and return a new QuerySource, translated to inner join
in SQL.
Construct an insert expression in the given closure, then execute it and return the auto-generated key.
Check if the current column or expression is not null, translated to is not null
in SQL.
Check if the current column or expression is null, translated to is null
in SQL.
Return a new-created Query object, left joining all the reference tables, and selecting all columns of them.
The lag window function, translated to lag(expr, offset[, defVal])
in SQL.
The last_value window function, translated to last_value(expr)
in SQL.
The lead window function, translated to lead(expr, offset[, defVal])
in SQL.
Perform a left join and return a new QuerySource, translated to left join
in SQL.
Less operator, translated to <
in SQL.
Less-eq operator, translated to <=
in SQL.
Like operator, translated to the like
keyword in SQL.
Less operator, translated to <
in SQL.
Less-eq operator, translated to <=
in SQL.
Return a list containing the results of applying the given transform function to each row and its index.
Return a list containing only the non-null results of applying the given transform function to each row and its index.
Apply the given transform function to each row and its index and append only the non-null results to the given destination.
Apply the given transform function to each row and its index and append the results to the given destination.
Return a list containing only the non-null results of applying the given transform function to each row of the query.
Apply the given transform function to each row of the query and append only the non-null results to the given destination.
Apply the given transform function to each row of the query and append the results to the given destination.
The max function, translated to max(column)
in SQL.
The max function with distinct, translated to max(distinct column)
in SQL.
The min function, translated to min(column)
in SQL.
The min function with distinct, translated to min(distinct column)
in SQL.
Minus operator, translated to -
in SQL.
Not-equal operator, translated to <>
in SQL.
Negative operator, translated to the not
keyword in SQL.
Not-between operator, translated to not between .. and ..
in SQL.
Not-equal operator, translated to <>
in SQL.
Check if the given query doesn't have any results, translated to the not exists
keyword in SQL.
Not-in-list operator, translated to the not in
keyword in SQL.
Not like operator, translated to the not like
keyword in SQL.
The nth_value window function, translated to nth_value(expr, n)
in SQL.
The ntile window function, translated to ntile(n)
in SQL.
Or operator, translated to the or
keyword in SQL.
Specify the order by
clause of this query using the given order-by expressions.
Specify the order-by clause of this window using the given order-by expressions.
Use this aggregate function as a window function and specify its window specification.
Specify the window specification for this window function.
Specify the partition-by clause of this window using the given columns or expressions.
The percent_rank window function, translated to percent_rank()
in SQL.
Plus operator, translated to +
in SQL.
Specify the frame clause of this window using the given bound in range unit.
Specify the frame clause of this window using the given bounds (start & end) in rows unit.
The rank window function, translated to rank()
in SQL.
Mod operator, translated to %
in SQL.
Perform a right join and return a new QuerySource, translated to right join
in SQL.
The row_number window function, translated to row_number()
in SQL.
Specify the frame clause of this window using the given bound in rows unit.
Specify the frame clause of this window using the given bounds (start & end) in rows unit.
Create a query object, selecting the specific columns or expressions from this QuerySource.
Create a query object, selecting the specific columns or expressions from this QuerySource distinctly.
The sum function, translated to sum(column)
in SQL.
The sum function with distinct, translated to sum(distinct column)
in SQL.
Finishes the current when clause with the given result.
Multiply operator, translated to *
in SQL.
Cast the current column or expression's type to Double.
Cast the current column or expression's type to Float.
Cast the current column or expression's type to Int.
Cast the current column or expression's type to Long.
Cast the current column or expression's type to Short.
Unary minus operator, translated to -
in SQL.
Unary plus operator, translated to +
in SQL.
Specify the where
clause of this query using the expression returned by the given callback function.
Specify the where
clause of this query using the given condition expression.
Create a mutable list, then add filter conditions to the list in the given callback function, finally combine them with the and operator and set the combined condition as the where
clause of this query.
Create a mutable list, then add filter conditions to the list in the given callback function, finally combine them with the or operator and set the combined condition as the where
clause of this query.
Create a default window specification.
Return a lazy Iterable that wraps each row of the query into an IndexedValue containing the index of that row and the row itself.
Xor operator, translated to the xor
keyword in SQL.