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