private static DoubleStatistics doubleColumnStats(double minimum, double maximum) { DoubleStatistics statistics = new DoubleStatistics(); statistics.setMinMax(minimum, maximum); return statistics; }
private static DoubleStatistics doubleColumnStats(double minimum, double maximum) { DoubleStatistics statistics = new DoubleStatistics(); statistics.setMinMax(minimum, maximum); return statistics; }
private static DoubleStatistics doubleColumnStats(double minimum, double maximum) { DoubleStatistics statistics = new DoubleStatistics(); statistics.setMinMax(minimum, maximum); return statistics; }
/** * Returns the typed statistics object based on the passed type parameter * @param type PrimitiveTypeName type of the column * @return instance of a typed statistics class */ public static Statistics getStatsBasedOnType(PrimitiveTypeName type) { switch(type) { case INT32: return new IntStatistics(); case INT64: return new LongStatistics(); case FLOAT: return new FloatStatistics(); case DOUBLE: return new DoubleStatistics(); case BOOLEAN: return new BooleanStatistics(); case BINARY: return new BinaryStatistics(); case INT96: return new BinaryStatistics(); case FIXED_LEN_BYTE_ARRAY: return new BinaryStatistics(); default: throw new UnknownColumnTypeException(type); } }