Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于 Spark 数据集,什么是强类型 API 和无类型 API?
数据集与 DataFrame 有何相似/不同?
Dataframe API 是无类型的 API,因为类型只会在运行时知道。而数据集 API 是类型化 API,其类型将在编译时已知。
df.select("device").where("signal > 10") // using untyped APIs ds.filter(_.signal > 10).map(_.device) // using typed APIs