BDI302c_-_SP_2025_-_FE_3762.webp
Tokoyami2005

BDI302c_-_SP_2025_-_FE_3762.webp

Kizspy | Question: 54
(Choose 1 answer)
In this code snippet below from the Hands On exercise on importing data, '100L + row...' adds 100 to the value
of every country ID. Which of the following statements are true regarding this decision? (Note: you may select
more than one)
val countries: RDD[(Vertexld, PlaceNode)] =
sc.textFile("./EOADATA/country.csv").
filter(!startsWith("#")).
map {line =>
val row line split','
(100L+row(0).tolnt, Country (row(1)))
A. Another option would have been to add 100 to the metropolis keys as they were imported, and leave the
country keys as they were originally numbered.
B. This step was needed to create unique keys between the country and the metropolis datasets.
C. Another option would be to add 500 to the country keys.

Thông tin

Category
BDI302c
Thêm bởi
Tokoyami2005
Ngày thêm
Lượt xem
563
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom