Search in sources :

Example 1 with DecimalColumnStatistics

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

the class TestTupleDomainOrcPredicate method decimalColumnStats.

private static ColumnStatistics decimalColumnStats(Long numberOfValues, String minimum, String maximum) {
    BigDecimal minimumDecimal = minimum == null ? null : new BigDecimal(minimum);
    BigDecimal maximumDecimal = maximum == null ? null : new BigDecimal(maximum);
    return new DecimalColumnStatistics(numberOfValues, null, new DecimalStatistics(minimumDecimal, maximumDecimal, SHORT_DECIMAL_VALUE_BYTES));
}
Also used : DecimalStatistics(com.facebook.presto.orc.metadata.statistics.DecimalStatistics) DecimalColumnStatistics(com.facebook.presto.orc.metadata.statistics.DecimalColumnStatistics) BigDecimal(java.math.BigDecimal)

Aggregations

DecimalColumnStatistics (com.facebook.presto.orc.metadata.statistics.DecimalColumnStatistics)1 DecimalStatistics (com.facebook.presto.orc.metadata.statistics.DecimalStatistics)1 BigDecimal (java.math.BigDecimal)1