public class CountAggregate extends Object implements Aggregate<Object>
Constructor and Description |
---|
CountAggregate() |
Modifier and Type | Method and Description |
---|---|
long |
evaluate(Row buffer)
Calculate the final aggregated result based on aggregate buffer.
|
void |
initiate(Row intermediate)
Initiate the intermediate aggregate value in Row.
|
TypeInformation<?>[] |
intermediateDataType()
Intermediate aggregate value types.
|
void |
merge(Row intermediate,
Row buffer)
Merge intermediate aggregate data into aggregate buffer.
|
void |
prepare(Object value,
Row intermediate)
Transform the aggregate field value into intermediate aggregate data.
|
void |
setAggOffsetInRow(int aggIndex)
Set the aggregate data offset in Row.
|
boolean |
supportPartial()
Whether aggregate function support partial aggregate.
|
public void initiate(Row intermediate)
Aggregate
public void merge(Row intermediate, Row buffer)
Aggregate
public long evaluate(Row buffer)
Aggregate
public void prepare(Object value, Row intermediate)
Aggregate
public TypeInformation<?>[] intermediateDataType()
Aggregate
intermediateDataType
in interface Aggregate<Object>
public boolean supportPartial()
Aggregate
supportPartial
in interface Aggregate<Object>
public void setAggOffsetInRow(int aggIndex)
Aggregate
setAggOffsetInRow
in interface Aggregate<Object>
aggIndex
- The offset of this aggregate in the intermediate aggregate rows.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.