Interface SchemaReferenceReader
- All Superinterfaces:
ConfigurableComponent,ControllerService
Service interface responsible for reading Schema Identifier reference information based on attributes or encoded content information
-
Method Summary
Modifier and TypeMethodDescriptiongetSchemaIdentifier(Map<String, String> variables, InputStream contentStream) Get Schema IdentifierGet supplied Record Schema Fields for validation against the set of Record Schema Fields required for writing schema informationMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Method Details
-
getSchemaIdentifier
SchemaIdentifier getSchemaIdentifier(Map<String, String> variables, InputStream contentStream) throws IOException, SchemaNotFoundExceptionGet Schema Identifier- Parameters:
variables- Map of variables for Schema Identifier resolution can be null or emptycontentStream- Stream of FlowFile content that may contain encoded Schema Identifier references- Returns:
- Schema Identifier
- Throws:
IOException- Thrown on failure to read input content streamSchemaNotFoundException- Thrown on failure to find expected Schema Identifier information
-
getSuppliedSchemaFields
Set<SchemaField> getSuppliedSchemaFields()Get supplied Record Schema Fields for validation against the set of Record Schema Fields required for writing schema information- Returns:
- Supplied Record Schema Fields
-