Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
4df9c820
Commit
4df9c820
authored
Dec 28, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop duplicate
parent
eb909ed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
EsmmData.scala
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
+2
-2
No files found.
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
View file @
4df9c820
...
...
@@ -588,8 +588,8 @@ object GetDevicePortrait {
val
max_count_tag_rdd
=
max_count_tag
.
rdd
.
groupBy
(
_
.
getAs
[
String
](
"device_id"
)).
map
{
case
(
device_id
,
data
)
=>
val
stat_date
=
data
.
map
(
_
.
getAs
[
String
](
"stat_date"
)).
head
val
max_level1_id
=
data
.
map
(
_
.
getAs
[
String
](
"max_level1_id"
)).
head
val
max_level1_count
=
data
.
map
(
_
.
getAs
[
String
](
"max_level1_count"
)).
head
val
max_level1_id
=
data
.
map
(
_
.
getAs
[
String
](
"max_level1_id"
)).
head
.
toString
val
max_level1_count
=
data
.
map
(
_
.
getAs
[
Long
](
"max_level1_count"
)).
head
.
toString
(
device_id
,
stat_date
,
max_level1_id
,
max_level1_count
)
}.
filter
(
_
.
_1
!=
null
)
...
...
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