Search in sources :

Example 1 with DoubleStatisticsBuilder

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

the class DoubleColumnWriter method reset.

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

Example 2 with DoubleStatisticsBuilder

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

the class DoubleColumnWriter method finishRowGroup.

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

Example 3 with DoubleStatisticsBuilder

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

the class FloatColumnWriter method finishRowGroup.

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

Example 4 with DoubleStatisticsBuilder

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

the class FloatColumnWriter method reset.

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

Aggregations

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