abstract class VarLenReader extends Reader with Serializable
The abstract class for Cobol data readers from various sequential sources (e.g. variable size EBCDIC records)
- Alphabetic
- By Inheritance
- VarLenReader
- Reader
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new VarLenReader()
Type Members
Abstract Value Members
-
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
-
abstract
def
getCobolSchema: CobolSchema
- Definition Classes
- Reader
-
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
-
abstract
def
getRecordSize: Int
- Definition Classes
- Reader
-
abstract
def
isIndexGenerationNeeded: Boolean
Returns true if index generation is requested
-
abstract
def
isRdwBigEndian: Boolean
Returns true if RDW header of variable length files is big endian
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()