Finds a cycle in a parent-child relation map.
Finds a cycle in a parent-child relation map.
A mapping from field name to its parent field name.
A list of fields in a cycle if there is one, an empty list otherwise
Given an AST of a copybook returns the list of all segment redefine GROUPs
Given an AST of a copybook returns the list of all segment redefine GROUPs
An AST as a set of copybook records
A list of segment redefine GROUPs
Given an AST of a copybook returns a map from segment redefines to their children
Given an AST of a copybook returns a map from segment redefines to their children
An AST as a set of copybook records
A map from segment redefines to their children
Given an AST of a copybook returns a new AST that does not contain child segments
Given an AST of a copybook returns a new AST that does not contain child segments
An AST as a set of copybook records
A list of segment redefine GROUPs
Returns a a list of values of segment ids for the root segment.
Tokenizes a Cobol Copybook contents and returns the AST.
Tokenizes a Cobol Copybook contents and returns the AST.
A string containing all lines of a copybook
Encoding of the data file (either ASCII/EBCDIC). The encoding of the copybook is expected to be ASCII.
Drop groups marked as fillers from the output AST
Drop primitive fields marked as fillers from the output AST
A list of redefined fields that correspond to various segments. This needs to be specified for automatically resolving segment redefines.
A segment fields parent mapping
Specifies if and how strings should be trimmed when parsed
Specifies a policy for comments truncation inside a copybook
If true sign overpunching is not allowed for unsigned numbers
If true, string values that contain only zero bytes (0x0) will be considered null.
A code page for EBCDIC encoded data
A charset for ASCII encoded data
If true UTF-16 strings are considered big-endian.
A format of floating-point numbers (IBM/IEEE754)
A list of non-terminals that should be extracted as strings
Specifies if debugging fields need to be added and what should they contain (false, hex, raw).
Seq[Group] where a group is a record inside the copybook
Tokenizes a Cobol Copybook contents and returns the AST.
Tokenizes a Cobol Copybook contents and returns the AST.
This method accepts arguments that affect only structure of the output AST.
A string containing all lines of a copybook
Drop GROUPs marked as fillers from the output AST (the name of this parameter is retained for compatibility, fields won't be actually removed from the AST unless dropFillersFromAst is set to true). When dropGroupFillers is set to true, FILLER fields will retain their names, and 'isFiller() = true' for FILLER GROUPs. When dropGroupFillers is set to false, FILLER fields will be renamed to 'FILLER_1, FILLER_2, ...' to retain uniqueness of names in the output schema.
Drop primitive fields marked as fillers from the output AST (the name of this parameter is retained for compatibility, fields won't be actually removed from the AST unless dropFillersFromAst is set to true). When dropValueFillers is set to true, FILLER fields will retain their names, and 'isFiller() = true' for FILLER primitive fields. When dropValueFillers is set to false, FILLER fields will be renamed to 'FILLER_P1, FILLER_P2, ...' to retain uniqueness of names in the output schema.
Specifies a policy for comments truncation inside a copybook
If true, fillers are going to be dropped from AST according to dropGroupFillers and dropValueFillers. If false, fillers will remain in the AST, but still can be recognizable by 'isFiller()' method.
Seq[Group] where a group is a record inside the copybook
Tokenizes a Cobol Copybook contents and returns the AST.
Tokenizes a Cobol Copybook contents and returns the AST.
Encoding of the data file (either ASCII/EBCDIC). The encoding of the copybook is expected to be ASCII.
A string containing all lines of a copybook
Drop groups marked as fillers from the output AST
Drop primitive fields marked as fillers from the output AST
A list of redefined fields that correspond to various segments. This needs to be specified for automatically resolving segment redefines.
A segment fields parent mapping
Specifies if and how strings should be trimmed when parsed
Specifies a policy for comments truncation inside a copybook
If true, string values that contain only zero bytes (0x0) will be considered null.
A code page for EBCDIC encoded data
A charset for ASCII encoded data
If true UTF-16 strings are considered big-endian.
A format of floating-point numbers (IBM/IEEE754)
A list of non-terminals that should be extracted as strings
Specifies if debugging fields need to be added and what should they contain (false, hex, raw).
Seq[Group] where a group is a record inside the copybook
Tokenizes a Cobol Copybook contents and returns the AST.
Tokenizes a Cobol Copybook contents and returns the AST.
A string containing all lines of a copybook
Drop groups marked as fillers from the output AST
Drop primitive fields marked as fillers from the output AST
A list of redefined fields that correspond to various segments. This needs to be specified for automatically
A segment fields parent mapping
Specifies if and how strings should be trimmed when parsed
Specifies a policy for comments truncation inside a copybook
If true sign overpunching is not allowed for unsigned numbers
If true, string values that contain only zero bytes (0x0) will be considered null.
A code page for EBCDIC encoded data
A charset for ASCII encoded data
If true UTF-16 strings are considered big-endian.
A format of floating-point numbers (IBM/IEEE754)
A list of non-terminals that should be extracted as strings
Specifies if debugging fields need to be added and what should they contain (false, hex, raw).
Seq[Group] where a group is a record inside the copybook
Transforms the Cobol identifiers to be useful in Spark context.
Transforms the Cobol identifiers to be useful in Spark context. Removes characters an identifier cannot contain.
Transforms all identifiers in a map to be useful in Spark context.
Transforms all identifiers in a map to be useful in Spark context. Removes characters an identifier cannot contain.
The object contains generic function for the Copybook parser