public abstract class SchemaRegistryService extends AbstractControllerService
Modifier and Type | Field and Description |
---|---|
private ConfigurationContext |
configurationContext |
private SchemaAccessStrategy |
schemaAccessStrategy |
private List<AllowableValue> |
strategyList |
Constructor and Description |
---|
SchemaRegistryService() |
abstractClearConfigContext, abstractStoreConfigContext, getControllerServiceLookup, getIdentifier, getLogger, getProperty, getStateManager, init, initialize
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
private volatile ConfigurationContext configurationContext
private volatile SchemaAccessStrategy schemaAccessStrategy
private final List<AllowableValue> strategyList
protected PropertyDescriptor getSchemaAcessStrategyDescriptor()
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected AllowableValue getDefaultSchemaAccessStrategy()
@OnEnabled public void storeSchemaAccessStrategy(ConfigurationContext context)
protected ConfigurationContext getConfigurationContext()
getConfigurationContext
in class AbstractControllerService
protected SchemaAccessStrategy getSchemaAccessStrategy()
public RecordSchema getSchema(FlowFile flowFile, InputStream contentStream) throws SchemaNotFoundException, IOException
SchemaNotFoundException
IOException
protected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate
in class AbstractConfigurableComponent
protected List<AllowableValue> getSchemaAccessStrategyValues()
protected Set<SchemaField> getSuppliedSchemaFields(ValidationContext validationContext)
protected SchemaAccessStrategy getSchemaAccessStrategy(String allowableValue, SchemaRegistry schemaRegistry, ConfigurationContext context)
protected SchemaAccessStrategy getSchemaAccessStrategy(String allowableValue, SchemaRegistry schemaRegistry, ValidationContext context)
Copyright © 2017 Apache NiFi Project. All rights reserved.