Package org.apache.nifi.csv
Class CSVHeaderSchemaStrategy
java.lang.Object
org.apache.nifi.csv.CSVHeaderSchemaStrategy
- All Implemented Interfaces:
SchemaAccessStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.nifi.context.PropertyContext
private static final Set
<SchemaField> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSchema
(Map<String, String> variables, InputStream contentStream, RecordSchema readSchema)
-
Field Details
-
schemaFields
-
context
private final org.apache.nifi.context.PropertyContext context
-
-
Constructor Details
-
CSVHeaderSchemaStrategy
public CSVHeaderSchemaStrategy(org.apache.nifi.context.PropertyContext context)
-
-
Method Details
-
getSchema
public RecordSchema getSchema(Map<String, String> variables, InputStream contentStream, RecordSchema readSchema) throws SchemaNotFoundException- Specified by:
getSchema
in interfaceSchemaAccessStrategy
- Throws:
SchemaNotFoundException
-
getSuppliedSchemaFields
- Specified by:
getSuppliedSchemaFields
in interfaceSchemaAccessStrategy
-