private static <T extends Comparable<T>> Domain createDomain(Type type, boolean hasNullValue, RangeStatistics<T> rangeStatistics) { return createDomain(type, hasNullValue, rangeStatistics, value -> value); }
private static <T extends Comparable<T>> Domain createDomain(Type type, boolean hasNullValue, RangeStatistics<T> rangeStatistics) { return createDomain(type, hasNullValue, rangeStatistics, value -> value); }
return createDomain(type, hasNullValue, columnStatistics.getDecimalStatistics(), value -> rescale(value, (DecimalType) type).unscaledValue().longValue()); return createDomain(type, hasNullValue, columnStatistics.getDecimalStatistics(), value -> encodeUnscaledValue(rescale(value, (DecimalType) type).unscaledValue())); return createDomain(type, hasNullValue, columnStatistics.getStringStatistics(), value -> truncateToLengthAndTrimSpaces(value, type)); return createDomain(type, hasNullValue, columnStatistics.getStringStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDateStatistics(), value -> (long) value); return createDomain(type, hasNullValue, columnStatistics.getIntegerStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDoubleStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDoubleStatistics(), value -> (long) floatToRawIntBits(value.floatValue()));
return createDomain(type, hasNullValue, columnStatistics.getDecimalStatistics(), value -> rescale(value, (DecimalType) type).unscaledValue().longValue()); return createDomain(type, hasNullValue, columnStatistics.getDecimalStatistics(), value -> encodeUnscaledValue(rescale(value, (DecimalType) type).unscaledValue())); return createDomain(type, hasNullValue, columnStatistics.getStringStatistics(), value -> truncateToLengthAndTrimSpaces(value, type)); return createDomain(type, hasNullValue, columnStatistics.getStringStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDateStatistics(), value -> (long) value); return createDomain(type, hasNullValue, columnStatistics.getIntegerStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDoubleStatistics()); return createDomain(type, hasNullValue, columnStatistics.getDoubleStatistics(), value -> (long) floatToRawIntBits(value.floatValue()));