Text export method, system, computer device and computer readable storage medium
By setting the NULL value replacement function in the text export plug-in of the PDI platform, the problem of difficulty in processing NULL values in text export is solved and the text conversion efficiency is improved.
Patent Information
- Application Number
- CN202110724440.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-06-29
AI Technical Summary
When using PDI for text export operations, empty strings and NULL values cannot be distinguished, resulting in errors in calculation results and reducing text conversion efficiency.
Provides a text export method that improves the conversion efficiency of text conversion by setting placeholders for NULL value replacement in the user interface and judging and replacing NULL values in the text conversion task.
By replacing NULL values, calculation errors are avoided and the efficiency of text conversion tasks is improved.
Smart Images

Figure CN113378519B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing, and in particular to a text method, system, computer device and computer-readable storage medium. Background Art
[0002] ETL is the abbreviation of EXTRACT, TRANSFORM, and LOAD. Its goal is to load data from multiple heterogeneous data sources to the target database or other addresses. It is an important step in the construction and maintenance of data warehouses. PDI (Pentaho Data Integration, also known as Kettle) is an ETL tool that is open source and free. It is developed based on pure Java and is widely used in domestic telecommunications, electricity, banking, insurance, securities and other fields.
[0003] A common operation in the ETL process is to export data as text, transfer it to a remote server, and then load it into the target database or big data platform. However, when using PDI for text export operations, it is impossible to distinguish between empty strings and NULL values. The NULL value is a very special value in the database field, indicating missing unknown data. The NULL value is handled differently from other values. It is neither greater than any data, nor less than any data, and cannot be compared with 0. They are not equivalent. The values involved in any logical operation are NULL. If some values that should be NULL are replaced with other values, the calculation results may be changed, calculation problems may occur, and the efficiency of text conversion may be reduced. Summary of the invention
[0004] In view of this, an object of the embodiments of the present invention is to provide a text export method, system, computer device and computer-readable storage medium, which improve the conversion efficiency of text conversion.
[0005] To achieve the above object, an embodiment of the present invention provides a text export method, which is applied to a text export plug-in of a PDI platform. The text export plug-in includes an export setting component, a data processing component, an underlying basic function component, a user interface component, and a metadata component. The method includes:
[0006] Obtain the text export task in the export setting component;
[0007] Receive task setting information of the text export task set by the user through the user interface component;
[0008] Start the text export task through the underlying basic functional component;
[0009] Based on the text export task, obtaining a target original data set corresponding to the text export task from the metadata component;
[0010] Based on the task setting information, the target original data set is converted by the data processing component to obtain an exported text data set, and the exported text data set is output.
[0011] Furthermore, the task setting information includes replacement information of preset values.
[0012] Further, based on the task setting information, the target original data set is converted by the data processing component to obtain an exported text data set, and the exported text data set is output, including:
[0013] Determining, by the data processing component, whether there is replacement information of a preset value in the text export setting information;
[0014] If so, converting the original data set based on the text export setting information and converting the preset value in the original data set based on the replacement information;
[0015] If not, a preset replacement rule for the preset value is obtained, the original data set is converted based on the text export setting information, and the preset value in the original data set is converted based on the preset replacement rule.
[0016] Furthermore, before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method further includes:
[0017] Grab multiple raw data;
[0018] The multiple original data are classified according to data types to obtain multiple original data sets, and the original data sets are stored in a database.
[0019] Further, starting the text export task through the underlying basic functional component includes:
[0020] The text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the text export task.
[0021] Furthermore, before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method further includes:
[0022] Acquire the task type of the text export task through the STEP engine, and determine the task flow of the text export task based on the task type, wherein the task flow includes data acquisition, data conversion, and data export;
[0023] The task flow of executing the text export task is based on the JOB engine.
[0024] Furthermore, based on the text export task, obtaining a target original data set corresponding to the text export task from the metadata component includes:
[0025] When the text export task is executed to the data acquisition node, the database access engine is started to acquire the target original data set corresponding to the text export task from the database.
[0026] To achieve the above purpose, an embodiment of the present invention provides a text export system, which is applied to a text export plug-in of a PDI platform, including:
[0027] Export settings component, used to set and store text export tasks;
[0028] A user interface component, configured to receive task setting information of the text export task set by a user based on the text export task;
[0029] The underlying basic functional component is used to start the text export task;
[0030] A metadata component, used for acquiring a target original data set corresponding to the text export task based on the started text export task;
[0031] The data processing component is used to convert the target original data set based on the task setting information to obtain an exported text data set, and output the exported text data set.
[0032] To achieve the above-mentioned purpose, an embodiment of the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the steps of the text export method described above are implemented.
[0033] To achieve the above objectives, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by at least one processor so that the at least one processor performs the steps of the text export method as described above.
[0034] The text export method, system, computer device and computer-readable storage medium provided by the embodiments of the present invention realize the empty replacement function through the UI interface provided by the user interface component. A placeholder for replacing the NULL value can be set in the UI interface. When the text conversion task is started, the placeholder variable will be stored in the metadata component. When the task is executed, the output field of the original data set is judged. If it is NULL and the user sets a placeholder for replacement, the NULL value will be replaced and output, thereby improving the conversion efficiency of text conversion. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flowchart of Embodiment 1 of the text export method of the present invention.
[0036] Figure 2 This is a schematic diagram of the program modules of the second embodiment of the text export system of the present invention.
[0037] Figure 3 This is a schematic diagram of the hardware structure of the computer device embodiment 3 of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0039] Embodiment 1
[0040] See also Figure 1 , showing a flowchart of the steps of the text export method of the first embodiment of the present invention. It can be understood that the flowchart in the embodiment of the present method is not used to limit the order of executing the steps. The following is an exemplary description using the computer device 2 as the execution subject. The method is applied to the text export plug-in of the PDI platform, and the text export plug-in includes an export setting component, a data processing component, an underlying basic function component, a user interface component and a metadata component, as follows.
[0041] Step S100, obtaining the text export task in the export setting component.
[0042] Specifically, a text export task is set in advance in the export setting component. When text export is required, a text export task is created. In the text export task, it is set which database the data is to be exported from, the format of the data to be exported, such as the format of the text type, and other information.
[0043] Step S102: receiving task setting information of the text export task set by the user through the user interface component.
[0044] Specifically, the user can set the text export task on the interface provided by the user interface component, including how to trigger the text export task, whether to record when the task is executed, etc.
[0045] Exemplarily, the task setting information includes replacement information of a preset value.
[0046] Specifically, the replacement information can be a preset placeholder. The target original data set is converted in a preset format. When the text is exported, a placeholder is set to replace the empty character "" and NULL. A placeholder composed of multiple single characters can be used to form a composite string to avoid conversion errors caused by the placeholder being the same as the data value that is not an empty string. Because the expression of the NULL value placeholder may be inconsistent under different purposes, this embodiment can configure the NULL value placeholder according to different requirements.
[0047] Step S104: start the text export task through the underlying basic functional component.
[0048] Exemplarily, the step S104 includes:
[0049] The text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the text export task.
[0050] Specifically, the text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the task steps of the text export task. After the text export task is started, the text export task is marked by TextFileOutputData (underlying basic functional component), and a pending mark is marked, so that the pending mark can be identified by the subsequent data processing component to perform the text conversion operation in the text export task.
[0051] Step S106: Based on the text export task, a target original data set corresponding to the text export task is obtained from the metadata component.
[0052] Specifically, the original data set that needs to be exported from the database is obtained through the PDI platform, and the original data set can also be extracted through the PDI platform and stored in the PDI platform, and the data can be extracted when needed.
[0053] Exemplarily, before step S106, the following steps are included:
[0054] Step S110, capturing a plurality of original data. Step S112, classifying the plurality of original data according to data types to obtain a plurality of original data sets, and storing the original data sets in a database.
[0055] Specifically, data types include text types, chart types, etc. Text type data is stored in a text data set, chart type data is stored in a chart data set, and then stored in a database. You can also directly create a text database and store text type data in the text database. When storing, you can classify the original data by the acquisition platform, acquisition time, etc., to facilitate search and task allocation.
[0056] Exemplarily, before step S106, the following steps are further included:
[0057] Step S120, obtaining the task type of the text export task through the STEP engine, and determining the task flow of the text export task based on the task type, wherein the task flow includes data acquisition, data conversion, and data export. Step S121, executing the task flow of the text export task based on the JOB engine.
[0058] Specifically, the task types include text import, text export, chart export, etc. For example, text import is to convert data from other platforms and store it in the database of the PDI platform, or it can be directly stored without conversion. The task type of the text export task is text export. The STEP engine sets task nodes for the text export task to form a task flow, including data acquisition, data conversion, data export, etc. The task nodes between the task flows flow, and the task nodes flow through the task flow line, which is also part of the STEP engine setting. After the task flow is set, it is executed through the JOB engine. For example, the JOB engine performs distributed data conversion processing, and multiple data conversion servers are used to acquire data and convert data for the target original data set.
[0059] Exemplarily, the step S106 includes:
[0060] When the text export task is executed to the data acquisition node, the database access engine is started to acquire the target original data set corresponding to the text export task from the database.
[0061] Specifically, when the text export task is executed to the data acquisition node, the database access engine is started to obtain the target original data set corresponding to the text export task, so as to perform text conversion and text export of the target original data set.
[0062] Step S108: Based on the task setting information, the target original data set is converted by the data processing component to obtain an exported text data set, and the exported text data set is output.
[0063] Specifically, according to the set text export task, the original data set is converted, a conversion is created based on the text export task through the PDI platform, and then the original data set is converted according to the text export setting information based on the data processing component to obtain an export text data set, and then the export text data set is exported. After the original data set is converted to an export file data set, the text export task can be marked through TextFileOutputData (underlying basic function), and the mark is marked with a completion mark, indicating that the text export task has been completed and the next text export can be performed.
[0064] Exemplarily, the step S108 includes:
[0065] Step S108A, determining whether there is replacement information of a preset value in the text export setting information through the data processing component. Step S108B, if there is, converting the original data set based on the text export setting information and converting the preset value in the original data set based on the replacement information. Step S108C, if there is not, obtaining a preset replacement rule for the preset value, converting the original data set based on the text export setting information and converting the preset value in the original data set based on the preset replacement rule.
[0066] Specifically, if there is replacement information of preset values in the text export setting information, the original data set is converted according to the set text export task, a conversion is created based on the text export task through the PDI platform, and then the original data set is converted according to the text export setting information based on the data processing component to obtain an exported text data set, and then the exported text data set is exported. If there is no replacement information of preset values in the text export setting information, the preset values in the original data set are converted according to the preset replacement rules. The preset replacement rules are the default replacement logic of the PDI component, and the position where the NULL value is inserted is selected and marked to avoid errors when the data processing component is processed. This embodiment determines whether placeholder replacement is required each time the text is exported, and adds logical judgment. After the original data set is converted to the export file data set, the text export task can be marked by TextFileOutputData (underlying basic function), and the mark is marked with a completion mark, indicating that the text export task has been completed and the next text export can be performed.
[0067] Exemplarily, the method further includes:
[0068] A plug-in package of a text export plug-in is pre-set; the plug-in package is installed in a preset directory through the PDI platform plug-in management module, and the text export plug-in is obtained after loading.
[0069] Specifically, the PDI platform is designed and developed based on the platform + plug-in architecture. The PDI platform is an ETL platform and a Kettle platform, which provides plug-in registration, management, and calling functions. Register the text export plug-in in the PDI platform in advance, package the text export plug-in in the form of a file, and store it in a specific PDI directory, that is, the directory set during registration. When the PDI platform is restarted, the text export plug-in can be recognized and used through the PDI program. This text export plug-in is developed strictly in accordance with the PDI interface, and the data format is consistent with that of the native plug-in, and can be seamlessly connected. It also provides a UI interface, and the operating habits are consistent with the native system, which is easy to operate. This embodiment relies on the plug-in mechanism of the PDI platform, and develops several classes in the text export plug-in, including TextFileField (export setting component), TextFileOutput (data processing component), TextFileOutputData (underlying basic function component), TextFileOutputDialog (user interface component), and TextFileOutputMeta (metadata component), and implements necessary plug-in mechanism interfaces such as StepInterface data processing interface, StepDataInterface component working status interface, StepDialogInterface component UI interface interface, StepMetaInterface component metadata related interface, and ResolvableResource, and completes the user interface, metadata storage, input file information tag, output file information tag, data export and other functions through the above interface calls to the corresponding components, and replaces the null value with the sub-function of data export. In addition, this text export plug-in can run on different platforms such as Linux / Windows, without the need to develop different versions for multiple platforms.
[0070] Embodiment 2
[0071] Please continue reading Figure 2, showing a program module schematic diagram of the second embodiment of the text export system of the present invention, which is applied to the text export plug-in of the PDI platform. In this embodiment, the text export system 20 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the present invention and implement the above-mentioned text export method. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments that can perform specific functions, which is more suitable for describing the execution process of the text export system 20 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment:
[0072] The export setting component 200 is used to set and store text export tasks.
[0073] Specifically, a text export task is set in advance in the export setting component. When text export is required, a text export task is created. In the text export task, it is set which database the data is to be exported from, the format of the data to be exported, such as the format of the text type, and other information.
[0074] The user interface component 202 is used to receive task setting information of the text export task set by the user based on the text export task.
[0075] Specifically, the user can set the text export task on the interface provided by the user interface component, including how to trigger the text export task, whether to record when the task is executed, etc.
[0076] Exemplarily, the task setting information includes replacement information of a preset value.
[0077] Specifically, the replacement information can be a preset placeholder. The target original data set is converted in a preset format. When the text is exported, a placeholder is set to replace the empty character "" and NULL. A placeholder composed of multiple single characters can be used to form a composite string to avoid conversion errors caused by the placeholder being the same as the data value that is not an empty string. Because the expression of the NULL value placeholder may be inconsistent under different purposes, this embodiment can configure the NULL value placeholder according to different requirements.
[0078] The underlying basic functional component 204 is used to start the text export task.
[0079] Exemplarily, the text export task is started through the underlying basic functional component to trigger the start of the STEP engine, JOB engine and database access engine of the PDI platform to perform the text export task.
[0080] Specifically, the text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the task steps of the text export task. After the text export task is started, the text export task is marked by TextFileOutputData (underlying basic functional component), and a pending mark is marked, so that the pending mark can be identified by the subsequent data processing component to perform the text conversion operation in the text export task.
[0081] The metadata component 206 is used to obtain the target original data set corresponding to the text export task based on the started text export task.
[0082] Specifically, the original data set that needs to be exported from the database is obtained through the PDI platform, and the original data set can also be extracted through the PDI platform and stored in the PDI platform, and the data can be retrieved when needed.
[0083] Exemplarily, the metadata component 206 is further used to:
[0084] When the text export task is executed to the data acquisition node, the database access engine is started to acquire the target original data set corresponding to the text export task from the database.
[0085] Specifically, when the text export task is executed to the data acquisition node, the database access engine is started to obtain the target original data set corresponding to the text export task, so as to perform text conversion and text export of the target original data set.
[0086] The data processing component 208 is used to convert the target original data set based on the task setting information to obtain an exported text data set, and output the exported text data set.
[0087] Specifically, according to the set text export task, the original data set is converted, a conversion is created based on the text export task through the PDI platform, and then the original data set is converted according to the text export setting information based on the data processing component to obtain an export text data set, and then the export text data set is exported. After the original data set is converted to an export file data set, the text export task can be marked through TextFileOutputData (underlying basic function), and the mark is marked with a completion mark, indicating that the text export task has been completed and the next text export can be performed.
[0088] Exemplarily, the data processing component 208 is further configured to:
[0089] The data processing component determines whether there is replacement information of a preset value in the text export setting information. If so, the original data set is converted based on the text export setting information and the preset value in the original data set is converted based on the replacement information. If not, a preset replacement rule for the preset value is obtained, the original data set is converted based on the text export setting information and the preset value in the original data set is converted based on the preset replacement rule.
[0090] Specifically, if there is replacement information of preset values in the text export setting information, the original data set is converted according to the set text export task, a conversion is created based on the text export task through the PDI platform, and then the original data set is converted according to the text export setting information based on the data processing component to obtain an exported text data set, and then the exported text data set is exported. If there is no replacement information of preset values in the text export setting information, the preset values in the original data set are converted according to the preset replacement rules. The preset replacement rules are the default replacement logic of the PDI component, and the position where the NULL value is inserted is selected and marked to avoid errors when the data processing component is processed. This embodiment determines whether placeholder replacement is required each time the text is exported, and adds logical judgment. After the original data set is converted to the export file data set, the text export task can be marked by TextFileOutputData (underlying basic function), and the mark is marked with a completion mark, indicating that the text export task has been completed and the next text export can be performed.
[0091] Embodiment 3
[0092] See also Figure 3 , is a schematic diagram of the hardware architecture of the computer device of the third embodiment of the present invention. In this embodiment, the computer device 2 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 2 can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 3 As shown, the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and a text export system 20 that can be interconnected and communicated via a system bus. Among them:
[0093] In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 21 can be an internal storage unit of the computer device 2, such as a hard disk or memory of the computer device 2. In other embodiments, the memory 21 can also be an external storage device of the computer device 2, such as a plug-in hard disk equipped on the computer device 2, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 21 can also include both the internal storage unit of the computer device 2 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed on the computer device 2, such as the program code of the text export system 20 of the second embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.
[0094] The processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running the text export system 20 to implement the text export method of the first embodiment.
[0095] The network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the server 2 and other electronic devices. For example, the network interface 23 is used to connect the server 2 to an external terminal through a network, to establish a data transmission channel and a communication connection between the server 2 and the external terminal, etc. The network may be an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi and other wireless or wired networks. It should be pointed out that Figure 3Computer device 2 is shown only with components 20 - 23 , but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0096] In this embodiment, the text export system 20 stored in the memory 21 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (processor 22 in this embodiment) to complete the present invention.
[0097] For example, Figure 2 A schematic diagram of a program module for implementing the second embodiment of the text export system 20 is shown. In this embodiment, the text export system 20 can be divided into the export setting component, the user interface component, the underlying basic function component, the metadata component, and the data processing component. The program module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which is more suitable for describing the execution process of the text export system 20 in the computer device 2 than a program. The specific functions of the program modules 200-208 have been described in detail in the second embodiment and will not be repeated here.
[0098] Embodiment 4
[0099] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program implements the corresponding function when executed by the processor. The computer-readable storage medium of this embodiment is used for a computer program, and when executed by the processor, the text export method of the first embodiment is implemented.
[0100] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A text export method, characterized in that: In a text export plug-in applied to a PDI platform, the text export plug-in includes an export setting component, a data processing component, an underlying basic function component, a user interface component, and a metadata component, and the method includes: Obtain the text export task in the export setting component; Receive task setting information of the text export task set by the user through the user interface component; Start the text export task through the underlying basic functional component; Based on the text export task, obtaining a target original data set corresponding to the text export task from the metadata component; Based on the task setting information, the target original data set is converted by the data processing component to obtain an exported text data set, and the exported text data set is output; The task setting information includes replacement information of preset values; The step of converting the target original data set based on the task setting information through the data processing component to obtain an exported text data set, and outputting the exported text data set includes: Determining, by the data processing component, whether there is replacement information of a preset value in the task setting information; If so, converting the original data set based on the task setting information and converting the preset value in the original data set based on the replacement information; If not, obtaining a preset replacement rule for the preset value, converting the original data set based on the task setting information, and converting the preset value in the original data set based on the preset replacement rule; Before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method includes: Grab multiple raw data; Classifying the plurality of original data according to data types to obtain a plurality of original data sets, and storing the original data sets in a database; The starting the text export task through the underlying basic functional component includes: The text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the text export task; Before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method includes: Acquire the task type of the text export task through the STEP engine, and determine the task flow of the text export task based on the task type, wherein the task flow includes data acquisition, data conversion, and data export; Execute the task flow of the text export task based on the JOB engine; The step of acquiring a target original data set corresponding to the text export task from the metadata component based on the text export task includes: When the text export task is executed to the data acquisition node, the database access engine is started to acquire the target original data set corresponding to the text export task from the database.
2. A text export system, characterized in that: The text export plug-in used in the PDI platform includes: Export settings component, used to set and store text export tasks; A user interface component, configured to receive task setting information of the text export task set by a user based on the text export task; The underlying basic functional component is used to start the text export task; A metadata component, used for acquiring a target original data set corresponding to the text export task based on the started text export task; A data processing component, configured to convert the target original data set based on the task setting information to obtain an exported text data set, and output the exported text data set; The task setting information includes replacement information of preset values; The step of converting the target original data set based on the task setting information through the data processing component to obtain an exported text data set, and outputting the exported text data set includes: Determining, by the data processing component, whether there is replacement information of a preset value in the task setting information; If so, converting the original data set based on the task setting information and converting the preset value in the original data set based on the replacement information; If not, obtaining a preset replacement rule for the preset value, converting the original data set based on the task setting information, and converting the preset value in the original data set based on the preset replacement rule; Before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method includes: Grab multiple raw data; Classifying the plurality of original data according to data types to obtain a plurality of original data sets, and storing the original data sets in a database; The starting the text export task through the underlying basic functional component includes: The text export task is started through the underlying basic functional component to trigger the STEP engine, JOB engine and database access engine of the PDI platform to execute the text export task; Before obtaining the target original data set corresponding to the text export task from the metadata component based on the text export task, the method includes: Acquire the task type of the text export task through the STEP engine, and determine the task flow of the text export task based on the task type, wherein the task flow includes data acquisition, data conversion, and data export; Execute the task flow of the text export task based on the JOB engine; The step of acquiring a target original data set corresponding to the text export task from the metadata component based on the text export task includes: When the text export task is executed to the data acquisition node, the database access engine is started to acquire the target original data set corresponding to the text export task from the database.
3. A computer device, characterized in that: The computer device includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the computer program is executed by the processor, the steps of the text export method according to claim 1 are implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by at least one processor to enable the at least one processor to perform the steps of the text export method according to claim 1.
