Commit d8011ba3 by WangJinfeng

init id_mapping

parent a7c11c2b
...@@ -264,13 +264,13 @@ object Constant { ...@@ -264,13 +264,13 @@ object Constant {
dev_id dev_id
} }
val iosIDScoreMap: Map[String, Double] = Map("idfa" -> 10, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9, "bmosv_osv_upt" -> 0.9, val iosIDScoreMap: Map[String, Double] = Map("idfa" -> 1000, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9, "bmosv_osv_upt" -> 0.9,
"idfv_bundle" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_bundle" -> 0.6, "bkupid" -> 0.3) "idfv_bundle" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_bundle" -> 0.6, "bkupid" -> 0.3)
val androidCNIDScoreMap: Map[String, Double] = Map("imei" -> 10, "oaid" -> 10, "gaid" -> 10, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9, val androidCNIDScoreMap: Map[String, Double] = Map("imei" -> 1000, "oaid" -> 1000, "gaid" -> 1000, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9,
"android_pkg" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_pkg" -> 0.6, "bkupid" -> 0.3) "android_pkg" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_pkg" -> 0.6, "bkupid" -> 0.3)
val androidIDScoreMap: Map[String, Double] = Map("gaid" -> 10, "imei" -> 10, "oaid" -> 10, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9, val androidIDScoreMap: Map[String, Double] = Map("gaid" -> 1000, "imei" -> 1000, "oaid" -> 1000, "sysid" -> 1, "xwho" -> 0.9, "user_id" -> 0.9,
"android_pkg" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_pkg" -> 0.6, "bkupid" -> 0.3) "android_pkg" -> 0.8, "bmosv_upt" -> 0.7, "bmosv_ipua_pkg" -> 0.6, "bkupid" -> 0.3)
def process(idfa: String, idfv: String, pkg_name: String, imei: String, androidId: String, oaid: String, gaid: String, sysId: String, def process(idfa: String, idfv: String, pkg_name: String, imei: String, androidId: String, oaid: String, gaid: String, sysId: String,
...@@ -386,4 +386,8 @@ object Constant { ...@@ -386,4 +386,8 @@ object Constant {
} }
(f_platform, rw) (f_platform, rw)
} }
case class Result(device_id: String, device_type: String, one_id: String) extends Serializable
case class OneIDScore(one_id: String, one_type: String, one_score: Double) extends Serializable
} }
\ No newline at end of file
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