Package

za.co.absa.cobrix.cobol.reader.extractors

raw

Permalink

package raw

Visibility
  1. Public
  2. All

Type Members

  1. case class FixedBlockParameters(recordLength: Option[Int], blockLength: Option[Int], recordsPerBlock: Option[Int]) extends Product with Serializable

    Permalink
  2. class FixedBlockRawRecordExtractor extends Serializable with RawRecordExtractor

    Permalink
  3. case class RawRecordContext(startingRecordNumber: Long, inputStream: SimpleStream, headerStream: SimpleStream, copybook: Copybook, rdwDecoder: RecordHeaderDecoder, bdwDecoder: RecordHeaderDecoder, additionalInfo: String) extends Product with Serializable

    Permalink

    startingRecordNumber

    A record number the input stream is pointing to (zero-based).

    inputStream

    An input stream pointing to the beginning of a file or a record in a file. The record extractor should close the stream when the end of file is reached.

    headerStream

    A stream pointing to the beginning of the file, even if inputStream is pointing to a record in the middle. The record extractor should close the stream when it is no longer needed.

    copybook

    A copybook of the input stream.

    additionalInfo

    A string provided by a client for the raw record extractor.

  4. trait RawRecordExtractor extends Iterator[Array[Byte]]

    Permalink

    This trait represents a contract for extracting raw records from a stream of bytes.

    This trait represents a contract for extracting raw records from a stream of bytes. A raw record is an array of bytes.

    Record extractors are used for in situations where the size of records in a file is not fixed and cannot be determined neither from the copybook nor from record headers.

  5. class TextFullRecordExtractor extends Serializable with RawRecordExtractor

    Permalink

    This implementation of a record extractor for ASCII test files.

    This implementation of a record extractor for ASCII test files.

    Record extractors are used for in situations where the size of records in a file is not fixed and cannot be determined neither from the copybook nor from record headers.

    Empty lines (ones that contain only LF / CRLF) are skipped.

    The implementation is optimized for performance, so might be not obviously readable. Hopefully, comments will help anyone reading this.

  6. class TextRecordExtractor extends Serializable with RawRecordExtractor

    Permalink

    This implementation of a record extractor for ASCII test files.

    This implementation of a record extractor for ASCII test files.

    Record extractors are used for in situations where the size of records in a file is not fixed and cannot be determined neither from the copybook nor from record headers.

    Empty lines (ones that contain only LF / CRLF) are skipped.

    The implementation is optimized for performance, so might be not obviously readable. Hopefully, comments will help anyone reading this.

  7. class VarOccursRecordExtractor extends Serializable with RawRecordExtractor

    Permalink

    This implementation of a record extractor A raw record is an array of bytes.

    This implementation of a record extractor A raw record is an array of bytes.

    Record extractors are used for in situations where the size of records in a file is not fixed and cannot be determined neither from the copybook nor from record headers.

  8. class VariableBlockVariableRecordExtractor extends Serializable with RawRecordExtractor

    Permalink

Value Members

  1. object FixedBlockParameters extends Serializable

    Permalink
  2. object RawRecordExtractorFactory

    Permalink

Ungrouped