Calculate binary properties based on the whole AST
Calculate binary properties based on the whole AST
An AST as a set of copybook records
The same AST with binary properties set for every field
Calculate binary properties for a mutable Cobybook schema which is just an array of AST objects
Calculate binary properties for a mutable Cobybook schema which is just an array of AST objects
An array of AST objects
The same AST with binary properties set for every field
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.
Calculate binary offsets for a mutable Cobybook schema which is just an array of AST objects
Calculate binary offsets for a mutable Cobybook schema which is just an array of AST objects
An array of AST objects
The same AST with all offsets set for every field
Sets isDependee attribute for fields in the schema which are used by other fields in DEPENDING ON clause
Sets isDependee attribute for fields in the schema which are used by other fields in DEPENDING ON clause
An AST as a set of copybook records
The same AST with binary properties set for every field
Sets isSegmentRedefine property of redefined groups so the row extractor be able to skip parsing segment groups that do not belong to a particular segment id.
Sets isSegmentRedefine property of redefined groups so the row extractor be able to skip parsing segment groups that do not belong to a particular segment id.
* Each field should appear in the list only once * Any such field should be a redefine or a redefined by. * All segment fields should belong to the same redefine group. E.g. they should redefine each other, * All segment fields should belong to the level 1 (one level down record root level) * A segment redefine cannot be inside an array
An AST as a set of copybook records
The list of fields names that correspond to segment GROUPs.
The same AST with binary properties set for every field
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
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
Drop primitive fields marked as fillers from the output AST
Specifies a policy for comments truncation inside a copybook
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
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
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
Sets parent groups for child segment redefines.
Sets parent groups for child segment redefines. This relies on segment id to redefines map. The assumptions are
* Only one segment redefine field has empty parent - the root segment. * All other segment redefines should have a parent segment. * isSegmentRedefine should be already set for all segment redefines. * A parent of a segment redefine should be a segment redefine as well
An AST as a set of copybook records
A mapping between field names and their parents
The same AST with binary properties set for every field
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