Commit c77bdf25 authored by 王志伟's avatar 王志伟

统计推荐日记重复指标

parent ab095229
...@@ -235,16 +235,16 @@ object Repeated_content_recommendation { ...@@ -235,16 +235,16 @@ object Repeated_content_recommendation {
println(all) println(all)
val repeated_rate= more_than2 / all.toDouble val repeated_rate= more_than2 / all.toDouble
println(repeated_rate) println(repeated_rate)
val test=List((stat_date,repeated_rate))
val df = sc.createDataFrame(test)
GmeiConfig.writeToJDBCTable(df, table = "Repeated_evaluation_indicator", SaveMode.Append)
// val temp=get_result.collect() // val temp=get_result.collect()
// for (i <- 0 until 30 ) { // for (i <- 0 until 30 ) {
// println(temp(i)) // println(temp(i))
// } // }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment