use of com.facebook.presto.operator.aggregation.builder.HashAggregationBuilder in project presto by prestodb.
the class TestHashAggregationOperator method getHashCapacity.
private int getHashCapacity(Operator operator) {
assertTrue(operator instanceof HashAggregationOperator);
HashAggregationBuilder aggregationBuilder = ((HashAggregationOperator) operator).getAggregationBuilder();
if (aggregationBuilder == null) {
return 0;
}
assertTrue(aggregationBuilder instanceof InMemoryHashAggregationBuilder);
return ((InMemoryHashAggregationBuilder) aggregationBuilder).getCapacity();
}
Aggregations