public class BinarySchemaRegistry extends Object
We rely on the fact that usually object has only few different schemas. For this reason we inline several of them with optional fallback to normal hash map lookup.
Constructor and Description |
---|
BinarySchemaRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addSchema(int schemaId,
BinarySchema schema)
Add schema.
|
BinarySchema |
schema(int schemaId)
Get schema for the given ID.
|
@Nullable public BinarySchema schema(int schemaId)
null
values.schemaId
- Schema ID.null
.public void addSchema(int schemaId, BinarySchema schema)
schemaId
- Schema ID.schema
- Schema.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017