Search in sources :

Example 1 with BooleanStatisticsBuilder

use of com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder in project presto by prestodb.

the class BooleanColumnWriter method reset.

@Override
public void reset() {
    closed = false;
    dataStream.reset();
    presentStream.reset();
    rowGroupColumnStatistics.clear();
    columnStatisticsRetainedSizeInBytes = 0;
    statisticsBuilder = new BooleanStatisticsBuilder();
}
Also used : BooleanStatisticsBuilder(com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder)

Example 2 with BooleanStatisticsBuilder

use of com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder in project urban-eureka by errir503.

the class BooleanColumnWriter method finishRowGroup.

@Override
public Map<Integer, ColumnStatistics> finishRowGroup() {
    checkState(!closed);
    ColumnStatistics statistics = statisticsBuilder.buildColumnStatistics();
    rowGroupColumnStatistics.add(statistics);
    columnStatisticsRetainedSizeInBytes += statistics.getRetainedSizeInBytes();
    statisticsBuilder = new BooleanStatisticsBuilder();
    return ImmutableMap.of(column, statistics);
}
Also used : ColumnStatistics(com.facebook.presto.orc.metadata.statistics.ColumnStatistics) BooleanStatisticsBuilder(com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder)

Example 3 with BooleanStatisticsBuilder

use of com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder in project urban-eureka by errir503.

the class BooleanColumnWriter method reset.

@Override
public void reset() {
    closed = false;
    dataStream.reset();
    presentStream.reset();
    rowGroupColumnStatistics.clear();
    columnStatisticsRetainedSizeInBytes = 0;
    statisticsBuilder = new BooleanStatisticsBuilder();
}
Also used : BooleanStatisticsBuilder(com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder)

Example 4 with BooleanStatisticsBuilder

use of com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder in project presto by prestodb.

the class BooleanColumnWriter method finishRowGroup.

@Override
public Map<Integer, ColumnStatistics> finishRowGroup() {
    checkState(!closed);
    ColumnStatistics statistics = statisticsBuilder.buildColumnStatistics();
    rowGroupColumnStatistics.add(statistics);
    columnStatisticsRetainedSizeInBytes += statistics.getRetainedSizeInBytes();
    statisticsBuilder = new BooleanStatisticsBuilder();
    return ImmutableMap.of(column, statistics);
}
Also used : ColumnStatistics(com.facebook.presto.orc.metadata.statistics.ColumnStatistics) BooleanStatisticsBuilder(com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder)

Aggregations

BooleanStatisticsBuilder (com.facebook.presto.orc.metadata.statistics.BooleanStatisticsBuilder)4 ColumnStatistics (com.facebook.presto.orc.metadata.statistics.ColumnStatistics)2