Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Jan 31, 2025
1 parent ffb8837 commit 31ca689
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ final private class SlowGenericRecordCoder extends CustomCoder[GenericRecord] {
// Use String for 1.8 compat
private val sc = StringUtf8Coder.of()

// Reuse parsed schemas because avro uses caching
/**
* Reuse parsed schemas because GenericDatumReader caches decoders based on schema reference
* equality.
* @see
* [[org.apache.avro.generic.GenericDatumReader.getResolver]].
*/
@transient private lazy val schemaCache = new TrieMap[String, Schema]()

private val encoder = new EmptyOnDeserializationThreadLocal[BinaryEncoder]()
Expand Down

0 comments on commit 31ca689

Please sign in to comment.