@Tags(value={"schema","registry","avro","json","csv"}) @CapabilityDescription(value="Provides a service for registering and accessing schemas. You can register a schema as a dynamic property where \'name\' represents the schema name and \'value\' represents the textual representation of the actual schema following the syntax and semantics of Avro\'s Schema format.") @DynamicProperty(name="Schema name", value="Schema Content", description="Adds a named schema using the JSON string representation of an Avro schema", expressionLanguageScope=NONE) public class AvroSchemaRegistry extends AbstractControllerService implements SchemaRegistry
| Modifier and Type | Field and Description |
|---|---|
private List<PropertyDescriptor> |
propertyDescriptors |
private ConcurrentMap<String,RecordSchema> |
recordSchemas |
private static Set<SchemaField> |
schemaFields |
(package private) static PropertyDescriptor |
VALIDATE_FIELD_NAMES |
| Constructor and Description |
|---|
AvroSchemaRegistry() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
Set<SchemaField> |
getSuppliedSchemaFields() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ControllerServiceInitializationContext config) |
void |
onPropertyModified(PropertyDescriptor descriptor,
String oldValue,
String newValue) |
RecordSchema |
retrieveSchema(SchemaIdentifier schemaIdentifier) |
private RecordSchema |
retrieveSchemaByName(String schemaName) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitretrieveSchema, retrieveSchema, retrieveSchemaText, retrieveSchemaTextinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, validateprivate static final Set<SchemaField> schemaFields
private final ConcurrentMap<String,RecordSchema> recordSchemas
static final PropertyDescriptor VALIDATE_FIELD_NAMES
private List<PropertyDescriptor> propertyDescriptors
protected void init(ControllerServiceInitializationContext config) throws InitializationException
init in class AbstractControllerServiceInitializationExceptionpublic void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue)
onPropertyModified in interface ConfigurableComponentonPropertyModified in class AbstractConfigurableComponentprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentprivate RecordSchema retrieveSchemaByName(String schemaName) throws SchemaNotFoundException
SchemaNotFoundExceptionpublic RecordSchema retrieveSchema(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException
retrieveSchema in interface SchemaRegistryIOExceptionSchemaNotFoundExceptionprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponentpublic Set<SchemaField> getSuppliedSchemaFields()
getSuppliedSchemaFields in interface SchemaRegistryCopyright © 2024 Apache NiFi Project. All rights reserved.