public interface SchemaRegistry extends ControllerService
ControllerService strategy to expose internal and/or
integrate with external Schema Registry| Modifier and Type | Method and Description |
|---|---|
Set<SchemaField> |
getSuppliedSchemaFields() |
RecordSchema |
retrieveSchema(long schemaId,
int version)
Retrieves the schema with the given ID and version.
|
RecordSchema |
retrieveSchema(String schemaName)
Retrieves and returns the RecordSchema based on the provided name of the schema available in Schema Registry.
|
String |
retrieveSchemaText(long schemaId,
int version)
Retrieves the textual representation of the schema with the given ID and version
|
String |
retrieveSchemaText(String schemaName)
Retrieves and returns the textual representation of the schema based on
the provided name of the schema available in Schema Registry.
|
initializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateString retrieveSchemaText(String schemaName) throws IOException, SchemaNotFoundException
IOException - if unable to communicate with the backing storeSchemaNotFoundException - if unable to find the schema with the given nameString retrieveSchemaText(long schemaId, int version) throws IOException, SchemaNotFoundException
schemaId - the unique identifier for the desired schemaversion - the version of the desired schemaIOException - if unable to communicate with the backing storeSchemaNotFoundException - if unable to find the schema with the given id and versionRecordSchema retrieveSchema(String schemaName) throws IOException, SchemaNotFoundException
RecordSchema.getIdentifier().getName()
will always return an Optional that is not empty.null if no schema can be found with the given name.SchemaNotFoundException - if unable to find the schema with the given nameIOExceptionRecordSchema retrieveSchema(long schemaId, int version) throws IOException, SchemaNotFoundException
RecordSchema.getIdentifier().getIdentifier()
will always return an Optional that is not empty, as will a call to
RecordSchema.getIdentifier().getVersion().schemaId - the unique identifier for the desired schemaversion - the version of the desired schemanull if no schema
can be found with the given ID and versionIOException - if unable to communicate with the backing storeSchemaNotFoundException - if unable to find the schema with the given id and versionSet<SchemaField> getSuppliedSchemaFields()
retrieveSchema(String) and retrieveSchema(long, int)Copyright © 2018 Apache NiFi Project. All rights reserved.