Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data source general processing framework construction method and device and data source processing method and device

A construction method and data source technology, applied in the field of general processing framework construction of heterogeneous data sources, can solve the problems of wasting system resources, bloated and complex SpringBoot framework, and lack of versatility, so as to improve running speed and efficiency and simplify operations. Logic, the effect of reducing the number of connections

Active Publication Date: 2018-07-31
ZHONGKE DINGFU BEIJING TECH DEV
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the JDBC interface program in the prior art can only be used to process non-relational data sources, and the JDBC interface program needs to connect to the data source every time it processes the data source, and needs to close the connection after the data source is processed. Therefore, if the data source is frequently processed, the JDBC interface program needs to frequently create and close connection data, wasting system resources, thereby reducing the data source processing efficiency
Although the Spring Boot framework in the prior art can handle some relational data sources (SQL) and non-relational data sources (NoSQL), the types of applicable data sources are limited and not universal; Sources use different processing methods. When there are many types of data sources, the Spring Boot framework becomes bloated and complicated, thereby reducing the efficiency of data source processing.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data source general processing framework construction method and device and data source processing method and device
  • Data source general processing framework construction method and device and data source processing method and device
  • Data source general processing framework construction method and device and data source processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] The embodiment of the present application provides a method for constructing a general data source processing framework, figure 1 A schematic structural diagram of a data source general processing framework created for the embodiment of this application, such as figure 1 As shown, the general data source processing framework created by the embodiment of the present application includes a unified operation interface, general abstract classes and specific abstract classes.

[0060] figure 2 A flow chart of a method for constructing a data source general processing framework provided by the embodiment of this application, such as figure 2 shown, based on figure 1 The structure of the general processing framework is shown, and a method for constructing a data source general processing framework provided by the embodiment of the present application includes the following steps:

[0061] Step S110, constructing the unified operation interface according to the operation t...

Embodiment 2

[0100] The embodiment of the present application provides a data source operation method, which applies the general processing framework constructed in the first embodiment of the present application, Figure 6 An application block diagram of a general processing framework for a data source operation method provided in the embodiment of this application, Figure 7 A flow chart of a data source operation method provided by the embodiment of this application, such as Figure 6 and Figure 7 As shown, the method includes the following steps:

[0101] Step S210, construct an entity class for each type of data source to be processed, and add annotations to the entity class; the annotation identifies the corresponding relationship between the entity class and the data source to be processed, and the primary key and The corresponding relationship of the primary key of the data source to be processed.

[0102] In this application, each entity class corresponds to a data source (or ...

Embodiment 3

[0118] The embodiment of the present application provides another data source processing method, which applies the general processing framework constructed in the first embodiment of the present application, Figure 9 An application block diagram of a general processing framework for another data source operation method provided in the embodiment of this application, Figure 10 The flow chart of another data source operation method provided by the embodiment of this application, such as 9 and Figure 10 As shown, the method includes the following steps:

[0119] Step S310, obtaining connection information of the data source to be processed; the connection information includes one or more of the driving information of the data source, the address of the data source, the user name of the data source, and the password of the data source.

[0120] Step S320, according to the connection information, connect the entity class framework and the data source to be processed.

[0121] ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention provide a data source general processing framework construction method and device and data source processing method and device. According to the data source general processing framework construction method and device, a general processing framework which comprises a uniform operation interface, a general abstract class and a specific abstract class can be constructed,wherein the uniform operation interface is used for unifying and classifying operation interfaces of various types of data sources; and the general abstract class and the specific abstract class are used for hierarchically packaging common data operations and specific data operations of the data sources. By applying the constructed general processing framework, data operations for various types ofdata sources can be completed through the general abstract class and the specific abstract class in the general processing framework by calling the uniform operation interface, and interface connection does not need to be established for each database, so that the connection number of data source system resources is decreased, the data source operation logic is simplified, the data source systemresource occupation is reduced, and the data source system operation speed and efficiency are improved.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a general processing framework construction method, processing method and device for heterogeneous data sources. Background technique [0002] With the development of computer technology and Internet technology and the advent of the era of big data, the amount of data on the Internet has grown rapidly. In the Internet world, various types of data are continuously generated, disseminated and accumulated. Therefore, in the prior art, in order to realize the processing, analysis and management of a large amount of data, many data storage technologies have emerged. These data storage technologies store a certain type of data in a specific format to generate a data source. [0003] Data sources in the prior art mainly include relational data source (SQL) and non-relational data source (NoSQL), wherein: relational data source (SQL) includes MySQL database, Oracle ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/23G06F16/25
Inventor 刘虎李德彦王文军
Owner ZHONGKE DINGFU BEIJING TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products