File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed
scala/hmda/persistence/demo Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 1
- 2017|6999998|in-progress| true|1484842271000|1487520671000
2
- 2017|6999999|not-started| false|1484842271000|1484842271000
3
- 2016|6999999|not-started| false|1484842271000|1484842271000
1
+ 2017|6999998|true|1484842271000|1487520671000
2
+ 2017|6999999|false|1484842271000|1484842271000
3
+ 2016|6999999|false|1484842271000|1484842271000
Original file line number Diff line number Diff line change @@ -12,29 +12,19 @@ object DemoFilings extends ResourceUtils {
12
12
val values = line.split('|' ).map(_.trim)
13
13
val period = values(0 )
14
14
val institutionId = values(1 )
15
- val filingStatus = toFilingStatus(values(2 ))
16
- val filingRequired = values(3 ).toBoolean
17
- val start = values(4 ).toLong
18
- val end = values(5 ).toLong
15
+ val filingRequired = values(2 ).toBoolean
16
+ val start = values(3 ).toLong
17
+ val end = values(4 ).toLong
19
18
20
19
Filing (
21
20
period,
22
21
institutionId,
23
- filingStatus ,
22
+ NotStarted ,
24
23
filingRequired,
25
24
start,
26
25
end
27
26
)
28
27
}.toSeq
29
28
}
30
29
31
- def toFilingStatus (text : String ): FilingStatus = {
32
- text match {
33
- case " not-started" => NotStarted
34
- case " in-progress" => InProgress
35
- case " completed" => Completed
36
- case " cancelled" => Cancelled
37
- }
38
- }
39
-
40
30
}
You can’t perform that action at this time.
0 commit comments