Packages

c

za.co.absa.cobrix.cobol.reader

VarLenReader

abstract class VarLenReader extends Reader with Serializable

The abstract class for Cobol data readers from various sequential sources (e.g. variable size EBCDIC records)

Linear Supertypes
Reader, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VarLenReader
  2. Reader
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VarLenReader()

Type Members

  1. type Field = String
    Definition Classes
    Reader
  2. type Value = String
    Definition Classes
    Reader

Abstract Value Members

  1. abstract def generateIndex(dataStream: SimpleStream, headerStream: SimpleStream, fileNumber: Int, isRdwBigEndian: Boolean): ArrayBuffer[SparseIndexEntry]

    Traverses the data sequentially as fast as possible to generate record index.

    Traverses the data sequentially as fast as possible to generate record index. This index will be used to distribute workload of the conversion.

    dataStream

    A stream of input binary data

    headerStream

    A stream pointing to the beginning of the file, even if inputStream is pointing to a record in the middle.

    fileNumber

    A file number uniquely identified a particular file of the data set

    returns

    An index of the file

  2. abstract def getCobolSchema: CobolSchema
    Definition Classes
    Reader
  3. abstract def getRecordIterator(dataStream: SimpleStream, headerStream: SimpleStream, startingFileOffset: Long, fileNumber: Int, startingRecordIndex: Long): Iterator[Seq[Any]]

    Returns a file iterator between particular offsets.

    Returns a file iterator between particular offsets. This is for faster traversal of big binary files

    dataStream

    A stream positioned at the beginning of the intended file portion to read

    headerStream

    A stream pointing to the beginning of the file, even if inputStream is pointing to a record in the middle.

    startingFileOffset

    An offset of the file where parsing should be started

    fileNumber

    A file number uniquely identified a particular file of the data set

    startingRecordIndex

    A starting record index of the data

    returns

    An iterator of Spark Row objects

  4. abstract def getRecordSize: Int
    Definition Classes
    Reader
  5. abstract def isIndexGenerationNeeded: Boolean

    Returns true if index generation is requested

  6. abstract def isRdwBigEndian: Boolean

    Returns true if RDW header of variable length files is big endian

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Reader

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped