parquet-column/src/main/java/org/apache/parquet/column/statistics/Statistics.java
public static Statistics<?> createStats(Type type) {
    PrimitiveType primitive = type.asPrimitiveType();
    switch (primitive.getPrimitiveTypeName()) {
      case INT32:
        return new IntStatistics(primitive);
      case INT64:
        return new LongStatistics(primitive);
      case FLOAT:
        return new FloatStatistics(primitive);
      case DOUBLE:
        return new DoubleStatistics(primitive);
      case BOOLEAN:
        return new BooleanStatistics(primitive);
      case BINARY:
      case INT96:
      case FIXED_LEN_BYTE_ARRAY:
        return new BinaryStatistics(primitive);
      default:
        throw new UnknownColumnTypeException(primitive.getPrimitiveTypeName());
    }
  }
public static Statistics<?> createStats(Type type) {
    PrimitiveType primitive = type.asPrimitiveType();
    switch (primitive.getPrimitiveTypeName()) {
      case INT32:
        return new IntStatistics(primitive);
      case INT64:
        return new LongStatistics(primitive);
      case FLOAT:
        return new FloatStatistics(primitive);
      case DOUBLE:
        return new DoubleStatistics(primitive);
      case BOOLEAN:
        return new BooleanStatistics(primitive);
      case BINARY:
      case INT96:
      case FIXED_LEN_BYTE_ARRAY:
        return new BinaryStatistics(primitive);
      default:
        throw new UnknownColumnTypeException(primitive.getPrimitiveTypeName());
    }
  }
public static Statistics < ? > createStats ( Type type ) { PrimitiveType primitive = type . asPrimitiveType ( ) ; switch ( primitive . getPrimitiveTypeName ( ) ) { case INT32 : return new IntStatistics ( primitive ) ; case INT64 : return new LongStatistics ( primitive ) ; case FLOAT : return new FloatStatistics ( primitive ) ; case DOUBLE : return new DoubleStatistics ( primitive ) ; case BOOLEAN : return new BooleanStatistics ( primitive ) ; case BINARY : case INT96 : case FIXED_LEN_BYTE_ARRAY : return new BinaryStatistics ( primitive ) ; default : throw new UnknownColumnTypeException ( primitive . getPrimitiveTypeName ( ) ) ; } }
Creates an empty {@code Statistics} instance for the specified type to be
used for reading/writing the new min/max statistics used in the V2 format.

@param type
type of the column
@return instance of a typed statistics class
Creates an empty { @code Statistics } instance for the specified type to be used for reading / writing the new min / max statistics used in the V2 format .