Packages

class CobolSchema extends Serializable

This class provides a view on a COBOL schema from the perspective of Spark. When provided with a parsed copybook the class provides the corresponding Spark schema and also other properties for the Spark data source.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CobolSchema
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CobolSchema(copybook: Copybook, policy: SchemaRetentionPolicy, inputFileNameField: String, generateRecordId: Boolean, generateRecordBytes: Boolean, generateSegIdFieldsCnt: Int = 0, segmentIdProvidedPrefix: String = "", metadataPolicy: MetadataPolicy = MetadataPolicy.Basic)

    copybook

    A parsed copybook.

    policy

    Specifies a policy to transform the input schema. The default policy is to keep the schema exactly as it is in the copybook.

    inputFileNameField

    If non-empty, a source file name will be prepended to the beginning of the schema.

    generateRecordId

    If true, a record id field will be prepended to the beginning of the schema.

    generateRecordBytes

    If true, a record bytes field will be appended to the beginning of the schema.

    generateSegIdFieldsCnt

    A number of segment ID levels to generate

    segmentIdProvidedPrefix

    A prefix for each segment id levels to make segment ids globally unique (by default the current timestamp will be used)

    metadataPolicy

    Specifies a policy to generate metadata fields.

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. val copybook: Copybook
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val generateRecordBytes: Boolean
  11. val generateRecordId: Boolean
  12. val generateSegIdFieldsCnt: Int
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getCobolSchema: Copybook
  15. lazy val getRecordSize: Int
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val inputFileNameField: String
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isRecordFixedSize: Boolean
  20. val metadataPolicy: MetadataPolicy
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val policy: SchemaRetentionPolicy
  25. val segmentIdPrefix: String
  26. val segmentIdProvidedPrefix: String
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped