Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app-collection
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐顺
app-collection
Commits
bb36836f
Commit
bb36836f
authored
Jan 28, 2021
by
RingEric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据处理flink入口
parent
c462afc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/main/scala/qm/flink/FlinkEntry.scala
src/main/scala/qm/flink/FlinkEntry.scala
+6
-3
No files found.
src/main/scala/qm/flink/FlinkEntry.scala
View file @
bb36836f
...
...
@@ -6,6 +6,7 @@ import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer
import
qm.kafka.KafkaConsumer
/**
* @ClassName: Flink
* @Description: TODO
...
...
@@ -30,9 +31,11 @@ object FlinkEntry {
// 数据处理流程
Analysis
.
analysis
(
x
)
})
.
map
(
x
=>
{
x
.
mkString
(
"{"
,
","
,
"}"
)
})
//将数组压平
.
flatMap
(
x
=>
x
)
//过滤掉不合理的数据
.
filter
(
x
=>
x
.
eventName
.
nonEmpty
)
.
executeAndCollect
()
.
foreach
(
println
)
...
...
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