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();
}
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);
}
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);
}
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();
}
Aggregations