use of com.facebook.presto.orc.metadata.statistics.StringColumnStatistics in project presto by prestodb.
the class TestTupleDomainOrcPredicate method stringColumnStats.
private static ColumnStatistics stringColumnStats(Long numberOfValues, String minimum, String maximum) {
Slice minimumSlice = minimum == null ? null : utf8Slice(minimum);
Slice maximumSlice = maximum == null ? null : utf8Slice(maximum);
// sum and minAverageValueSizeInBytes are not used in this test; they could be arbitrary numbers
return new StringColumnStatistics(numberOfValues, null, new StringStatistics(minimumSlice, maximumSlice, 100L));
}
Aggregations