Search in sources :

Example 1 with HashAggregationBuilder

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();
}
Also used : HashAggregationBuilder(com.facebook.presto.operator.aggregation.builder.HashAggregationBuilder) InMemoryHashAggregationBuilder(com.facebook.presto.operator.aggregation.builder.InMemoryHashAggregationBuilder) InMemoryHashAggregationBuilder(com.facebook.presto.operator.aggregation.builder.InMemoryHashAggregationBuilder)

Aggregations

HashAggregationBuilder (com.facebook.presto.operator.aggregation.builder.HashAggregationBuilder)1 InMemoryHashAggregationBuilder (com.facebook.presto.operator.aggregation.builder.InMemoryHashAggregationBuilder)1