@Test void providedSchemaGetSchema() { final Schema schema = new AvroSchemaBuilder() .withType(Schema.Type.RECORD) .withEntry(new SchemaImpl.EntryImpl.BuilderImpl() .withName("name") .withNullable(true) .withType(Schema.Type.STRING) .build()) .build(); assertEquals(schema, new AvroRecordBuilder(schema).withString("name", "ok").build().getSchema()); }
@Override public Schema getSchema() { return schema; }
AvroRecord implements Record, AvroPropertyMapper, Unwrappable { @Override public Schema getSchema() { return schema; } }
AvroRecord implements Record, AvroPropertyMapper, Unwrappable { @Override public Schema getSchema() { return schema; } AvroRecord(final IndexedRecord record);  AvroRecord(final Record record); }
AvroRecord implements Record, AvroPropertyMapper, Unwrappable { @Override public Schema getSchema() { return schema; } AvroRecord(final IndexedRecord record);  AvroRecord(final Record record); @Override Schema getSchema(); @Override T get(final Class<T> expectedType, final String name); @Override Collection<T> getArray(final Class<T> type, final String name); @Override T unwrap(final Class<T> type); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
AvroRecord implements Record, AvroPropertyMapper, Unwrappable { @Override public Schema getSchema() { return schema; } AvroRecord(final IndexedRecord record);  AvroRecord(final Record record); @Override Schema getSchema(); @Override T get(final Class<T> expectedType, final String name); @Override Collection<T> getArray(final Class<T> type, final String name); @Override T unwrap(final Class<T> type); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }