public static Statistics convertDateStatIfNecessary(Statistics stat, ParquetReaderUtility.DateCorruptionStatus containsCorruptDates) { IntStatistics dateStat = (IntStatistics) stat; LongStatistics dateMLS = new LongStatistics(); boolean isDateCorrect = containsCorruptDates == ParquetReaderUtility.DateCorruptionStatus.META_SHOWS_NO_CORRUPTION; // Only do conversion when stat is NOT empty. if (!dateStat.isEmpty()) { dateMLS.setMinMax( convertToDrillDateValue(dateStat.getMin(), isDateCorrect), convertToDrillDateValue(dateStat.getMax(), isDateCorrect)); dateMLS.setNumNulls(dateStat.getNumNulls()); } return dateMLS; }
return Domain.create(ValueSet.all(type), hasNullValue); parquetIntegerStatistics = new ParquetIntegerStatistics((long) intStatistics.getMin(), (long) intStatistics.getMax()); return Domain.create(ValueSet.all(type), hasNullValue); ParquetIntegerStatistics parquetIntegerStatistics = new ParquetIntegerStatistics((long) intStatistics.getMin(), (long) intStatistics.getMax()); return createDomain(type, hasNullValue, parquetIntegerStatistics);
return Domain.create(ValueSet.all(type), hasNullValue); parquetIntegerStatistics = new ParquetIntegerStatistics((long) intStatistics.getMin(), (long) intStatistics.getMax()); return Domain.create(ValueSet.all(type), hasNullValue); ParquetIntegerStatistics parquetIntegerStatistics = new ParquetIntegerStatistics((long) intStatistics.getMin(), (long) intStatistics.getMax()); return createDomain(type, hasNullValue, parquetIntegerStatistics);
minHolder = ValueHolderHelper.getIntHolder(((IntStatistics)input).getMin()); maxHolder = ValueHolderHelper.getIntHolder(((IntStatistics)input).getMax()); break;