删除原始IP Learning项目包

This commit is contained in:
wanglihui
2020-08-06 16:11:16 +08:00
parent d07378ef8f
commit 4e58044a16
49 changed files with 474 additions and 3273 deletions

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.config
object ApplicationConfig {
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.dao
object BaseClickhouseData {
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.main
object IpLearningApplication {
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.service.transform
object MergeDataFrame {
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.service.update
object UpdateDocHandler {
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.service.update
object UpdateDocument {
}

View File

@@ -0,0 +1,11 @@
package cn.ac.iie.service.partition
import org.apache.spark.Partitioner
class CustomPartitioner(numPartition: Int) extends Partitioner{
override def numPartitions: Int = numPartition
override def getPartition(key: Any): Int = {
Math.abs(key.hashCode()) % numPartition
}
}

View File

@@ -0,0 +1,5 @@
package cn.ac.iie.utils
object SparkSessionUtil {
}