private static double getMinValue(String typeName, double defaultValue) {
    switch (typeName) {
    case serdeConstants.BIGINT_TYPE_NAME:
      return (double) Long.MIN_VALUE;
    case serdeConstants.INT_TYPE_NAME:
      return (double) Integer.MIN_VALUE;
    case serdeConstants.SMALLINT_TYPE_NAME:
      return (double) Short.MIN_VALUE;
    case serdeConstants.TINYINT_TYPE_NAME:
      return (double) Byte.MIN_VALUE;
    case serdeConstants.FLOAT_TYPE_NAME:
      return (double) Float.MIN_VALUE;
    default:
      return defaultValue;
    }
  }
ETypeConverter is an easy way to set the converter for the right type.
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/convert/ETypeConverter.java