Package org.apache.iceberg.expressions
Class AggregateEvaluator
- java.lang.Object
-
- org.apache.iceberg.expressions.AggregateEvaluator
-
public class AggregateEvaluator extends java.lang.Object
A class for evaluating aggregates. It evaluates each of the aggregates and updates the aggregated value. The final aggregated result can be returned byresult()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<BoundAggregate<?,?>>
aggregates()
boolean
allAggregatorsValid()
static AggregateEvaluator
create(java.util.List<BoundAggregate<?,?>> aggregates)
static AggregateEvaluator
create(Schema schema, java.util.List<Expression> aggregates)
StructLike
result()
Types.StructType
resultType()
void
update(DataFile file)
void
update(StructLike struct)
-
-
-
Method Detail
-
create
public static AggregateEvaluator create(Schema schema, java.util.List<Expression> aggregates)
-
create
public static AggregateEvaluator create(java.util.List<BoundAggregate<?,?>> aggregates)
-
update
public void update(StructLike struct)
-
update
public void update(DataFile file)
-
resultType
public Types.StructType resultType()
-
allAggregatorsValid
public boolean allAggregatorsValid()
-
result
public StructLike result()
-
aggregates
public java.util.List<BoundAggregate<?,?>> aggregates()
-
-