parquet-column/src/main/java/org/apache/parquet/column/statistics/Statistics.java
public static Builder getBuilderForReading(PrimitiveType type) {
    switch (type.getPrimitiveTypeName()) {
      case FLOAT:
        return new FloatBuilder(type);
      case DOUBLE:
        return new DoubleBuilder(type);
      default:
        return new Builder(type);
    }
  }
public static Builder getBuilderForReading(PrimitiveType type) {
    switch (type.getPrimitiveTypeName()) {
      case FLOAT:
        return new FloatBuilder(type);
      case DOUBLE:
        return new DoubleBuilder(type);
      default:
        return new Builder(type);
    }
  }
Returns a builder to create new statistics object. Used to read the statistics from the parquet file.

@param type
type of the column
@return builder to create new statistics object