public class CommaSeparatedRecordReader extends AbstractControllerService implements RecordReaderFactory
| Constructor and Description |
|---|
CommaSeparatedRecordReader() |
CommaSeparatedRecordReader(int failAfterN) |
| Modifier and Type | Method and Description |
|---|---|
RecordReader |
createRecordReader(java.util.Map<java.lang.String,java.lang.String> variables,
java.io.InputStream in,
ComponentLog logger)
Create a RecordReader instance to read records from specified InputStream.
|
void |
failAfter(int failAfterN) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateRecordReaderinitializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic CommaSeparatedRecordReader()
public CommaSeparatedRecordReader(int failAfterN)
public void failAfter(int failAfterN)
public RecordReader createRecordReader(java.util.Map<java.lang.String,java.lang.String> variables, java.io.InputStream in, ComponentLog logger) throws java.io.IOException, SchemaNotFoundException
RecordReaderFactorycreateRecordReader in interface RecordReaderFactoryvariables - A map contains variables which is used to resolve Record Schema via Expression Language dynamically.
This can be null or empty.in - InputStream containing Records. This can be null or empty stream.logger - A logger bind to a componentjava.io.IOExceptionSchemaNotFoundException