parquet-cli/src/main/java/org/apache/parquet/cli/util/Schemas.java
public static Schema.Field copy(Schema.Field field) {
    return new Schema.Field(
        field.name(), field.schema(), field.doc(), field.defaultValue());
  }
public static Schema.Field copy(Schema.Field field) {
    return new Schema.Field(
        field.name(), field.schema(), field.doc(), field.defaultValue());
  }
public static Schema . Field copy ( Schema . Field field ) { return new Schema . Field ( field . name ( ) , field . schema ( ) , field . doc ( ) , field . defaultValue ( ) ) ; }
Creates a new field with the same name, schema, doc, and default value as
the incoming schema.
<p>
Fields cannot be used in more than one record (not Immutable?).

@param field an Avro schema field
@return a copy of the field
Creates a new field with the same name schema doc and default value as the incoming schema . <p > Fields cannot be used in more than one record ( not Immutable? ) .