Data extraction method and apparatus adaptive to multiple data sources
A data extraction and data source technology, applied in the field of information processing, can solve problems such as high hard coding costs and poor stability, and achieve the effect of reducing maintenance costs and improving stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] refer to figure 1 , which shows a flow chart of the steps of Embodiment 1 of a data extraction method adapted to multiple data sources according to the present invention, which may specifically include:
[0042] Step 101, determine the corresponding data extraction rules according to the target data source type;
[0043] Specifically, the target data source adapted by the embodiment of the present invention may be a relational database, a non-relational database NoSQL, and a data file. Wherein, relational database can be any type of relational database such as Oracle, MySQL, DB2, SQL Server; Data file can be TXT, XML, Excel, CSV etc., the present invention is to the type of relational database, the type of non-relational database And the type of data file is not limited.
[0044] Among them, the data extraction rules describe how to extract data from the corresponding target data source. During specific implementation, the corresponding data extraction rules are deter...
Embodiment 2
[0062] refer to figure 2 , which shows a flow chart of steps in Embodiment 2 of a data extraction method adapted to multiple data sources according to the present invention, which may specifically include:
[0063] Step 201, pre-set data extraction rules in the configuration file;
[0064] Step 202, determine the corresponding data extraction rules from the configuration file according to the target data source type;
[0065] Step 203, generating a data extraction instruction according to the determined data extraction rule;
[0066] Specifically, the data extraction instruction may be generated according to the determined data extraction rule ID and actual required parameters. If the current data extraction instruction is a SQL statement or a stored procedure, it will be assigned and executed directly according to the parameters passed in; if the data extraction rule is defined in the form of a data extraction class, the parameters will be dynamically instantiated through ...
Embodiment 3
[0076] refer to image 3 , shows a structural block diagram of an embodiment of a data extraction device adapted to multiple data sources in the present invention, the device includes: an extraction rule determination module 301, an extraction instruction generation module 302, a data source adaptation module 303, and an instruction execution module Module 304; wherein,
[0077] An extraction rule determination module 301, configured to determine a corresponding data extraction rule according to the target data source type;
[0078] An extraction instruction generation module 302, configured to generate a data extraction instruction according to the data extraction rule;
[0079] A data source adaptation module 303, configured to perform adaptation processing on the target data source;
[0080] An instruction execution module 304, configured to execute the data extraction instruction to obtain target data from the target data source.
[0081] In an optional embodiment of th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


