use of org.apache.nifi.schema.access.SchemaAccessWriter in project nifi by apache.
the class SchemaRegistryRecordSetWriter method getRequiredSchemaFields.
protected Set<SchemaField> getRequiredSchemaFields(final ValidationContext validationContext) {
final String writeStrategyValue = validationContext.getProperty(getSchemaWriteStrategyDescriptor()).getValue();
final SchemaAccessWriter writer = getSchemaWriteStrategy(writeStrategyValue);
if (writer == null) {
return EnumSet.noneOf(SchemaField.class);
}
final Set<SchemaField> requiredFields = writer.getRequiredSchemaFields();
return requiredFields;
}
Aggregations