Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobvista-dmp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王金锋
mobvista-dmp
Commits
b4a41d2c
Commit
b4a41d2c
authored
Dec 20, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init id_mapping
parent
ff5d6e34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IDMappingGraphx.scala
.../mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
+3
-3
No files found.
src/main/scala/mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
View file @
b4a41d2c
...
...
@@ -91,7 +91,7 @@ class IDMappingGraphx extends CommonSparkJob with Serializable {
}),
schema
=
schame
)
val
vertex
=
todayDF
.
rdd
.
map
(
row
=>
{
processVertex
(
date
,
row
,
idSet
.
toArray
,
idMainSet
)
processVertex
(
date
,
row
,
idSet
,
idMainSet
)
}).
flatMap
(
l
=>
l
)
val
maxGraph
=
vertex
.
combineByKey
(
...
...
@@ -265,8 +265,8 @@ class IDMappingGraphx extends CommonSparkJob with Serializable {
val
array
=
new
ArrayBuffer
[(
String
,
JSONObject
,
String
)]()
val
iters
=
kv
.
_2
val
oneID
=
new
JSONObject
()
iters
.
foreach
(
kv
=>
{
oneID
.
put
(
kv
.
_1
,
kv
.
_2
)
iters
.
foreach
(
ir
=>
{
oneID
.
put
(
ir
.
_1
,
ir
.
_2
)
})
iters
.
filter
(
tp
=>
{
!
mainIDSet
.
contains
(
tp
.
_2
.
getString
(
"id_type"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment