parquet-hadoop/src/main/java/org/apache/parquet/format/converter/ParquetMetadataConverter.java
Type getType(PrimitiveTypeName type) {
    switch (type) {
      case INT64:
        return Type.INT64;
      case INT32:
        return Type.INT32;
      case BOOLEAN:
        return Type.BOOLEAN;
      case BINARY:
        return Type.BYTE_ARRAY;
      case FLOAT:
        return Type.FLOAT;
      case DOUBLE:
        return Type.DOUBLE;
      case INT96:
        return Type.INT96;
      case FIXED_LEN_BYTE_ARRAY:
        return Type.FIXED_LEN_BYTE_ARRAY;
      default:
        throw new RuntimeException("Unknown primitive type " + type);
    }
  }
Type getType(PrimitiveTypeName type) {
    switch (type) {
      case INT64:
        return Type.INT64;
      case INT32:
        return Type.INT32;
      case BOOLEAN:
        return Type.BOOLEAN;
      case BINARY:
        return Type.BYTE_ARRAY;
      case FLOAT:
        return Type.FLOAT;
      case DOUBLE:
        return Type.DOUBLE;
      case INT96:
        return Type.INT96;
      case FIXED_LEN_BYTE_ARRAY:
        return Type.FIXED_LEN_BYTE_ARRAY;
      default:
        throw new RuntimeException("Unknown primitive type " + type);
    }
  }
Type getType ( PrimitiveTypeName type ) { switch ( type ) { case INT64 : return Type . INT64 ; case INT32 : return Type . INT32 ; case BOOLEAN : return Type . BOOLEAN ; case BINARY : return Type . BYTE_ARRAY ; case FLOAT : return Type . FLOAT ; case DOUBLE : return Type . DOUBLE ; case INT96 : return Type . INT96 ; case FIXED_LEN_BYTE_ARRAY : return Type . FIXED_LEN_BYTE_ARRAY ; default : throw new RuntimeException ( "Unknown primitive type " + type ) ; } }
Visible for testing
Visible for testing