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
Presto实战
by
Matt Fuller
,
Manfred Moser
,
Martin Traverso
March 2021
Intermediate to advanced
265 pages
6h 50m
Chinese
Posts & Telecom Press
Content preview from
Presto实战
75
第
6
章
连接器
在第
3
章中,你配置了一个
catalog
,使用连接器来访问
Presto
中的数据源(尤其是
TPC-H
基准测试数据),然后学习了一些关于如何使用
SQL
查询这些数据的知识。
catalog
是使用
Presto
的一个重要方面
。它们定义了与底层数据源和存储系统的连接,并使
用了连接器、
schema
和表等概念
。第
4
章介绍了这些基本概念,第
8
章详细讨论了它们与
SQL
的使用。
连接器
将底层数据源(如
RDBMS
、对象存储或键值存储)的查询和存储概念翻译成
SQL
和
Presto
中
的表、列、行和数据类型的概念。它们可以是简单的
SQL
到
SQL
之间的转换和
映射,也可以是更复杂的
SQL
到对象存储或
NoSQL
系统的转换,还可以是由用户定义的。
可以像看待数据库的驱动程序一样看待连接器。它将用户的输入转化为底层数据库可以执
行的操作。每个连接器都实现了
Presto
服务提供者接口
(
service
provider
interface
,
SPI
)。
这让你能够用同一套
SQL
工具操作任意连接器暴露的底层数据源,
从而使
Presto
成为一个
SQL-on-Anything
的系统。
查询性能也受到连接器实现的影响。最基本的连接器与数据源之间建立单条连接,并将数
据提供给
Presto
。然而
,更高级的连接器可以将一条语句分解成多个连接,并行执行操作,
从而实现更好的性能。连接器的另一个高级功能是提供表统计信息,它们可以被基于代价
的优化器用来创建高性能的查询计划。然而,这样的连接器实现起来会更加复杂。
Presto
提供了众多的连接器。 ...
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
大数据项目管理:从规划到实现
Ted Malaska, Jonathan Seidman
数据库系统内幕
Alex Petrov
云原生:运用容器、函数计算和数据构建下一代应用
Boris Scholl, Trent Swanson, Peter Jausovec
Google系统架构解密: 构建安全可靠的系统
Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield
Publisher Resources
ISBN: 9787115560056