@Test void copyRecord() { final Schema customSchema = factory .newSchemaBuilder(baseSchema) .withEntry(factory.newEntryBuilder().withName("custom").withType(STRING).build()) .build(); final Record baseRecord = factory .newRecordBuilder(baseSchema) .withString("name", "Test") .withInt("age", 33) .withRecord("address", factory.newRecordBuilder(address).withString("street", "here").withInt("number", 1).build()) .build(); final Record output = factory.newRecordBuilder(customSchema, baseRecord).withString("custom", "added").build(); assertEquals( "AvroRecord{delegate={\"name\": \"Test\", \"age\": 33, \"address\": {\"street\": \"here\", \"number\": 1}, \"custom\": \"added\"}}", output.toString()); }
@Override public Record build() { return new AvroRecord(super.build()); }
AvroRecordBuilder extends RecordImpl.BuilderImpl { @Override public Record build() { return new AvroRecord(super.build()); } }
AvroRecordBuilder extends RecordImpl.BuilderImpl { @Override public Record build() { return new AvroRecord(super.build()); } AvroRecordBuilder();  AvroRecordBuilder(final Schema providedSchema); }
AvroRecordBuilder extends RecordImpl.BuilderImpl { @Override public Record build() { return new AvroRecord(super.build()); } AvroRecordBuilder();  AvroRecordBuilder(final Schema providedSchema); @Override Record build(); }
AvroRecordBuilder extends RecordImpl.BuilderImpl { @Override public Record build() { return new AvroRecord(super.build()); } AvroRecordBuilder();  AvroRecordBuilder(final Schema providedSchema); @Override Record build();  }