Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
Flink基础教程
by
Ellen Friedman
,
Kostas Tzoumas
August 2018
Intermediate to advanced
98 pages
2h 11m
Chinese
Posts & Telecom Press
Content preview from
Flink基础教程
40
|
第
4
章
4.3
时间概念
在流处理中,主要有两个时间概念
1
。
•
事件时间
,即事件实际发生的时间。更准确地说,每一个事件都有一个
与它相关的时间戳,并且时间戳是数据记录的一部分(比如手机或者服
务器的记录)。事件时间其实就是时间戳。
•
处理时间
,即事件被处理的时间。处理时间其实就是处理事件的机器所
测量的时间。
图
4-4
说明了事件时间和处理时间的区别。
事件时间
处理时间
星球大战
4
新希望
星球大战
5
帝国反击战
星球大战
6
绝地归来
星球大战
1
幽灵的威胁
星球大战
2
克隆人的进攻
星球大战
3
西斯的复仇
星球大战
7
原力觉醒
图
4-4
:事件时间顺序与处理时间顺序不一致的乱序事件流
以《星球大战》系列电影为例。首先上映的
3
部电影是该系列中的第
4
、
5
、
6
部(这是事件时间),它们的上映年份分别是
1977
年、
1980
年和
1983
年
(这是处理时间)。之后按事件时间上映的第
1
、
2
、
3
、
7
部,对应的处理时
间分别是
1999
年、
2002
年、
2005
年和
2015
年。由此可见,事件流的顺序
可能是乱的(尽管年份顺序一般不会乱)。
注
1
:
本章涉及的许多想法都是由
Google Dataflow
团队(即现在的
Apache Beam
团队)
提出的。团队成员包括
Tyler Akidau
和
Frances Perry
等人。如果想了解更多关于
Dataflow
模型的内容,请参考
Tyler Akidau
的文章
Streaming 101
和
Streaming 102
。
Flink
处理时间和窗口的机制很大程度上来源于
Tyler Akidau
等人所著的关于
Dataf ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
机器学习流水线实战
Hannes Hapke, Catherine Nelson
Kafka权威指南(第2版)
Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
Java并发编程实战
Brian Goetz, Tim Peierls
MySQL® Crash Course
Ben Forta
Publisher Resources
ISBN: 9787115490063