|
@@ -100,7 +100,7 @@ class AkkaStreamFileProcessingImpl extends AkkaStreamFileProcessingFuture {
|
100
|
100
|
val finalFuture: Future[IndexedSeq[Person]] =
|
101
|
101
|
tvSerieIDFuture.andThen({
|
102
|
102
|
case Success(value: Option[String]) =>
|
103
|
|
- logger.info(s"TvSerie ID: $value")
|
|
103
|
+ logger.info(s"TvSerie ID: ${value.get}")
|
104
|
104
|
logger.info(s"STEP 1/3 END, elapsed time:${(System.currentTimeMillis() - start1) / 1000} sec")
|
105
|
105
|
|
106
|
106
|
})
|
|
@@ -113,7 +113,7 @@ class AkkaStreamFileProcessingImpl extends AkkaStreamFileProcessingFuture {
|
113
|
113
|
)
|
114
|
114
|
listPersonIDsFuture.andThen({
|
115
|
115
|
case Success(value) =>
|
116
|
|
- value.foreach((personID: Option[String]) => logger.info(s"Person ID:$personID"))
|
|
116
|
+ value.foreach((personID: Option[String]) => logger.info(s"Person ID:${personID.get}"))
|
117
|
117
|
logger.info(s"STEP 2/3 END, elapsed time:${(System.currentTimeMillis() - start2) / 1000} sec")
|
118
|
118
|
})
|
119
|
119
|
.flatMap({
|
|
@@ -142,7 +142,7 @@ class AkkaStreamFileProcessingImpl extends AkkaStreamFileProcessingFuture {
|
142
|
142
|
tvSerieIdFuture.andThen({
|
143
|
143
|
case Failure(exception) => logger.error(s"${exception.printStackTrace()}")
|
144
|
144
|
case Success(value: Option[String]) =>
|
145
|
|
- logger.info(s"$value")
|
|
145
|
+ logger.info(s"${value.get}")
|
146
|
146
|
logger.info(s"STEP 1/3 END, elapsed time:${(System.currentTimeMillis() - start1) / 1000} sec")
|
147
|
147
|
|
148
|
148
|
})
|
|
@@ -155,7 +155,7 @@ class AkkaStreamFileProcessingImpl extends AkkaStreamFileProcessingFuture {
|
155
|
155
|
listOfPersonsIDsFuture.andThen({
|
156
|
156
|
case Failure(exception) => logger.error(s"${exception.printStackTrace()}")
|
157
|
157
|
case Success(value: IndexedSeq[Option[String]]) =>
|
158
|
|
- value.foreach((personID: Option[String]) => logger.info(s"Person ID:$personID"))
|
|
158
|
+ value.foreach((personID: Option[String]) => logger.info(s"Person ID:${personID.get}"))
|
159
|
159
|
logger.info(s"STEP 2/3 END, elapsed time:${(System.currentTimeMillis() - start2) / 1000} sec")
|
160
|
160
|
})
|
161
|
161
|
.flatMap({
|