use of com.facebook.presto.orc.metadata.statistics.ShortDecimalStatisticsBuilder in project urban-eureka by errir503.
the class DecimalColumnWriter method finishRowGroup.
@Override
public Map<Integer, ColumnStatistics> finishRowGroup() {
checkState(!closed);
ColumnStatistics statistics;
if (type.isShort()) {
statistics = shortDecimalStatisticsBuilder.buildColumnStatistics();
shortDecimalStatisticsBuilder = new ShortDecimalStatisticsBuilder(type.getScale());
} else {
statistics = longDecimalStatisticsBuilder.buildColumnStatistics();
longDecimalStatisticsBuilder = new LongDecimalStatisticsBuilder();
}
rowGroupColumnStatistics.add(statistics);
columnStatisticsRetainedSizeInBytes += statistics.getRetainedSizeInBytes();
return ImmutableMap.of(column, statistics);
}
use of com.facebook.presto.orc.metadata.statistics.ShortDecimalStatisticsBuilder in project urban-eureka by errir503.
the class DecimalColumnWriter method reset.
@Override
public void reset() {
closed = false;
dataStream.reset();
scaleStream.reset();
presentStream.reset();
rowGroupColumnStatistics.clear();
columnStatisticsRetainedSizeInBytes = 0;
shortDecimalStatisticsBuilder = new ShortDecimalStatisticsBuilder(this.type.getScale());
longDecimalStatisticsBuilder = new LongDecimalStatisticsBuilder();
}
use of com.facebook.presto.orc.metadata.statistics.ShortDecimalStatisticsBuilder in project presto by prestodb.
the class DecimalColumnWriter method reset.
@Override
public void reset() {
closed = false;
dataStream.reset();
scaleStream.reset();
presentStream.reset();
rowGroupColumnStatistics.clear();
columnStatisticsRetainedSizeInBytes = 0;
shortDecimalStatisticsBuilder = new ShortDecimalStatisticsBuilder(this.type.getScale());
longDecimalStatisticsBuilder = new LongDecimalStatisticsBuilder();
}
use of com.facebook.presto.orc.metadata.statistics.ShortDecimalStatisticsBuilder in project presto by prestodb.
the class DecimalColumnWriter method finishRowGroup.
@Override
public Map<Integer, ColumnStatistics> finishRowGroup() {
checkState(!closed);
ColumnStatistics statistics;
if (type.isShort()) {
statistics = shortDecimalStatisticsBuilder.buildColumnStatistics();
shortDecimalStatisticsBuilder = new ShortDecimalStatisticsBuilder(type.getScale());
} else {
statistics = longDecimalStatisticsBuilder.buildColumnStatistics();
longDecimalStatisticsBuilder = new LongDecimalStatisticsBuilder();
}
rowGroupColumnStatistics.add(statistics);
columnStatisticsRetainedSizeInBytes += statistics.getRetainedSizeInBytes();
return ImmutableMap.of(column, statistics);
}
Aggregations