public interface RecordSchemaCacheService extends ControllerService
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_IDENTIFIER_ATTRIBUTE |
Modifier and Type | Method and Description |
---|---|
String |
cacheSchema(RecordSchema schema)
Updates the cache to include the given Record Schema and returns an identifier
for the Schema.
|
Optional<RecordSchema> |
getSchema(String schemaIdentifier)
Returns the Schema with the given identifier, if it can be found in the cache.
|
initialize
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
static final String CACHE_IDENTIFIER_ATTRIBUTE
String cacheSchema(RecordSchema schema)
getSchema(String)
methodschema
- the schema to cacheOptional<RecordSchema> getSchema(String schemaIdentifier)
cacheSchema(RecordSchema)
.schemaIdentifier
- the identifier of the schemaCopyright © 2021 Apache NiFi Project. All rights reserved.