| Modifier and Type | Field and Description |
|---|---|
RelCollation |
collation |
@Nullable ImmutableBitSet |
distinctKeys |
int |
filterArg |
@Nullable String |
name |
RelDataType |
type |
| Constructor and Description |
|---|
AggregateCall(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
RelDataType type,
String name)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateCall |
adaptTo(RelNode input,
List<Integer> argList,
int filterArg,
int oldGroupKeyCount,
int newGroupKeyCount)
Creates an equivalent AggregateCall that is adapted to a new input types
and/or number of columns in GROUP BY.
|
AggregateCall |
copy(List<Integer> args)
Deprecated.
|
AggregateCall |
copy(List<Integer> args,
int filterArg)
Deprecated.
|
AggregateCall |
copy(List<Integer> args,
int filterArg,
@Nullable ImmutableBitSet distinctKeys,
RelCollation collation)
Deprecated.
|
AggregateCall |
copy(List<Integer> args,
int filterArg,
RelCollation collation)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
boolean ignoreNulls,
List<Integer> argList,
int filterArg,
@Nullable ImmutableBitSet distinctKeys,
RelCollation collation,
int groupCount,
RelNode input,
@Nullable RelDataType type,
@Nullable String name)
Creates an AggregateCall, inferring its type if
type is null. |
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
boolean ignoreNulls,
List<Integer> argList,
int filterArg,
@Nullable ImmutableBitSet distinctKeys,
RelCollation collation,
RelDataType type,
@Nullable String name)
Creates an AggregateCall.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
boolean ignoreNulls,
List<Integer> argList,
int filterArg,
RelCollation collation,
RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
@Nullable RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelCollation collation,
int groupCount,
RelNode input,
@Nullable RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelCollation collation,
RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
@Nullable RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
RelDataType type,
@Nullable String name)
Deprecated.
|
static AggregateCall |
create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int groupCount,
RelNode input,
@Nullable RelDataType type,
@Nullable String name)
Deprecated.
|
Aggregate.AggCallBinding |
createBinding(Aggregate aggregateRelBase)
Creates a binding of this call in the context of an
LogicalAggregate,
which can then be used to infer the return type. |
boolean |
equals(@Nullable Object o) |
SqlAggFunction |
getAggregation()
Returns the aggregate function.
|
List<Integer> |
getArgList()
Returns the ordinals of the arguments to this call.
|
RelCollation |
getCollation()
Returns the aggregate ordering definition (the
WITHIN GROUP clause
in SQL), or the empty list if not specified. |
@Nullable String |
getName()
Returns the name.
|
RelDataType |
getType()
Returns the result type.
|
boolean |
hasFilter()
Returns whether this AggregateCall has a filter argument.
|
int |
hashCode() |
boolean |
ignoreNulls()
Returns whether this AggregateCall ignores nulls.
|
boolean |
isApproximate()
Returns whether this AggregateCall is approximate, as in
APPROX_COUNT_DISTINCT(empno). |
boolean |
isDistinct()
Returns whether this AggregateCall is distinct, as in
COUNT(DISTINCT empno). |
AggregateCall |
rename(@Nullable String name)
Deprecated.
|
String |
toString() |
AggregateCall |
transform(Mappings.TargetMapping mapping)
Creates a copy of this aggregate call, applying a mapping to its
arguments.
|
AggregateCall |
withApproximate(boolean approximate)
Withs
isApproximate(). |
AggregateCall |
withArgList(List<Integer> argList)
Withs
getArgList(). |
AggregateCall |
withCollation(RelCollation collation)
Withs
getCollation(). |
AggregateCall |
withDistinct(boolean distinct)
Withs
isDistinct(). |
AggregateCall |
withDistinctKeys(@Nullable ImmutableBitSet distinctKeys)
Withs
distinctKeys. |
AggregateCall |
withFilter(int filterArg)
Withs
filterArg. |
AggregateCall |
withIgnoreNulls(boolean ignoreNulls)
Withs
ignoreNulls(). |
AggregateCall |
withName(@Nullable String name)
Withs
name. |
public final RelDataType type
public final @Nullable String name
public final int filterArg
public final @Nullable ImmutableBitSet distinctKeys
public final RelCollation collation
@Deprecated public AggregateCall(SqlAggFunction aggFunction, boolean distinct, List<Integer> argList, RelDataType type, String name)
aggFunction - Aggregate functiondistinct - Whether distinctargList - List of ordinals of argumentstype - Result typename - Name (may be null)@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, List<Integer> argList, int groupCount, RelNode input, @Nullable RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, List<Integer> argList, int filterArg, int groupCount, RelNode input, @Nullable RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, List<Integer> argList, int filterArg, int groupCount, RelNode input, @Nullable RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, List<Integer> argList, int filterArg, RelCollation collation, int groupCount, RelNode input, @Nullable RelDataType type, @Nullable String name)
public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, boolean ignoreNulls, List<Integer> argList, int filterArg, @Nullable ImmutableBitSet distinctKeys, RelCollation collation, int groupCount, RelNode input, @Nullable RelDataType type, @Nullable String name)
type is null.@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, List<Integer> argList, int filterArg, RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, List<Integer> argList, int filterArg, RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, List<Integer> argList, int filterArg, RelCollation collation, RelDataType type, @Nullable String name)
@Deprecated public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, boolean ignoreNulls, List<Integer> argList, int filterArg, RelCollation collation, RelDataType type, @Nullable String name)
public static AggregateCall create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, boolean ignoreNulls, List<Integer> argList, int filterArg, @Nullable ImmutableBitSet distinctKeys, RelCollation collation, RelDataType type, @Nullable String name)
public final boolean isDistinct()
COUNT(DISTINCT empno).public AggregateCall withDistinct(boolean distinct)
isDistinct().public final boolean isApproximate()
APPROX_COUNT_DISTINCT(empno).public AggregateCall withApproximate(boolean approximate)
isApproximate().public final boolean ignoreNulls()
public AggregateCall withIgnoreNulls(boolean ignoreNulls)
ignoreNulls().public final SqlAggFunction getAggregation()
public RelCollation getCollation()
WITHIN GROUP clause
in SQL), or the empty list if not specified.public AggregateCall withCollation(RelCollation collation)
getCollation().public final List<Integer> getArgList()
The list is immutable.
public AggregateCall withArgList(List<Integer> argList)
getArgList().public AggregateCall withDistinctKeys(@Nullable ImmutableBitSet distinctKeys)
distinctKeys.public final RelDataType getType()
public @Nullable String getName()
public AggregateCall withName(@Nullable String name)
name.@Deprecated public AggregateCall rename(@Nullable String name)
public boolean hasFilter()
public AggregateCall withFilter(int filterArg)
filterArg.public Aggregate.AggCallBinding createBinding(Aggregate aggregateRelBase)
LogicalAggregate,
which can then be used to infer the return type.@Deprecated public AggregateCall copy(List<Integer> args, int filterArg, @Nullable ImmutableBitSet distinctKeys, RelCollation collation)
args - Argumentstransform(Mappings.TargetMapping)@Deprecated public AggregateCall copy(List<Integer> args, int filterArg, RelCollation collation)
@Deprecated public AggregateCall copy(List<Integer> args, int filterArg)
@Deprecated public AggregateCall copy(List<Integer> args)
public AggregateCall adaptTo(RelNode input, List<Integer> argList, int filterArg, int oldGroupKeyCount, int newGroupKeyCount)
input - Relation that will be input of AggregateargList - Argument indices of the new call in the inputfilterArg - Index of the filter, or -1oldGroupKeyCount - number of columns in GROUP BY of old aggregatenewGroupKeyCount - number of columns in GROUP BY of new aggregatepublic AggregateCall transform(Mappings.TargetMapping mapping)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.