Class CommaSeparatedRecordReader
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.record.CommaSeparatedRecordReader
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,RecordReaderFactory
public class CommaSeparatedRecordReader
extends AbstractControllerService
implements RecordReaderFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRecordReader(Map<String, String> variables, InputStream in, long inputLength, ComponentLog logger) voidfailAfter(int failAfterN) voidsetUseNullForEmptyString(boolean useNullForEmptyString) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migratePropertiesMethods inherited from interface org.apache.nifi.serialization.RecordReaderFactory
createRecordReader
-
Field Details
-
failAfterN
private int failAfterN -
recordCount
private int recordCount -
useNullForEmptyString
private boolean useNullForEmptyString
-
-
Constructor Details
-
CommaSeparatedRecordReader
public CommaSeparatedRecordReader() -
CommaSeparatedRecordReader
public CommaSeparatedRecordReader(int failAfterN)
-
-
Method Details
-
failAfter
public void failAfter(int failAfterN) -
setUseNullForEmptyString
public void setUseNullForEmptyString(boolean useNullForEmptyString) -
createRecordReader
public RecordReader createRecordReader(Map<String, String> variables, InputStream in, long inputLength, ComponentLog logger) throws IOException, SchemaNotFoundException- Specified by:
createRecordReaderin interfaceRecordReaderFactory- Throws:
IOExceptionSchemaNotFoundException
-