Book Image

Learning Apache Flink

By : Tanmay Deshpande
Book Image

Learning Apache Flink

By: Tanmay Deshpande

Overview of this book

<p>With the advent of massive computer systems, organizations in different domains generate large amounts of data on a real-time basis. The latest entrant to big data processing, Apache Flink, is designed to process continuous streams of data at a lightning fast pace.</p> <p>This book will be your definitive guide to batch and stream data processing with Apache Flink. The book begins with introducing the Apache Flink ecosystem, setting it up and using the DataSet and DataStream API for processing batch and streaming datasets. Bringing the power of SQL to Flink, this book will then explore the Table API for querying and manipulating data. In the latter half of the book, readers will get to learn the remaining ecosystem of Apache Flink to achieve complex tasks such as event processing, machine learning, and graph processing. The final part of the book would consist of topics such as scaling Flink solutions, performance optimization and integrating Flink with other tools such as ElasticSearch.</p> <p>Whether you want to dive deeper into Apache Flink, or want to investigate how to get more out of this powerful technology, you’ll find everything you need inside.</p>
Table of Contents (17 chapters)
Learning Apache Flink
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Use case - Athletes data insights using Flink Table API


Now that we have learnt details of Table API, let's try to apply this knowledge to a real life use case. Consider we have a dataset with us, which has information about the Olympic athletes and their performance in various games.

The sample data looks like that shown in the following table:

Player

Country

Year

Game

Gold

Silver

Bronze

Total

Yang Yilin

China

2008

Gymnastics

1

0

2

3

Leisel Jones

Australia

2000

Swimming

0

2

0

2

Go Gi-Hyeon

South Korea

2002

Short-Track Speed Skating

1

1

0

2

Chen Ruolin

China

2008

Diving

2

0

0

2

Katie Ledecky

United States

2012

Swimming

1

0

0

1

Ruta Meilutyte

Lithuania

2012

Swimming

1

0

0

1

Dániel Gyurta

Hungary

2004

Swimming

0

1

0

1

Arianna Fontana

Italy

2006

Short-Track Speed Skating

0

0

1

1

Olga Glatskikh

Russia

2004

Rhythmic Gymnastics

1

0

0

1

Kharikleia Pantazi

Greece

2000

Rhythmic Gymnastics

0

0

1

1

Kim Martin

...