public abstract class SumAggregate<T> extends Object implements Aggregate<T>
Constructor and Description |
---|
SumAggregate(scala.math.Numeric<T> evidence$1) |
Modifier and Type | Method and Description |
---|---|
T |
evaluate(Row buffer)
Calculate the final aggregated result based on aggregate buffer.
|
void |
initiate(Row partial)
Initiate the intermediate aggregate value in Row.
|
void |
merge(Row partial1,
Row buffer)
Merge intermediate aggregate data into aggregate buffer.
|
void |
prepare(Object value,
Row partial)
Transform the aggregate field value into intermediate aggregate data.
|
void |
setAggOffsetInRow(int aggOffset)
Set the aggregate data offset in Row.
|
protected int |
sumIndex() |
boolean |
supportPartial()
Whether aggregate function support partial aggregate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intermediateDataType
public SumAggregate(scala.math.Numeric<T> evidence$1)
protected int sumIndex()
public void initiate(Row partial)
Aggregate
public void merge(Row partial1, Row buffer)
Aggregate
public T evaluate(Row buffer)
Aggregate
public void prepare(Object value, Row partial)
Aggregate
public boolean supportPartial()
Aggregate
supportPartial
in interface Aggregate<T>
public void setAggOffsetInRow(int aggOffset)
Aggregate
setAggOffsetInRow
in interface Aggregate<T>
aggOffset
- The offset of this aggregate in the intermediate aggregate rows.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.