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(Map<String,String> variables,
InputStream contentStream,
RecordSchema readSchema) |
Set<SchemaField> |
getSuppliedSchemaFields() |
private static final Set<SchemaField> schemaFields
private final ConfigurationContext context
public CSVHeaderSchemaStrategy(ConfigurationContext context)
public CSVHeaderSchemaStrategy(ValidationContext context)
public RecordSchema getSchema(Map<String,String> variables, InputStream contentStream, RecordSchema readSchema) throws SchemaNotFoundException
getSchema
in interface SchemaAccessStrategy
SchemaNotFoundException
public Set<SchemaField> getSuppliedSchemaFields()
getSuppliedSchemaFields
in interface SchemaAccessStrategy
Copyright © 2018 Apache NiFi Project. All rights reserved.