public abstract class SchemaRegistryService extends AbstractControllerService
Modifier and Type | Field and Description |
---|---|
private ConfigurationContext |
configurationContext |
private static InputStream |
EMPTY_INPUT_STREAM |
private SchemaAccessStrategy |
schemaAccessStrategy |
private List<AllowableValue> |
strategyList |
Constructor and Description |
---|
SchemaRegistryService() |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getProperty, getStateManager, init, initialize, isEnabled
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 static InputStream EMPTY_INPUT_STREAM
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 final RecordSchema getSchema(Map<String,String> variables, InputStream contentStream, RecordSchema readSchema) throws SchemaNotFoundException, IOException
SchemaNotFoundException
IOException
public RecordSchema getSchema(Map<String,String> variables, RecordSchema readSchema) 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 strategy, SchemaRegistry schemaRegistry, ConfigurationContext context)
protected SchemaAccessStrategy getSchemaAccessStrategy(String allowableValue, SchemaRegistry schemaRegistry, ValidationContext context)
Copyright © 2018 Apache NiFi Project. All rights reserved.