Class

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

CobolParameters

Related Doc: package parameters

Permalink

case class CobolParameters(copybookPath: Option[String], multiCopybookPath: Seq[String], copybookContent: Option[String], sourcePaths: Seq[String], recordFormat: RecordFormat, isText: Boolean, isEbcdic: Boolean, ebcdicCodePage: String, ebcdicCodePageClass: Option[String], asciiCharset: String, fieldCodePage: Map[String, String], isUtf16BigEndian: Boolean, floatingPointFormat: FloatingPointFormat, recordStartOffset: Int, recordEndOffset: Int, recordLength: Option[Int], variableLengthParams: Option[VariableLengthParameters], variableSizeOccurs: Boolean, schemaRetentionPolicy: SchemaRetentionPolicy, stringTrimmingPolicy: StringTrimmingPolicy, allowPartialRecords: Boolean, multisegmentParams: Option[MultisegmentParameters], commentPolicy: CommentPolicy, strictSignOverpunch: Boolean, improvedNullDetection: Boolean, dropGroupFillers: Boolean, dropValueFillers: Boolean, fillerNamingPolicy: FillerNamingPolicy, nonTerminals: Seq[String], occursMappings: Map[String, Map[String, Int]], debugFieldsPolicy: DebugFieldsPolicy, debugIgnoreFileSize: Boolean, extendedMetadata: Boolean) extends Product with Serializable

This class holds parameters for the job.

copybookPath

String containing the path to the copybook in a given file system.

multiCopybookPath

Sequence containing the paths to the copybooks.

copybookContent

String containing the actual content of the copybook. Either this, the copybookPath, or multiCopybookPath parameter must be specified.

sourcePaths

The list of source file paths.

recordFormat

The record format (F, V, VB, D)

isText

[deprecated by recordFormat] If true the input data consists of text files where records are separated by a line ending character

isEbcdic

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

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 is considered big-endian.

floatingPointFormat

A format of floating-point numbers

recordStartOffset

A number of bytes to skip at the beginning of the record before parsing a record according to a copybook

recordEndOffset

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

recordLength

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

variableLengthParams

VariableLengthParameters containing the specifications for the consumption of variable-length Cobol records.

variableSizeOccurs

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

schemaRetentionPolicy

A copybook usually has a root group struct element that acts like a rowtag in XML. This can be retained in Spark schema or can be collapsed

stringTrimmingPolicy

Specify 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)

multisegmentParams

Parameters for reading multisegment mainframe 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

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).

debugIgnoreFileSize

If true the fixed length file reader won't check file size divisibility. Useful for debugging binary file / copybook mismatches.

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. CobolParameters
  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 CobolParameters(copybookPath: Option[String], multiCopybookPath: Seq[String], copybookContent: Option[String], sourcePaths: Seq[String], recordFormat: RecordFormat, isText: Boolean, isEbcdic: Boolean, ebcdicCodePage: String, ebcdicCodePageClass: Option[String], asciiCharset: String, fieldCodePage: Map[String, String], isUtf16BigEndian: Boolean, floatingPointFormat: FloatingPointFormat, recordStartOffset: Int, recordEndOffset: Int, recordLength: Option[Int], variableLengthParams: Option[VariableLengthParameters], variableSizeOccurs: Boolean, schemaRetentionPolicy: SchemaRetentionPolicy, stringTrimmingPolicy: StringTrimmingPolicy, allowPartialRecords: Boolean, multisegmentParams: Option[MultisegmentParameters], commentPolicy: CommentPolicy, strictSignOverpunch: Boolean, improvedNullDetection: Boolean, dropGroupFillers: Boolean, dropValueFillers: Boolean, fillerNamingPolicy: FillerNamingPolicy, nonTerminals: Seq[String], occursMappings: Map[String, Map[String, Int]], debugFieldsPolicy: DebugFieldsPolicy, debugIgnoreFileSize: Boolean, extendedMetadata: Boolean)

    Permalink

    copybookPath

    String containing the path to the copybook in a given file system.

    multiCopybookPath

    Sequence containing the paths to the copybooks.

    copybookContent

    String containing the actual content of the copybook. Either this, the copybookPath, or multiCopybookPath parameter must be specified.

    sourcePaths

    The list of source file paths.

    recordFormat

    The record format (F, V, VB, D)

    isText

    [deprecated by recordFormat] If true the input data consists of text files where records are separated by a line ending character

    isEbcdic

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

    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 is considered big-endian.

    floatingPointFormat

    A format of floating-point numbers

    recordStartOffset

    A number of bytes to skip at the beginning of the record before parsing a record according to a copybook

    recordEndOffset

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

    recordLength

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

    variableLengthParams

    VariableLengthParameters containing the specifications for the consumption of variable-length Cobol records.

    variableSizeOccurs

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

    schemaRetentionPolicy

    A copybook usually has a root group struct element that acts like a rowtag in XML. This can be retained in Spark schema or can be collapsed

    stringTrimmingPolicy

    Specify 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)

    multisegmentParams

    Parameters for reading multisegment mainframe 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

    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).

    debugIgnoreFileSize

    If true the fixed length file reader won't check file size divisibility. Useful for debugging binary file / copybook mismatches.

    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. def clone(): AnyRef

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

    Permalink

    A comment truncation policy

  9. val copybookContent: Option[String]

    Permalink

    String containing the actual content of the copybook.

    String containing the actual content of the copybook. Either this, the copybookPath, or multiCopybookPath parameter must be specified.

  10. val copybookPath: Option[String]

    Permalink

    String containing the path to the copybook in a given file system.

  11. val debugFieldsPolicy: DebugFieldsPolicy

    Permalink

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

  12. val debugIgnoreFileSize: Boolean

    Permalink

    If true the fixed length file reader won't check file size divisibility.

    If true the fixed length file reader won't check file size divisibility. Useful for debugging binary file / copybook mismatches.

  13. val dropGroupFillers: Boolean

    Permalink

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

  14. val dropValueFillers: Boolean

    Permalink

    If true the parser will drop all value FILLER fields

  15. val ebcdicCodePage: String

    Permalink

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

  16. val ebcdicCodePageClass: Option[String]

    Permalink

    An optional custom code page conversion class provided by a user

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

    Permalink
    Definition Classes
    AnyRef
  18. 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.)

  19. val fieldCodePage: Map[String, String]

    Permalink

    Specifies a mapping between a field name and the code page

  20. val fillerNamingPolicy: FillerNamingPolicy

    Permalink
  21. def finalize(): Unit

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

    Permalink

    A format of floating-point numbers

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. val improvedNullDetection: Boolean

    Permalink

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

  25. val isEbcdic: Boolean

    Permalink

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

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val isText: Boolean

    Permalink

    [deprecated by recordFormat] If true the input data consists of text files where records are separated by a line ending character

  28. val isUtf16BigEndian: Boolean

    Permalink

    If true UTF-16 is considered big-endian.

  29. val multiCopybookPath: Seq[String]

    Permalink

    Sequence containing the paths to the copybooks.

  30. val multisegmentParams: Option[MultisegmentParameters]

    Permalink

    Parameters for reading multisegment mainframe files

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

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

    Permalink

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

  33. final def notify(): Unit

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

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

    Permalink
  36. val recordEndOffset: Int

    Permalink

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

  37. val recordFormat: RecordFormat

    Permalink

    The record format (F, V, VB, D)

  38. 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.

  39. val recordStartOffset: Int

    Permalink

    A number of bytes to skip at the beginning of the record before parsing a record according to a copybook

  40. val schemaRetentionPolicy: SchemaRetentionPolicy

    Permalink

    A copybook usually has a root group struct element that acts like a rowtag in XML.

    A copybook usually has a root group struct element that acts like a rowtag in XML. This can be retained in Spark schema or can be collapsed

  41. val sourcePaths: Seq[String]

    Permalink

    The list of source file paths.

  42. val strictSignOverpunch: Boolean

    Permalink
  43. val stringTrimmingPolicy: StringTrimmingPolicy

    Permalink

    Specify if and how strings should be trimmed when parsed

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

    Permalink
    Definition Classes
    AnyRef
  45. val variableLengthParams: Option[VariableLengthParameters]

    Permalink

    VariableLengthParameters containing the specifications for the consumption of variable-length Cobol records.

  46. val variableSizeOccurs: Boolean

    Permalink

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

  47. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. 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