小编pri*_*man的帖子

在 Java 中将 List<Rows> 转换为 List<long>

我查询了 cassandra 表并选择了 curent_time,如下所示:

 Dataset getTime = spark.sql("select current_time from trafficdata where current_time between "+ time1 +" and "+ time2 );
 getTime.show();
 List<Rows> list = getTime.collectAsList();
Run Code Online (Sandbox Code Playgroud)

我想将其转换List<Rows>List<Long>. 有谁知道怎么做?

java cassandra apache-spark

2
推荐指数
1
解决办法
1656
查看次数

标签 统计

apache-spark ×1

cassandra ×1

java ×1