private class RelBuilder.AggCallImpl extends java.lang.Object implements RelBuilder.AggCall
RelBuilder.AggCall
.Modifier and Type | Field and Description |
---|---|
private SqlAggFunction |
aggFunction |
private java.lang.String |
alias |
private boolean |
approximate |
private boolean |
distinct |
private RexNode |
filter |
private boolean |
ignoreNulls |
private com.google.common.collect.ImmutableList<RexNode> |
operands |
private com.google.common.collect.ImmutableList<RexNode> |
orderKeys |
Constructor and Description |
---|
AggCallImpl(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
boolean ignoreNulls,
RexNode filter,
java.lang.String alias,
com.google.common.collect.ImmutableList<RexNode> operands,
com.google.common.collect.ImmutableList<RexNode> orderKeys) |
Modifier and Type | Method and Description |
---|---|
RelBuilder.AggCall |
approximate(boolean approximate)
Returns a copy of this AggCall that may return approximate results
if
approximate is true. |
RelBuilder.AggCall |
as(java.lang.String alias)
Returns a copy of this AggCall with a given alias.
|
RelBuilder.AggCall |
distinct()
Returns a copy of this AggCall that is distinct.
|
RelBuilder.AggCall |
distinct(boolean distinct)
Returns a copy of this AggCall that is optionally distinct.
|
RelBuilder.AggCall |
filter(RexNode condition)
Returns a copy of this AggCall that applies a filter before aggregating
values.
|
RelBuilder.AggCall |
ignoreNulls(boolean ignoreNulls)
Returns a copy of this AggCall that ignores nulls.
|
RelBuilder.AggCall |
sort(java.lang.Iterable<RexNode> orderKeys)
Returns a copy of this AggCall that sorts its input values by
orderKeys before aggregating, as in SQL's WITHIN GROUP
clause. |
RelBuilder.AggCall |
sort(RexNode... orderKeys)
Returns a copy of this AggCall that sorts its input values by
orderKeys before aggregating, as in SQL's WITHIN GROUP
clause. |
private final SqlAggFunction aggFunction
private final boolean distinct
private final boolean approximate
private final boolean ignoreNulls
private final RexNode filter
private final java.lang.String alias
private final com.google.common.collect.ImmutableList<RexNode> operands
private final com.google.common.collect.ImmutableList<RexNode> orderKeys
AggCallImpl(SqlAggFunction aggFunction, boolean distinct, boolean approximate, boolean ignoreNulls, RexNode filter, java.lang.String alias, com.google.common.collect.ImmutableList<RexNode> operands, com.google.common.collect.ImmutableList<RexNode> orderKeys)
public RelBuilder.AggCall sort(java.lang.Iterable<RexNode> orderKeys)
RelBuilder.AggCall
orderKeys
before aggregating, as in SQL's WITHIN GROUP
clause.sort
in interface RelBuilder.AggCall
public RelBuilder.AggCall sort(RexNode... orderKeys)
RelBuilder.AggCall
orderKeys
before aggregating, as in SQL's WITHIN GROUP
clause.sort
in interface RelBuilder.AggCall
public RelBuilder.AggCall approximate(boolean approximate)
RelBuilder.AggCall
approximate
is true.approximate
in interface RelBuilder.AggCall
public RelBuilder.AggCall filter(RexNode condition)
RelBuilder.AggCall
filter
in interface RelBuilder.AggCall
public RelBuilder.AggCall as(java.lang.String alias)
RelBuilder.AggCall
as
in interface RelBuilder.AggCall
public RelBuilder.AggCall distinct(boolean distinct)
RelBuilder.AggCall
distinct
in interface RelBuilder.AggCall
public RelBuilder.AggCall distinct()
RelBuilder.AggCall
distinct
in interface RelBuilder.AggCall
public RelBuilder.AggCall ignoreNulls(boolean ignoreNulls)
RelBuilder.AggCall
ignoreNulls
in interface RelBuilder.AggCall
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.