Object

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

RecordExtractors

Related Doc: package record

Permalink

object RecordExtractors

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RecordExtractors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def extractHierarchicalRecord[T](ast: CopybookAST, segmentsData: ArrayBuffer[(String, Array[Byte])], segmentRedefines: Array[Group], segmentIdRedefineMap: Map[String, Group], parentChildMap: Map[String, Seq[Group]], offsetBytes: Int = 0, policy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, variableLengthOccurs: Boolean = false, generateRecordId: Boolean = false, fileId: Int = 0, recordId: Long = 0, generateInputFileField: Boolean = false, inputFileName: String = "", handler: RecordHandler[T])(implicit arg0: ClassTag[T]): Seq[Any]

    Permalink

    This method extracts a hierarchical record from the specified raw bytes.

    This method extracts a hierarchical record from the specified raw bytes. The copybook for the record needs to be already parsed.

    This extractor expects multiple segments to be provided as a list of a segmentId-data pair. Raw data for each segment should be provided as array of bytes.

    This method reconstructs hierarchical record structure by putting all provided segments in their corresponding places in the hierarchy.

    ast

    The parsed copybook

    segmentsData

    The data bits containing the record

    segmentRedefines

    A list of segment redefine GROUPs

    segmentIdRedefineMap

    A mapping from segment ids to segment redefine groups

    parentChildMap

    A mapping from a segment field name to its parents

    offsetBytes

    The offset to the beginning of the record (in bits)

    policy

    A schema retention policy to be applied to the extracted record

    variableLengthOccurs

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

    generateRecordId

    If true a record id field will be added as the first field of the record.

    fileId

    A file id to be put to the extractor record if generateRecordId == true

    recordId

    The record id to be saved to the record id field

    generateInputFileField

    if true, a field containing input file name will be generated

    inputFileName

    An input file name to put if its generation is needed

    returns

    An Array[Any] object corresponding to the hierarchical record schema

    Annotations
    @throws( classOf[IllegalStateException] )
  9. def extractRecord[T](ast: CopybookAST, data: Array[Byte], offsetBytes: Int = 0, policy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, variableLengthOccurs: Boolean = false, generateRecordId: Boolean = false, segmentLevelIds: List[String] = Nil, fileId: Int = 0, recordId: Long = 0, activeSegmentRedefine: String = "", generateInputFileField: Boolean = false, inputFileName: String = "", handler: RecordHandler[T])(implicit arg0: ClassTag[T]): Seq[Any]

    Permalink

    This method extracts a record from the specified array of bytes.

    This method extracts a record from the specified array of bytes. The copybook for the record needs to be already parsed.

    ast

    The parsed copybook.

    data

    The data bits containing the record.

    offsetBytes

    The offset to the beginning of the record (in bits).

    policy

    A schema retention policy to be applied to the extracted record.

    variableLengthOccurs

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

    generateRecordId

    If true a record id field will be added as the first field of the record.

    segmentLevelIds

    Segment ids to put to the extracted record if id generation it turned on.

    fileId

    A file id to be put to the extractor record if generateRecordId == true.

    recordId

    The record id to be saved to the record id field.

    activeSegmentRedefine

    An active segment redefine (the one that will be parsed). All other segment redefines will be skipped.

    generateInputFileField

    if true, a field containing input file name will be generated

    inputFileName

    An input file name to put if its generation is needed

    returns

    An Array[Any] object corresponding to the record schema.

    Annotations
    @throws( classOf[IllegalStateException] )
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped