Class MockSchemaRegistry
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.record.MockSchemaRegistry
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,SchemaRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap<Tuple<Long, Integer>, RecordSchema> private final ConcurrentMap<String, RecordSchema> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchema(String name, RecordSchema schema) retrieveSchema(SchemaIdentifier schemaIdentifier) private RecordSchemaretrieveSchemaByIdAndVersion(SchemaIdentifier schemaIdentifier) (package private) RecordSchemaretrieveSchemaByName(SchemaIdentifier schemaIdentifier) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Field Details
-
schemaNameMap
-
schemaIdVersionMap
-
-
Constructor Details
-
MockSchemaRegistry
public MockSchemaRegistry()
-
-
Method Details
-
addSchema
-
retrieveSchemaByName
RecordSchema retrieveSchemaByName(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException - Throws:
IOExceptionSchemaNotFoundException
-
retrieveSchemaByIdAndVersion
private RecordSchema retrieveSchemaByIdAndVersion(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException - Throws:
IOExceptionSchemaNotFoundException
-
retrieveSchema
public RecordSchema retrieveSchema(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException - Specified by:
retrieveSchemain interfaceSchemaRegistry- Throws:
IOExceptionSchemaNotFoundException
-
getSuppliedSchemaFields
- Specified by:
getSuppliedSchemaFieldsin interfaceSchemaRegistry
-