@Tags(value={"cef","record","reader","parser"}) @CapabilityDescription(value="Parses CEF (Common Event Format) events, returning each row as a record. This reader allows for inferring a schema based on the first event in the FlowFile or providing an explicit schema for interpreting the values.") public final class CEFReader extends SchemaRegistryService implements RecordReaderFactory
Modifier and Type | Class and Description |
---|---|
private static class |
CEFReader.ValidateRawField |
Modifier and Type | Field and Description |
---|---|
(package private) static PropertyDescriptor |
ACCEPT_EMPTY_EXTENSIONS |
private boolean |
acceptEmptyExtensions |
(package private) static AllowableValue |
CUSTOM_EXTENSIONS_AS_STRINGS |
(package private) static AllowableValue |
CUSTOM_EXTENSIONS_INFERRED |
(package private) static PropertyDescriptor |
DATETIME_REPRESENTATION |
(package private) static AllowableValue |
HEADERS_AND_EXTENSIONS |
(package private) static AllowableValue |
HEADERS_ONLY |
private boolean |
includeCustomExtensions |
(package private) static PropertyDescriptor |
INFERENCE_STRATEGY |
(package private) static PropertyDescriptor |
INVALID_FIELD |
private String |
invalidField |
private Locale |
parcefoneLocale |
private com.fluenda.parcefone.parser.CEFParser |
parser |
(package private) static PropertyDescriptor |
RAW_FIELD |
private String |
rawMessageField |
private javax.validation.Validator |
validator |
schemaAccessStrategy
Constructor and Description |
---|
CEFReader() |
Modifier and Type | Method and Description |
---|---|
RecordReader |
createRecordReader(Map<String,String> variables,
InputStream in,
long inputLength,
ComponentLog logger) |
protected AllowableValue |
getDefaultSchemaAccessStrategy() |
protected SchemaAccessStrategy |
getSchemaAccessStrategy(String strategy,
SchemaRegistry schemaRegistry,
PropertyContext context) |
protected List<AllowableValue> |
getSchemaAccessStrategyValues() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onEnabled(ConfigurationContext context) |
buildStrategyProperty, customValidate, getConfigurationContext, getSchema, getSchema, getSchemaAccessStrategy, getSchemaAcessStrategyDescriptor, getSuppliedSchemaFields, storeSchemaAccessStrategy
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createRecordReader
initialize, isStateful
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
static final AllowableValue HEADERS_ONLY
static final AllowableValue HEADERS_AND_EXTENSIONS
static final AllowableValue CUSTOM_EXTENSIONS_AS_STRINGS
static final AllowableValue CUSTOM_EXTENSIONS_INFERRED
static final PropertyDescriptor INFERENCE_STRATEGY
static final PropertyDescriptor RAW_FIELD
static final PropertyDescriptor INVALID_FIELD
static final PropertyDescriptor DATETIME_REPRESENTATION
static final PropertyDescriptor ACCEPT_EMPTY_EXTENSIONS
private final javax.validation.Validator validator
private final com.fluenda.parcefone.parser.CEFParser parser
private volatile String rawMessageField
private volatile String invalidField
private volatile Locale parcefoneLocale
private volatile boolean includeCustomExtensions
private volatile boolean acceptEmptyExtensions
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class SchemaRegistryService
protected List<AllowableValue> getSchemaAccessStrategyValues()
getSchemaAccessStrategyValues
in class SchemaRegistryService
protected AllowableValue getDefaultSchemaAccessStrategy()
getDefaultSchemaAccessStrategy
in class SchemaRegistryService
protected SchemaAccessStrategy getSchemaAccessStrategy(String strategy, SchemaRegistry schemaRegistry, PropertyContext context)
getSchemaAccessStrategy
in class SchemaRegistryService
@OnEnabled public void onEnabled(ConfigurationContext context)
public RecordReader createRecordReader(Map<String,String> variables, InputStream in, long inputLength, ComponentLog logger) throws MalformedRecordException, IOException, SchemaNotFoundException
createRecordReader
in interface RecordReaderFactory
MalformedRecordException
IOException
SchemaNotFoundException
Copyright © 2024 Apache NiFi Project. All rights reserved.