当前位置:网站首页>Explanation of input components in Chapter 16
Explanation of input components in Chapter 16
2022-04-23 13:24:00 【Feige big data】
introduction
In the last article , We introduced :XML input stream (StAX) Various detailed settings of components , Finally, the actual combat demonstrates how to operate it to read the data on the disk xml file 、 And the operation of cleaning data .
In this article , Let's go on to introduce :kettle Input components in , Previously, we introduced some common input components . This article expands to explain some uncommon components , These components are very simple to operate , So I'll just show you how to operate , I won't explain the options in detail as before , You can see how to use .
transformation
transformation (transaformation) yes ETL The main part of the solution , It handles extraction 、 transformation 、 Loading various operations on data lines .
Create transformations
What we have to do ETL operation , It's all designed in transformation , So we need to create a transformation first .


Save conversion

Give you a new conversion , Name it , And save


Generate records
brief introduction
You need to turn part of the text data into data lines , Each field acts as a column of a data row , Then you can use this component



Preview the record



Generate random number
brief introduction
In the use of Kettle During data warehousing , It often involves for ID Field generates a unique identifier , and UUID It's usually our choice to generate a unique representation , This is the time to use “ Generate random number ” Functional operators , adopt “ Generate random number ” Can generate UIID.
On a daily basis , Sometimes I just want to test with some data , But I don't want to get it from the database or Excel Input , Then you can generate random numbers .



Preview the record ( Execute many times )





You can see , The result of each run is different , Because every time it's a random number .
Custom constant data
brief introduction
Custom constant data , It's generation key-value Constant data in the form of .




Preview the record



Get system information
brief introduction
System information refers to Kettle Information about the system environment , Include the date of the computer system , Time type information such as week , Computer name 、IP Address 、 Start and end time of conversion or job ( Used for incremental data processing )、 Information about the completion of the previous job and command line parameters, etc .
By obtaining system information components , We can get these data .


choice Type of system information

List Kettle All types of information are supported

Customize several system changes

Preview the record



Conclusion
This article mainly explains : Generate record component 、 Generate random number components 、 Custom constant data component 、 Get system information components .
As of this article ,kettle Input components for , All the commonly used basics are introduced . The main explanation in the follow-up is :kettle The output components of .
brother , In fact, there is a distance between thinking and acting , If you think about it, it's gone , But you're doing it , It landed .
Don't say anything , Brothers, follow me and it's over , We still break up the way of kneading to say . The following content is more wonderful , Coming soon , Thank you for your attention !!
版权声明
本文为[Feige big data]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231151524383.html
边栏推荐
- Mui wechat payment pit
- [quick platoon] 215 The kth largest element in the array
- Common analog keys of ADB shell: keycode
- Using open to open a file in JNI returns a - 1 problem
- ECDSA signature verification principle and C language implementation
- torch. Where can transfer gradient
- AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
- 5 tricky activity life cycle interview questions. After learning, go and hang the interviewer!
- LeetCode_ DFS_ Medium_ 695. Maximum area of the island
- How to build a line of code with M4 qprotex
猜你喜欢

Example interview | sun Guanghao: College Club grows and starts a business with me

Data warehouse - what is OLAP

AUTOSAR from introduction to mastery 100 lectures (81) - FIM of AUTOSAR Foundation
![[official announcement] Changsha software talent training base was established!](/img/ee/0c2775efc4578a008c872022a95559.png)
[official announcement] Changsha software talent training base was established!

初鉴canvas,展示个小小的小案例

CSDN高校俱乐部“名师高校行”——湖南师范大学站
![[point cloud series] unsupervised multi task feature learning on point clouds](/img/b0/4bead66deb8667bca287a3a191c182.png)
[point cloud series] unsupervised multi task feature learning on point clouds

ESP32 VHCI架构传统蓝牙设置scan mode,让设备能被搜索到

2020年最新字节跳动Android开发者常见面试题及详细解析

SHA512 / 384 principle and C language implementation (with source code)
随机推荐
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
MySQL basic statement query
Common interview questions and detailed analysis of the latest Android developers in 2020
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
Request和Response及其ServletContext总结
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
X509 parsing
You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
./gradlew: Permission denied
CMSIS cm3 source code annotation
叮~ 你的奖学金已到账!C认证企业奖学金名单出炉
mui + hbuilder + h5api模拟弹出支付样式
[dynamic programming] 221 Largest Square
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Mysql数据库的卸载
Migrating your native/mobile application to Unified Plan/WebRTC 1.0 API
[51 single chip microcomputer traffic light simulation]
[notes de marche]
ECDSA signature verification principle and C language implementation
PyTorch 21. NN in pytorch Embedding module