public class FlatPreprocessor extends Preprocessor
Preprocessor
implementations for flat stream formats
(i.e. CSV, delimited, and fixed length).propertyRoot, stream
Constructor and Description |
---|
FlatPreprocessor(StreamConfig stream)
Constructs a new FlatPreprocessor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalizeRecord(RecordConfig record)
Finalizes a record configuration after its children have been processed.
|
protected void |
finalizeSegment(SegmentConfig segment)
Finalizes a segment configuration after its children have been processed.
|
protected int |
getSize(FieldConfig field)
Returns the size of a field.
|
protected void |
handleField(FieldConfig field)
Processes a field configuration.
|
protected void |
initializeRecord(RecordConfig record)
Initializes a record configuration before its children have been processed.
|
protected void |
initializeSegment(SegmentConfig segment)
Initializes a segment configuration before its children have been processed.
|
protected boolean |
isFixedLength()
Returns whether the stream format is fixed length.
|
finalizeGroup, finalizeStream, handleConstant, initializeGroup, initializeStream, validateRecordIdentifyingCriteria
getParent, handleComponent, process
public FlatPreprocessor(StreamConfig stream)
stream
- protected void initializeRecord(RecordConfig record)
Preprocessor
initializeRecord
in class Preprocessor
record
- the record configuration to processprotected void finalizeRecord(RecordConfig record)
Preprocessor
finalizeRecord
in class Preprocessor
record
- the record configuration to processprotected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurationException
Preprocessor
initializeSegment
in class Preprocessor
segment
- the segment configuration to processBeanIOConfigurationException
protected void finalizeSegment(SegmentConfig segment)
Preprocessor
finalizeSegment
in class Preprocessor
segment
- the segment configuration to processprotected void handleField(FieldConfig field)
Preprocessor
handleField
in class Preprocessor
field
- the field configuration to processprotected int getSize(FieldConfig field)
field
- the field to sizeprotected boolean isFixedLength()