Package org.apache.nifi.cef
Class CEFReader
- All Implemented Interfaces:
ConfigurableComponent
,ControllerService
,RecordReaderFactory
@Tags({"cef","record","reader","parser"})
@CapabilityDescription("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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final PropertyDescriptor
private boolean
(package private) static final AllowableValue
(package private) static final AllowableValue
(package private) static final PropertyDescriptor
(package private) static final AllowableValue
(package private) static final AllowableValue
private boolean
(package private) static final PropertyDescriptor
(package private) static final PropertyDescriptor
private String
private Locale
private final com.fluenda.parcefone.parser.CEFParser
(package private) static final PropertyDescriptor
private String
Fields inherited from class org.apache.nifi.serialization.SchemaRegistryService
schemaAccessStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRecordReader
(Map<String, String> variables, InputStream in, long inputLength, ComponentLog logger) protected AllowableValue
protected SchemaAccessStrategy
getSchemaAccessStrategy
(String strategy, SchemaRegistry schemaRegistry, PropertyContext context) protected List
<AllowableValue> protected List
<PropertyDescriptor> void
onEnabled
(ConfigurationContext context) Methods inherited from class org.apache.nifi.serialization.SchemaRegistryService
buildStrategyProperty, customValidate, getConfigurationContext, getSchema, getSchema, getSchemaAccessStrategy, getSchemaAccessStrategyDescriptor, getSuppliedSchemaFields, migrateProperties, storeSchemaAccessStrategy
Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled
Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
Methods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
Methods inherited from interface org.apache.nifi.serialization.RecordReaderFactory
createRecordReader
-
Field Details
-
HEADERS_ONLY
-
HEADERS_AND_EXTENSIONS
-
CUSTOM_EXTENSIONS_AS_STRINGS
-
CUSTOM_EXTENSIONS_INFERRED
-
INFERENCE_STRATEGY
-
RAW_FIELD
-
INVALID_FIELD
-
DATETIME_REPRESENTATION
-
ACCEPT_EMPTY_EXTENSIONS
-
parser
private final com.fluenda.parcefone.parser.CEFParser parser -
rawMessageField
-
invalidField
-
parcefoneLocale
-
includeCustomExtensions
private volatile boolean includeCustomExtensions -
acceptEmptyExtensions
private volatile boolean acceptEmptyExtensions
-
-
Constructor Details
-
CEFReader
public CEFReader()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptors
in classSchemaRegistryService
-
getSchemaAccessStrategyValues
- Overrides:
getSchemaAccessStrategyValues
in classSchemaRegistryService
-
getDefaultSchemaAccessStrategy
- Overrides:
getDefaultSchemaAccessStrategy
in classSchemaRegistryService
-
getSchemaAccessStrategy
protected SchemaAccessStrategy getSchemaAccessStrategy(String strategy, SchemaRegistry schemaRegistry, PropertyContext context) - Overrides:
getSchemaAccessStrategy
in classSchemaRegistryService
-
onEnabled
-
createRecordReader
public RecordReader createRecordReader(Map<String, String> variables, InputStream in, long inputLength, ComponentLog logger) throws MalformedRecordException, IOException, SchemaNotFoundException- Specified by:
createRecordReader
in interfaceRecordReaderFactory
- Throws:
MalformedRecordException
IOException
SchemaNotFoundException
-