| Modifier and Type | Class and Description |
|---|---|
| public static class | SchemaStore.Cache
A map-based cache of schemas by AVRO-CRC-64 fingerprint. |
| Modifier and Type | Method and Description |
|---|---|
| public Schema | Returns: a Schema with the given fingerprint, or nullan AVRO-CRC-64 fingerprint long fingerprint)Retrieves a fingerprint by its AVRO-CRC-64 fingerprint. |
| findByFingerprint | back to summary |
|---|---|
| public Schema findByFingerprint(long fingerprint) Retrieves a fingerprint by its AVRO-CRC-64 fingerprint.
| |
This class is thread-safe.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Schema | findByFingerprint(long
an AVRO-CRC-64 fingerprint long fingerprint)Implements org. |
| schemas | back to summary |
|---|---|
| private final Map<Long, Schema> schemas | |
| Cache | back to summary |
|---|---|
| public Cache() | |
| addSchema | back to summary |
|---|---|
| public void addSchema(Schema schema) Adds a schema to this cache that can be retrieved using its AVRO-CRC-64 fingerprint. | |
| findByFingerprint | back to summary |
|---|---|
| public Schema findByFingerprint(long fingerprint) Implements org. Doc from org. Retrieves a fingerprint by its AVRO-CRC-64 fingerprint. | |