public class CSVHeaderSchemaStrategy extends Object implements SchemaAccessStrategy
Modifier and Type | Field and Description |
---|---|
private ConfigurationContext |
context |
private static Set<SchemaField> |
schemaFields |
Constructor and Description |
---|
CSVHeaderSchemaStrategy(ConfigurationContext context) |
CSVHeaderSchemaStrategy(ValidationContext context) |
Modifier and Type | Method and Description |
---|---|
RecordSchema |
getSchema(FlowFile flowFile,
InputStream contentStream) |
Set<SchemaField> |
getSuppliedSchemaFields() |
private static final Set<SchemaField> schemaFields
private final ConfigurationContext context
public CSVHeaderSchemaStrategy(ConfigurationContext context)
public CSVHeaderSchemaStrategy(ValidationContext context)
public RecordSchema getSchema(FlowFile flowFile, InputStream contentStream) throws SchemaNotFoundException
getSchema
in interface SchemaAccessStrategy
SchemaNotFoundException
public Set<SchemaField> getSuppliedSchemaFields()
getSuppliedSchemaFields
in interface SchemaAccessStrategy
Copyright © 2017 Apache NiFi Project. All rights reserved.