我查询了 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>. 有谁知道怎么做?