public class SchemaRegistryCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SchemaRegistryCache.Compatibility |
Modifier and Type | Field and Description |
---|---|
static int |
LATEST_VERSION |
Constructor and Description |
---|
SchemaRegistryCache(java.lang.String[] registryServerURLs) |
SchemaRegistryCache(java.lang.String[] registryServerURLs,
java.lang.String trustType,
java.lang.String trustFile,
java.lang.String trustString,
java.lang.String userName,
java.lang.String userPassword) |
Modifier and Type | Method and Description |
---|---|
void |
deleteSubject(java.lang.String subject) |
org.apache.avro.Schema |
getSchema(int id) |
org.apache.avro.Schema |
getSchema(java.lang.String hash) |
org.apache.avro.Schema |
getSchema(java.lang.String subject,
int version) |
java.lang.String |
getSchemaHash(org.apache.avro.Schema schema) |
java.lang.String |
getSchemaHash(org.apache.avro.Schema schema,
java.util.List<SchemaReference> references) |
int |
getSchemaID(java.lang.String subject,
int version) |
int |
getSchemaID(java.lang.String subject,
org.apache.avro.Schema schema) |
int |
putSchema(java.lang.String subject,
org.apache.avro.Schema schema) |
int |
putSchema(java.lang.String subject,
org.apache.avro.Schema schema,
java.util.List<SchemaReference> references) |
int |
putSchema(java.lang.String subject,
java.lang.String schema) |
int |
putSchema(java.lang.String subject,
java.lang.String schema,
java.util.List<SchemaReference> references) |
public static final int LATEST_VERSION
public SchemaRegistryCache(java.lang.String[] registryServerURLs)
public SchemaRegistryCache(java.lang.String[] registryServerURLs, java.lang.String trustType, java.lang.String trustFile, java.lang.String trustString, java.lang.String userName, java.lang.String userPassword)
public org.apache.avro.Schema getSchema(int id) throws java.io.IOException
java.io.IOException
public void deleteSubject(java.lang.String subject) throws java.io.IOException
java.io.IOException
public org.apache.avro.Schema getSchema(java.lang.String subject, int version) throws java.io.IOException
java.io.IOException
public int getSchemaID(java.lang.String subject, int version) throws java.io.IOException
java.io.IOException
public int putSchema(java.lang.String subject, java.lang.String schema) throws java.io.IOException
java.io.IOException
public int putSchema(java.lang.String subject, java.lang.String schema, java.util.List<SchemaReference> references) throws java.io.IOException
java.io.IOException
public int putSchema(java.lang.String subject, org.apache.avro.Schema schema) throws java.io.IOException
java.io.IOException
public int putSchema(java.lang.String subject, org.apache.avro.Schema schema, java.util.List<SchemaReference> references) throws java.io.IOException
java.io.IOException
public int getSchemaID(java.lang.String subject, org.apache.avro.Schema schema) throws java.io.IOException
java.io.IOException
public java.lang.String getSchemaHash(org.apache.avro.Schema schema, java.util.List<SchemaReference> references) throws java.io.IOException
java.io.IOException
public java.lang.String getSchemaHash(org.apache.avro.Schema schema) throws java.io.IOException
java.io.IOException
public org.apache.avro.Schema getSchema(java.lang.String hash) throws java.io.IOException
java.io.IOException