Class

za.co.absa.cobrix.cobol.reader.parameters

ReaderParameters

Related Doc: package parameters

Permalink

case class ReaderParameters(recordFormat: RecordFormat = FixedLength, isEbcdic: Boolean = true, isText: Boolean = false, ebcdicCodePage: String = "common", ebcdicCodePageClass: Option[String] = None, asciiCharset: String = "", fieldCodePage: Map[String, String] = Map.empty[String, String], isUtf16BigEndian: Boolean = true, floatingPointFormat: FloatingPointFormat = FloatingPointFormat.IBM, variableSizeOccurs: Boolean = false, recordLength: Option[Int] = None, lengthFieldExpression: Option[String] = None, isRecordSequence: Boolean = false, bdw: Option[Bdw] = None, isRdwBigEndian: Boolean = false, isRdwPartRecLength: Boolean = false, rdwAdjustment: Int = 0, isIndexGenerationNeeded: Boolean = false, inputSplitRecords: Option[Int] = None, inputSplitSizeMB: Option[Int] = None, hdfsDefaultBlockSize: Option[Int] = None, startOffset: Int = 0, endOffset: Int = 0, fileStartOffset: Int = 0, fileEndOffset: Int = 0, generateRecordId: Boolean = false, schemaPolicy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, stringTrimmingPolicy: StringTrimmingPolicy = StringTrimmingPolicy.TrimBoth, allowPartialRecords: Boolean = false, multisegment: Option[MultisegmentParameters] = None, commentPolicy: CommentPolicy = CommentPolicy(), strictSignOverpunch: Boolean = true, improvedNullDetection: Boolean = false, dropGroupFillers: Boolean = false, dropValueFillers: Boolean = true, fillerNamingPolicy: FillerNamingPolicy = FillerNamingPolicy.SequenceNumbers, nonTerminals: Seq[String] = Nil, occursMappings: Map[String, Map[String, Int]] = Map(), debugFieldsPolicy: DebugFieldsPolicy = DebugFieldsPolicy.NoDebug, recordHeaderParser: Option[String] = None, recordExtractor: Option[String] = None, rhpAdditionalInfo: Option[String] = None, reAdditionalInfo: String = "", inputFileNameColumn: String = "", extendedMetadata: Boolean = false) extends Product with Serializable

These are properties for customizing mainframe binary data reader.

recordFormat

Record format

isEbcdic

If true the input data file encoding is EBCDIC, otherwise it is ASCII

isText

If true line ending characters will be used (LF / CRLF) as the record separator

ebcdicCodePage

Specifies what code page to use for EBCDIC to ASCII/Unicode conversions

ebcdicCodePageClass

An optional custom code page conversion class provided by a user

asciiCharset

A charset for ASCII data

fieldCodePage

Specifies a mapping between a field name and the code page

isUtf16BigEndian

If true UTF-16 strings are considered big-endian.

floatingPointFormat

A format of floating-point numbers

variableSizeOccurs

If true, OCCURS DEPENDING ON data size will depend on the number of elements

recordLength

Specifies the length of the record disregarding the copybook record size. Implied the file has fixed record length.

lengthFieldExpression

A name of a field that contains record length. Optional. If not set the copybook record length will be used.

isRecordSequence

Does input files have 4 byte record length headers

bdw

Block descriptor word (if specified), for FB and VB record formats

isRdwPartRecLength

Does RDW count itself as part of record length itself

rdwAdjustment

Controls a mismatch between RDW and record length

isIndexGenerationNeeded

Is indexing input file before processing is requested

inputSplitRecords

The number of records to include in each partition. Notice mainframe records may have variable size, inputSplitMB is the recommended option

inputSplitSizeMB

A partition size to target. In certain circumstances this size may not be exactly that, but the library will do the best effort to target that size

hdfsDefaultBlockSize

Default HDFS block size for the HDFS filesystem used. This value is used as the default split size if inputSplitSizeMB is not specified

startOffset

An offset to the start of the record in each binary data block.

endOffset

An offset from the end of the record to the end of the binary data block.

fileStartOffset

A number of bytes to skip at the beginning of each file

fileEndOffset

A number of bytes to skip at the end of each file

generateRecordId

If true, a record id field will be prepended to each record.

schemaPolicy

Specifies a policy to transform the input schema. The default policy is to keep the schema exactly as it is in the copybook.

stringTrimmingPolicy

Specifies if and how strings should be trimmed when parsed.

allowPartialRecords

If true, partial ASCII records can be parsed (in cases when LF character is missing for example)

multisegment

Parameters specific to reading multisegment files

commentPolicy

A comment truncation policy

improvedNullDetection

If true, string values that contain only zero bytes (0x0) will be considered null.

dropGroupFillers

If true the parser will drop all FILLER fields, even GROUP FILLERS that have non-FILLER nested fields

dropValueFillers

If true the parser will drop all value FILLER fields

fillerNamingPolicy

Specifies the strategy of renaming FILLER names to make them unique

nonTerminals

A list of non-terminals (GROUPS) to combine and parse as primitive fields

debugFieldsPolicy

Specifies if debugging fields need to be added and what should they contain (false, hex, raw).

recordHeaderParser

A parser used to parse data field record headers

rhpAdditionalInfo

An optional additional option string passed to a custom record header parser

inputFileNameColumn

A column name to add to the dataframe. The column will contain input file name for each record similar to 'input_file_name()' function

extendedMetadata

If true, Spark schema will be generated with additional metadata (e.g. PICs, USAGE, etc.)

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReaderParameters
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReaderParameters(recordFormat: RecordFormat = FixedLength, isEbcdic: Boolean = true, isText: Boolean = false, ebcdicCodePage: String = "common", ebcdicCodePageClass: Option[String] = None, asciiCharset: String = "", fieldCodePage: Map[String, String] = Map.empty[String, String], isUtf16BigEndian: Boolean = true, floatingPointFormat: FloatingPointFormat = FloatingPointFormat.IBM, variableSizeOccurs: Boolean = false, recordLength: Option[Int] = None, lengthFieldExpression: Option[String] = None, isRecordSequence: Boolean = false, bdw: Option[Bdw] = None, isRdwBigEndian: Boolean = false, isRdwPartRecLength: Boolean = false, rdwAdjustment: Int = 0, isIndexGenerationNeeded: Boolean = false, inputSplitRecords: Option[Int] = None, inputSplitSizeMB: Option[Int] = None, hdfsDefaultBlockSize: Option[Int] = None, startOffset: Int = 0, endOffset: Int = 0, fileStartOffset: Int = 0, fileEndOffset: Int = 0, generateRecordId: Boolean = false, schemaPolicy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, stringTrimmingPolicy: StringTrimmingPolicy = StringTrimmingPolicy.TrimBoth, allowPartialRecords: Boolean = false, multisegment: Option[MultisegmentParameters] = None, commentPolicy: CommentPolicy = CommentPolicy(), strictSignOverpunch: Boolean = true, improvedNullDetection: Boolean = false, dropGroupFillers: Boolean = false, dropValueFillers: Boolean = true, fillerNamingPolicy: FillerNamingPolicy = FillerNamingPolicy.SequenceNumbers, nonTerminals: Seq[String] = Nil, occursMappings: Map[String, Map[String, Int]] = Map(), debugFieldsPolicy: DebugFieldsPolicy = DebugFieldsPolicy.NoDebug, recordHeaderParser: Option[String] = None, recordExtractor: Option[String] = None, rhpAdditionalInfo: Option[String] = None, reAdditionalInfo: String = "", inputFileNameColumn: String = "", extendedMetadata: Boolean = false)

    Permalink

    recordFormat

    Record format

    isEbcdic

    If true the input data file encoding is EBCDIC, otherwise it is ASCII

    isText

    If true line ending characters will be used (LF / CRLF) as the record separator

    ebcdicCodePage

    Specifies what code page to use for EBCDIC to ASCII/Unicode conversions

    ebcdicCodePageClass

    An optional custom code page conversion class provided by a user

    asciiCharset

    A charset for ASCII data

    fieldCodePage

    Specifies a mapping between a field name and the code page

    isUtf16BigEndian

    If true UTF-16 strings are considered big-endian.

    floatingPointFormat

    A format of floating-point numbers

    variableSizeOccurs

    If true, OCCURS DEPENDING ON data size will depend on the number of elements

    recordLength

    Specifies the length of the record disregarding the copybook record size. Implied the file has fixed record length.

    lengthFieldExpression

    A name of a field that contains record length. Optional. If not set the copybook record length will be used.

    isRecordSequence

    Does input files have 4 byte record length headers

    bdw

    Block descriptor word (if specified), for FB and VB record formats

    isRdwPartRecLength

    Does RDW count itself as part of record length itself

    rdwAdjustment

    Controls a mismatch between RDW and record length

    isIndexGenerationNeeded

    Is indexing input file before processing is requested

    inputSplitRecords

    The number of records to include in each partition. Notice mainframe records may have variable size, inputSplitMB is the recommended option

    inputSplitSizeMB

    A partition size to target. In certain circumstances this size may not be exactly that, but the library will do the best effort to target that size

    hdfsDefaultBlockSize

    Default HDFS block size for the HDFS filesystem used. This value is used as the default split size if inputSplitSizeMB is not specified

    startOffset

    An offset to the start of the record in each binary data block.

    endOffset

    An offset from the end of the record to the end of the binary data block.

    fileStartOffset

    A number of bytes to skip at the beginning of each file

    fileEndOffset

    A number of bytes to skip at the end of each file

    generateRecordId

    If true, a record id field will be prepended to each record.

    schemaPolicy

    Specifies a policy to transform the input schema. The default policy is to keep the schema exactly as it is in the copybook.

    stringTrimmingPolicy

    Specifies if and how strings should be trimmed when parsed.

    allowPartialRecords

    If true, partial ASCII records can be parsed (in cases when LF character is missing for example)

    multisegment

    Parameters specific to reading multisegment files

    commentPolicy

    A comment truncation policy

    improvedNullDetection

    If true, string values that contain only zero bytes (0x0) will be considered null.

    dropGroupFillers

    If true the parser will drop all FILLER fields, even GROUP FILLERS that have non-FILLER nested fields

    dropValueFillers

    If true the parser will drop all value FILLER fields

    fillerNamingPolicy

    Specifies the strategy of renaming FILLER names to make them unique

    nonTerminals

    A list of non-terminals (GROUPS) to combine and parse as primitive fields

    debugFieldsPolicy

    Specifies if debugging fields need to be added and what should they contain (false, hex, raw).

    recordHeaderParser

    A parser used to parse data field record headers

    rhpAdditionalInfo

    An optional additional option string passed to a custom record header parser

    inputFileNameColumn

    A column name to add to the dataframe. The column will contain input file name for each record similar to 'input_file_name()' function

    extendedMetadata

    If true, Spark schema will be generated with additional metadata (e.g. PICs, USAGE, etc.)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val allowPartialRecords: Boolean

    Permalink

    If true, partial ASCII records can be parsed (in cases when LF character is missing for example)

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val asciiCharset: String

    Permalink

    A charset for ASCII data

  7. val bdw: Option[Bdw]

    Permalink

    Block descriptor word (if specified), for FB and VB record formats

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val commentPolicy: CommentPolicy

    Permalink

    A comment truncation policy

  10. val debugFieldsPolicy: DebugFieldsPolicy

    Permalink

    Specifies if debugging fields need to be added and what should they contain (false, hex, raw).

  11. val dropGroupFillers: Boolean

    Permalink

    If true the parser will drop all FILLER fields, even GROUP FILLERS that have non-FILLER nested fields

  12. val dropValueFillers: Boolean

    Permalink

    If true the parser will drop all value FILLER fields

  13. val ebcdicCodePage: String

    Permalink

    Specifies what code page to use for EBCDIC to ASCII/Unicode conversions

  14. val ebcdicCodePageClass: Option[String]

    Permalink

    An optional custom code page conversion class provided by a user

  15. val endOffset: Int

    Permalink

    An offset from the end of the record to the end of the binary data block.

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. val extendedMetadata: Boolean

    Permalink

    If true, Spark schema will be generated with additional metadata (e.g.

    If true, Spark schema will be generated with additional metadata (e.g. PICs, USAGE, etc.)

  18. val fieldCodePage: Map[String, String]

    Permalink

    Specifies a mapping between a field name and the code page

  19. val fileEndOffset: Int

    Permalink

    A number of bytes to skip at the end of each file

  20. val fileStartOffset: Int

    Permalink

    A number of bytes to skip at the beginning of each file

  21. val fillerNamingPolicy: FillerNamingPolicy

    Permalink

    Specifies the strategy of renaming FILLER names to make them unique

  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. val floatingPointFormat: FloatingPointFormat

    Permalink

    A format of floating-point numbers

  24. val generateRecordId: Boolean

    Permalink

    If true, a record id field will be prepended to each record.

  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. val hdfsDefaultBlockSize: Option[Int]

    Permalink

    Default HDFS block size for the HDFS filesystem used.

    Default HDFS block size for the HDFS filesystem used. This value is used as the default split size if inputSplitSizeMB is not specified

  27. val improvedNullDetection: Boolean

    Permalink

    If true, string values that contain only zero bytes (0x0) will be considered null.

  28. val inputFileNameColumn: String

    Permalink

    A column name to add to the dataframe.

    A column name to add to the dataframe. The column will contain input file name for each record similar to 'input_file_name()' function

  29. val inputSplitRecords: Option[Int]

    Permalink

    The number of records to include in each partition.

    The number of records to include in each partition. Notice mainframe records may have variable size, inputSplitMB is the recommended option

  30. val inputSplitSizeMB: Option[Int]

    Permalink

    A partition size to target.

    A partition size to target. In certain circumstances this size may not be exactly that, but the library will do the best effort to target that size

  31. val isEbcdic: Boolean

    Permalink

    If true the input data file encoding is EBCDIC, otherwise it is ASCII

  32. val isIndexGenerationNeeded: Boolean

    Permalink

    Is indexing input file before processing is requested

  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. val isRdwBigEndian: Boolean

    Permalink
  35. val isRdwPartRecLength: Boolean

    Permalink

    Does RDW count itself as part of record length itself

  36. val isRecordSequence: Boolean

    Permalink

    Does input files have 4 byte record length headers

  37. val isText: Boolean

    Permalink

    If true line ending characters will be used (LF / CRLF) as the record separator

  38. val isUtf16BigEndian: Boolean

    Permalink

    If true UTF-16 strings are considered big-endian.

  39. val lengthFieldExpression: Option[String]

    Permalink

    A name of a field that contains record length.

    A name of a field that contains record length. Optional. If not set the copybook record length will be used.

  40. val multisegment: Option[MultisegmentParameters]

    Permalink

    Parameters specific to reading multisegment files

  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. val nonTerminals: Seq[String]

    Permalink

    A list of non-terminals (GROUPS) to combine and parse as primitive fields

  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. val occursMappings: Map[String, Map[String, Int]]

    Permalink
  46. val rdwAdjustment: Int

    Permalink

    Controls a mismatch between RDW and record length

  47. val reAdditionalInfo: String

    Permalink
  48. val recordExtractor: Option[String]

    Permalink
  49. val recordFormat: RecordFormat

    Permalink

    Record format

  50. val recordHeaderParser: Option[String]

    Permalink

    A parser used to parse data field record headers

  51. val recordLength: Option[Int]

    Permalink

    Specifies the length of the record disregarding the copybook record size.

    Specifies the length of the record disregarding the copybook record size. Implied the file has fixed record length.

  52. val rhpAdditionalInfo: Option[String]

    Permalink

    An optional additional option string passed to a custom record header parser

  53. val schemaPolicy: SchemaRetentionPolicy

    Permalink

    Specifies a policy to transform the input schema.

    Specifies a policy to transform the input schema. The default policy is to keep the schema exactly as it is in the copybook.

  54. val startOffset: Int

    Permalink

    An offset to the start of the record in each binary data block.

  55. val strictSignOverpunch: Boolean

    Permalink
  56. val stringTrimmingPolicy: StringTrimmingPolicy

    Permalink

    Specifies if and how strings should be trimmed when parsed.

  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. val variableSizeOccurs: Boolean

    Permalink

    If true, OCCURS DEPENDING ON data size will depend on the number of elements

  59. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped