public static class SchemaStore.Cache extends Object implements SchemaStore
This class is thread-safe.
SchemaStore.Cache
Constructor and Description |
---|
Cache() |
Modifier and Type | Method and Description |
---|---|
void |
addSchema(Schema schema)
Adds a schema to this cache that can be retrieved using its AVRO-CRC-64
fingerprint.
|
Schema |
findByFingerprint(long fingerprint)
Retrieves a fingerprint by its AVRO-CRC-64 fingerprint.
|
public void addSchema(Schema schema)
schema
- a Schema
public Schema findByFingerprint(long fingerprint)
SchemaStore
findByFingerprint
in interface SchemaStore
fingerprint
- an AVRO-CRC-64 fingerprint longCopyright © 2009–2022 The Apache Software Foundation. All rights reserved.