Class FlatPreprocessor

    • Constructor Detail

      • FlatPreprocessor

        public FlatPreprocessor​(StreamConfig stream)
        Constructs a new FlatPreprocessor.
        Parameters:
        stream -
    • Method Detail

      • initializeRecord

        protected void initializeRecord​(RecordConfig record)
        Description copied from class: Preprocessor
        Initializes a record configuration before its children have been processed.
        Overrides:
        initializeRecord in class Preprocessor
        Parameters:
        record - the record configuration to process
      • finalizeRecord

        protected void finalizeRecord​(RecordConfig record)
        Description copied from class: Preprocessor
        Finalizes a record configuration after its children have been processed.
        Overrides:
        finalizeRecord in class Preprocessor
        Parameters:
        record - the record configuration to process
      • finalizeSegment

        protected void finalizeSegment​(SegmentConfig segment)
        Description copied from class: Preprocessor
        Finalizes a segment configuration after its children have been processed.
        Overrides:
        finalizeSegment in class Preprocessor
        Parameters:
        segment - the segment configuration to process
      • handleField

        protected void handleField​(FieldConfig field)
        Description copied from class: Preprocessor
        Processes a field configuration.
        Overrides:
        handleField in class Preprocessor
        Parameters:
        field - the field configuration to process
      • getSize

        protected int getSize​(FieldConfig field)
        Returns the size of a field.
        Parameters:
        field - the field to size
        Returns:
        the field size
      • isFixedLength

        protected boolean isFixedLength()
        Returns whether the stream format is fixed length.
        Returns:
        true if fixed length, false otherwise