public class GridAggregateOrderedFunction extends Object implements org.gridgain.internal.h2.api.AggregateFunction
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
asc
Ascending order.
|
protected Comparator<? super Comparable> |
comparator
Nulls-last comparator.
|
protected Object[] |
currentVal |
| Constructor and Description |
|---|
GridAggregateOrderedFunction(boolean asc,
Comparator<? super Comparable> comparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object value) |
protected int |
compare(Object[] arg1,
Object[] arg2)
Compares two arrays starting with the first element.
|
Object |
getResult() |
int |
getType(int[] inputTypes) |
void |
init(Connection conn) |
protected Object[] currentVal
protected boolean asc
protected Comparator<? super Comparable> comparator
public GridAggregateOrderedFunction(boolean asc,
Comparator<? super Comparable> comparator)
comparator - comparator.asc - ascending order.public void init(Connection conn) throws SQLException
init in interface org.gridgain.internal.h2.api.AggregateFunctionSQLExceptionpublic int getType(int[] inputTypes)
throws SQLException
getType in interface org.gridgain.internal.h2.api.AggregateFunctionSQLExceptionpublic void add(Object value) throws SQLException
add in interface org.gridgain.internal.h2.api.AggregateFunctionSQLExceptionprotected int compare(Object[] arg1, Object[] arg2) throws SQLException
Comparable interface.arg1 - the first array.arg2 - the second arrays.SQLException - if failed.public Object getResult() throws SQLException
getResult in interface org.gridgain.internal.h2.api.AggregateFunctionSQLException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025