Variable length record parsing
- Ngôn ngữ chính
- Scala
- Star
- 170
- Fork
- 96
- Merge trung bình
- 57 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
## Background [Optional]
I have multi layout file with certain order.
I group each layout and last layout is repeated multiple times.
each layout is fixed length file(200 bytes).
Example:
1.FH
2.LH
3.BH1
4.DE1
5.AD
:
:
10.DE2
11.AD
:
13.BH2
14.DE1
15.AD
:
:
I rearrange layouts like
FH,LH,BH1,DE1,{4 bytes count of AD}Array[AD]
FH,LH,BH1,DE2,{4 bytes count of AD}Array[AD]
FH,LH,BH2,DE1,{4 bytes count of AD}Array[AD]
FH,LH,BH2,DE2,{4 bytes count of AD}Array[AD]
## Question
How do I parse RDD[Array[Bytes]] using framework?
‘’’
import za.co.absa.cobrix.spark.cobol.Cobrix
val rdd = ???
val df = Cobrix.fromRdd
.copybookContents(copybook)
.option("encoding", "ebcdic") // any supported option
.load(rdd)
‘’’
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.