public class AggregateNode extends AbstractSingleNode<Aggregate>
Aggregate
.Modifier and Type | Class and Description |
---|---|
private static interface |
AggregateNode.Accumulator
Defines function implementation for
things like
count() and sum() . |
private static interface |
AggregateNode.AccumulatorFactory
Creates an
AggregateNode.Accumulator . |
private static class |
AggregateNode.AccumulatorList
A list of accumulators used during grouping.
|
private static class |
AggregateNode.CountAccumulator
Accumulator for calls to the COUNT function.
|
static class |
AggregateNode.DoubleSum
Implementation of
SUM over DOUBLE values as a user-defined
aggregate. |
private static class |
AggregateNode.FilterAccumulator
Accumulator that applies a filter to another accumulator.
|
private class |
AggregateNode.Grouping
Internal class to track groupings.
|
static class |
AggregateNode.IntSum
Implementation of
SUM over INTEGER values as a user-defined
aggregate. |
static class |
AggregateNode.LongSum
Implementation of
SUM over BIGINT values as a user-defined
aggregate. |
static class |
AggregateNode.MaxDouble
Implementation of
MAX function to calculate the minimum of
double and real values as a user-defined aggregate. |
static class |
AggregateNode.MaxFloat
Implementation of
MAX function to calculate the minimum of
float values as a user-defined aggregate. |
static class |
AggregateNode.MaxInt
Implementation of
MAX function to calculate the minimum of
integer values as a user-defined aggregate. |
static class |
AggregateNode.MaxLong
Implementation of
MAX function to calculate the minimum of
long values as a user-defined aggregate. |
static class |
AggregateNode.MinDouble
Implementation of
MIN function to calculate the minimum of
double and real values as a user-defined aggregate. |
static class |
AggregateNode.MinFloat
Implementation of
MIN function to calculate the minimum of
float values as a user-defined aggregate. |
static class |
AggregateNode.MinInt
Implementation of
MIN function to calculate the minimum of
integer values as a user-defined aggregate. |
static class |
AggregateNode.MinLong
Implementation of
MIN function to calculate the minimum of
long values as a user-defined aggregate. |
static class |
AggregateNode.NumericComparison<T>
Common implementation of comparison aggregate methods over numeric
values as a user-defined aggregate.
|
private static class |
AggregateNode.ScalarAccumulator
Accumulator powered by
Scalar code fragments. |
private static class |
AggregateNode.ScalarAccumulatorDef
Accumulator powered by
Scalar code fragments. |
private static class |
AggregateNode.UdaAccumulator
Accumulator based upon a user-defined aggregate.
|
private static class |
AggregateNode.UdaAccumulatorFactory
Accumulator factory based on a user-defined aggregate function.
|
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<AggregateNode.AccumulatorFactory> |
accumulatorFactories |
private DataContext |
dataContext |
private java.util.List<AggregateNode.Grouping> |
groups |
private int |
outputRowLength |
private ImmutableBitSet |
unionGroups |
rel, sink, source
Constructor and Description |
---|
AggregateNode(Compiler compiler,
Aggregate rel) |
Modifier and Type | Method and Description |
---|---|
private AggregateNode.AccumulatorFactory |
getAccumulator(AggregateCall call,
boolean ignoreFilter) |
void |
run() |
private final java.util.List<AggregateNode.Grouping> groups
private final ImmutableBitSet unionGroups
private final int outputRowLength
private final com.google.common.collect.ImmutableList<AggregateNode.AccumulatorFactory> accumulatorFactories
private final DataContext dataContext
public void run() throws java.lang.InterruptedException
java.lang.InterruptedException
private AggregateNode.AccumulatorFactory getAccumulator(AggregateCall call, boolean ignoreFilter)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.