code: public static JsonElementConverter getConverter(JsonSchema schema, boolean repeated) {
  
      InputType fieldType = schema.getInputType();
      switch (fieldType) {
        case INT:
          return new IntConverter(schema, repeated);
  
        case LONG:
          return new LongConverter(schema, repeated);
  
        case FLOAT:
          return new FloatConverter(schema, repeated);
  
        case DOUBLE:
          return new DoubleConverter(schema, repeated);
  
        case BOOLEAN:
          return new BooleanConverter(schema, repeated);
  
        case STRING:
          return new StringConverter(schema, repeated);
  
        case ARRAY:
          return new ArrayConverter(schema);
  
        case ENUM:
          return new EnumConverter(schema);
  
        case RECORD:
          return new RecordConverter(schema);
  
        case MAP:
          return new MapConverter(schema);
  
        case DATE:
        case TIMESTAMP:
          return new StringConverter(schema, repeated);
  
        default:
          throw new UnsupportedOperationException(fieldType + " is unsupported");
      }
    }
docs: Use to create a converter for a single field from a parquetSchema.
  
  @param schema
  @param repeated - Is the {@link Type} repeated in the parent {@link Group}
  @return