BDI301c_-_FA_2024_-_FE_3126.webp
M

BDI301c_-_FA_2024_-_FE_3126.webp

  • Media owner Miwa88
  • Ngày thêm
Kizspy | Question: 58 (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)))}
FUOVERFL
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
BDI301c
Thêm bởi
Miwa88
Ngày thêm
Lượt xem
155
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom