CN115729922A - High-speed data cleaning method based on plug-in hot update technology - Google Patents
High-speed data cleaning method based on plug-in hot update technology Download PDFInfo
- Publication number
- CN115729922A CN115729922A CN202211510438.5A CN202211510438A CN115729922A CN 115729922 A CN115729922 A CN 115729922A CN 202211510438 A CN202211510438 A CN 202211510438A CN 115729922 A CN115729922 A CN 115729922A
- Authority
- CN
- China
- Prior art keywords
- plug
- data
- new source
- data cleaning
- cleaning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明属于计算机技术领域,具体涉及一种基于插件化热更新技术的高速数据清洗方法,具体应用于电力市场不同源不同格式数据接入规范化处理。The invention belongs to the field of computer technology, and specifically relates to a high-speed data cleaning method based on plug-in hot update technology, which is specifically applied to the standardization processing of data access from different sources and different formats in the electric power market.
背景技术Background technique
2022年5月,因有文件明确提出要提高电网接纳分布式新能源的能力,稳妥推进新能源参与电力市场交易。所以各地纷纷制定分布式发电市场化交易规则,加快推进分布式能源发展。In May 2022, due to a document clearly proposing to improve the ability of the power grid to accept distributed new energy, it is necessary to steadily promote the participation of new energy in electricity market transactions. Therefore, all regions have formulated market-oriented trading rules for distributed power generation to accelerate the development of distributed energy.
随着大量不同类型的绿色电力加入电力市场参与交易,大量的不同源不同格式数据的接入,对电力交易系统的数据集成带来巨大挑战。理想的方案是制定标准规范统一要求接入的数据内容和格式,但不同的设备、系统的厂家不一,特别是大量的已有设备,很难实现源端数据统一要求。只能通过开发程序进行数据清洗转化,传统的处理程序需要通过停机或者是通过脚本语言动态扩充的方案避免停机,难以同时兼顾灵活配置、无缝更新、高速处理的处理要求。因此如何克服现有技术的不足是目前计算机技术领域亟需解决的问题。As a large number of different types of green electricity join the electricity market to participate in the transaction, the access of a large number of data from different sources and in different formats poses a huge challenge to the data integration of the power trading system. The ideal solution is to formulate standards and standardize the data content and format that are required to be accessed in a unified manner. However, different equipment and systems have different manufacturers, especially a large number of existing equipment, and it is difficult to achieve unified requirements for source-end data. Data cleaning and conversion can only be performed through the development of programs. Traditional processing programs need to avoid downtime through shutdown or dynamic expansion of scripting languages. It is difficult to simultaneously meet the processing requirements of flexible configuration, seamless update, and high-speed processing. Therefore, how to overcome the deficiencies in the prior art is an urgent problem in the field of computer technology.
发明内容Contents of the invention
本发明的目的是为了解决现有技术的不足,提供一种基于插件化热更新技术的高速数据清洗方法。The purpose of the present invention is to provide a high-speed data cleaning method based on plug-in hot update technology in order to solve the deficiencies of the prior art.
为实现上述目的,本发明采用的技术方案如下:To achieve the above object, the technical scheme adopted in the present invention is as follows:
一种基于插件化热更新技术的高速数据清洗方法,包括如下步骤:A high-speed data cleaning method based on plug-in hot update technology, comprising the following steps:
步骤(1),判断接入队列设备是否有新来源的数据需要输入集成;若是,则转步骤(2);Step (1), determine whether the access queue device has data from a new source that needs to be input and integrated; if so, go to step (2);
步骤(2),检查现有数据清洗插件是否有能处理新来源的数据的数据格式;若不能处理,则步骤(3);若能处理,则进行步骤(6);Step (2), check whether the existing data cleaning plug-in has a data format that can process the data from the new source; if it cannot be processed, then step (3); if it can be processed, then go to step (6);
步骤(3),将新来源的数据的数据格式转换为标准的目标数据格式,并将转换过程编译、打包为插件,发布到服务端;Step (3), convert the data format of the new source data into a standard target data format, compile and package the conversion process as a plug-in, and publish it to the server;
步骤(4),在插件部署服务器上把步骤(3)传来的插件配置为新来源数据格式对应的数据清洗插件;Step (4), on the plug-in deployment server, configure the plug-in from step (3) as a data cleaning plug-in corresponding to the new source data format;
步骤(5),数据清洗处理设备节点从插件部署服务器下载新增插件,通过动态加载进行插件的热更新;Step (5), the data cleaning processing device node downloads the new plug-in from the plug-in deployment server, and performs hot update of the plug-in through dynamic loading;
步骤(6),采用相应的插件对新来源的数据进行数据清洗处理;Step (6), using corresponding plug-ins to perform data cleaning processing on the data from the new source;
步骤(7),输出数据清洗后的规范数据。Step (7), output the standardized data after data cleaning.
进一步,优选的是,步骤(3)中,根据待清洗的数据特征,把新来源的数据的数据格式转换成标准的目标数据格式,并将转换过程编译、打包为二进制插件,发布到服务端。Further, preferably, in step (3), according to the characteristics of the data to be cleaned, the data format of the new source data is converted into a standard target data format, and the conversion process is compiled and packaged into a binary plug-in, and released to the server .
进一步,优选的是,步骤(5)中,数据清洗处理设备节点根据数据格式从插件部署服务器下载新增插件,通过Java的ClassLoader类加载,将插件内的class加载到Java虚拟机JVM,将插件程序注册到注册系统,实现数据清洗插件程序逻辑的热更新。Further, preferably, in step (5), the data cleaning processing device node downloads the new plug-in from the plug-in deployment server according to the data format, loads the class in the plug-in to the Java virtual machine JVM through Java ClassLoader class loading, and loads the plug-in The program is registered to the registration system to realize the hot update of the data cleaning plug-in program logic.
本发明与现有技术相比,其有益效果为:Compared with the prior art, the present invention has the beneficial effects of:
一是灵活配置,插件化实现了灵活配置,对来自于各种源端电力设备数据和电力系统的不同源不同格式数据,可实现快速接入、清洗处理,输出标准的数据内容;One is flexible configuration. Plug-in realizes flexible configuration. For data in different sources and formats from various sources of power equipment data and power systems, it can realize fast access, cleaning processing, and output standard data content;
二是无缝更新,可在不中断运行其他数据清洗程序的情况下,对新类型数据进行随时更新的清洗处理逻辑;The second is seamless update, which can update the cleaning processing logic of new types of data at any time without interrupting the operation of other data cleaning programs;
三是运行速度快,因为插件是可直接运行的二进制程序,相对于解释型的脚本代码方案,二进制的插件程序运行处理速度更快。该方法具有一定实用的社会价值。The third is fast running speed, because the plug-in is a binary program that can be directly run. Compared with the interpreted script code scheme, the running and processing speed of the binary plug-in program is faster. This method has certain practical social value.
附图说明Description of drawings
图1为本发明的基于插件化热更新技术的高速数据清洗方法的系统结构图;Fig. 1 is the system structural diagram of the high-speed data cleaning method based on the plug-in thermal update technology of the present invention;
图2为本发明应用实例中的基于插件化热更新技术的高速数据清洗方法的流程。FIG. 2 is a flowchart of a high-speed data cleaning method based on plug-in hot update technology in an application example of the present invention.
具体实施方式Detailed ways
下面结合实施例对本发明作进一步的详细描述。The present invention will be further described in detail below in conjunction with the examples.
本领域技术人员将会理解,下列实施例仅用于说明本发明,而不应视为限定本发明的范围。实施例中未注明具体技术或条件者,按照本领域内的文献所描述的技术或条件或者按照产品说明书进行。所用材料或设备未注明生产厂商者,均为可以通过购买获得的常规产品。Those skilled in the art will understand that the following examples are only for illustrating the present invention and should not be considered as limiting the scope of the present invention. If no specific technique or condition is indicated in the examples, it shall be carried out according to the technique or condition described in the literature in this field or according to the product specification. The materials or equipment used are not indicated by the manufacturer, and they are all conventional products that can be obtained through purchase.
实施例1Example 1
一种基于插件化热更新技术的高速数据清洗方法,包括如下步骤:A high-speed data cleaning method based on plug-in hot update technology, comprising the following steps:
步骤(1),判断接入队列设备是否有新来源的数据需要输入集成;若是,则转步骤(2);Step (1), determine whether the access queue device has data from a new source that needs to be input and integrated; if so, go to step (2);
步骤(2),检查现有数据清洗插件是否有能处理新来源的数据的数据格式;若不能处理,则步骤(3);若能处理,则进行步骤(6);Step (2), check whether the existing data cleaning plug-in has a data format that can process the data from the new source; if it cannot be processed, then step (3); if it can be processed, then go to step (6);
步骤(3),将新来源的数据的数据格式转换为标准的目标数据格式,并将转换过程编译、打包为插件,发布到服务端;Step (3), convert the data format of the new source data into a standard target data format, compile and package the conversion process as a plug-in, and publish it to the server;
步骤(4),在插件部署服务器上把步骤(3)传来的插件配置为新来源数据格式对应的数据清洗插件;Step (4), on the plug-in deployment server, configure the plug-in from step (3) as a data cleaning plug-in corresponding to the new source data format;
步骤(5),数据清洗处理设备节点从插件部署服务器下载新增插件,通过动态加载进行插件的热更新;Step (5), the data cleaning processing device node downloads the new plug-in from the plug-in deployment server, and performs hot update of the plug-in through dynamic loading;
步骤(6),采用相应的插件对新来源的数据进行数据清洗处理;Step (6), using corresponding plug-ins to perform data cleaning processing on the data from the new source;
步骤(7),输出数据清洗后的规范数据。Step (7), output the standardized data after data cleaning.
实施例2Example 2
一种基于插件化热更新技术的高速数据清洗方法,包括如下步骤:A high-speed data cleaning method based on plug-in hot update technology, comprising the following steps:
步骤(1),判断接入队列设备是否有新来源的数据需要输入集成;若是,则转步骤(2);Step (1), determine whether the access queue device has data from a new source that needs to be input and integrated; if so, go to step (2);
步骤(2),检查现有数据清洗插件是否有能处理新来源的数据的数据格式;若不能处理,则步骤(3);若能处理,则进行步骤(6);Step (2), check whether the existing data cleaning plug-in has a data format that can process the data from the new source; if it cannot be processed, then step (3); if it can be processed, then go to step (6);
步骤(3),将新来源的数据的数据格式转换为标准的目标数据格式,并将转换过程编译、打包为插件,发布到服务端;Step (3), convert the data format of the new source data into a standard target data format, compile and package the conversion process as a plug-in, and publish it to the server;
步骤(4),在插件部署服务器上把步骤(3)传来的插件配置为新来源数据格式对应的数据清洗插件;Step (4), on the plug-in deployment server, configure the plug-in from step (3) as a data cleaning plug-in corresponding to the new source data format;
步骤(5),数据清洗处理设备节点从插件部署服务器下载新增插件,通过动态加载进行插件的热更新;Step (5), the data cleaning processing device node downloads the new plug-in from the plug-in deployment server, and performs hot update of the plug-in through dynamic loading;
步骤(6),采用相应的插件对新来源的数据进行数据清洗处理;Step (6), using corresponding plug-ins to perform data cleaning processing on the data from the new source;
步骤(7),输出数据清洗后的规范数据。Step (7), output the standardized data after data cleaning.
步骤(3)中,根据待清洗的数据特征,把新来源的数据的数据格式转换成标准的目标数据格式,并将转换过程编译、打包为二进制插件,发布到服务端。In step (3), according to the characteristics of the data to be cleaned, the data format of the new source data is converted into a standard target data format, and the conversion process is compiled and packaged into a binary plug-in and released to the server.
步骤(5)中,数据清洗处理设备节点根据数据格式从插件部署服务器下载新增插件,通过Java的ClassLoader类加载,将插件内的class加载到Java虚拟机JVM,将插件程序注册到注册系统,实现数据清洗插件程序逻辑的热更新。In step (5), the data cleaning processing device node downloads the new plug-in from the plug-in deployment server according to the data format, loads the class in the plug-in to the Java virtual machine JVM through Java ClassLoader class loading, and registers the plug-in program to the registration system. Realize hot update of data cleaning plug-in program logic.
应用实例Applications
1、本发明的系统结构图1. System structure diagram of the present invention
如图1所示,系统结构包括插件部署服务器、数据清洗处理设备节点、接入队列设备、输出队列设备。As shown in Figure 1, the system structure includes a plug-in deployment server, a data cleaning processing device node, an access queue device, and an output queue device.
2、下面结合图2做进一步详细说明,具体包括以下步骤:2. The following will be further described in detail in conjunction with Figure 2, specifically including the following steps:
(1)接入队列设备有新来源的数据需要输入集成,对数据来源配置编码,比如C000N;(1) The access queue device has data from a new source that needs to be input and integrated, and configure the code for the data source, such as C000N;
(2)检查现有数据清洗插件是否有能处理编码为C000N的数据来源格式;若不能处理,则步骤(3);若能处理,则进行步骤(6);(2) Check whether the existing data cleaning plug-in can handle the data source format coded as C000N; if it cannot be processed, go to step (3); if it can, go to step (6);
(3)将新来源的数据的数据格式转换为标准的目标数据格式,并将转换过程编译、打包为插件,发布到服务端;(3) Convert the data format of the new source data into a standard target data format, compile and package the conversion process into a plug-in, and publish it to the server;
具体地,编写新来源数据的清洗转换程序,通过实现预定义的数据清洗处理接口DataPurifyHandler,根据待清洗的数据特征,把新增的数据格式转换成标准的目标数据格式,比如时间格式转换为统一格式、业务类型编码转换为标准编码等;创建的插件程序,测试验证无误后,编译、打包为二进制插件,发布到服务端;Specifically, write a cleaning and conversion program for new source data, and convert the newly added data format into a standard target data format according to the characteristics of the data to be cleaned by implementing the predefined data cleaning processing interface DataPurifyHandler, such as converting the time format to a unified The format and business type codes are converted into standard codes, etc.; after the created plug-in program is tested and verified to be correct, it is compiled and packaged into a binary plug-in and released to the server;
(4)在插件部署服务器上把步骤(3)传来的插件配置为数据源C000N对应的数据清洗插件;(4) On the plug-in deployment server, configure the plug-in from step (3) as the data cleaning plug-in corresponding to the data source C000N;
(5)数据清洗处理设备节点从插件部署服务器下载新增插件,通过动态加载进行插件的热更新;(5) The data cleaning processing device node downloads the new plug-in from the plug-in deployment server, and performs hot update of the plug-in through dynamic loading;
具体地,数据清洗处理设备节点根据数据源编码C000N从插件部署服务器下载新部署的插件,通过Java的ClassLoader类加载,将插件内的class加载到Java虚拟机JVM,将插件程序注册到注册系统,实现数据清洗插件程序逻辑的热更新。Specifically, the data cleaning processing device node downloads the newly deployed plug-in from the plug-in deployment server according to the data source code C000N, loads the class in the plug-in to the Java virtual machine JVM through Java ClassLoader class loading, and registers the plug-in program to the registration system, Realize hot update of data cleaning plug-in program logic.
(6)热更新后的插件开始运行,对新增输入数据源C000N运行数据清洗处理;(6) The hot-updated plug-in starts to run, and runs data cleaning processing on the newly added input data source C000N;
(7)输出数据清洗后的规范数据。(7) Output the standardized data after data cleaning.
以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The basic principles, main features and advantages of the present invention have been shown and described above. Those skilled in the industry should understand that the present invention is not limited by the above-mentioned embodiments. What are described in the above-mentioned embodiments and the description only illustrate the principle of the present invention. Without departing from the spirit and scope of the present invention, the present invention will also have Variations and improvements are possible, which fall within the scope of the claimed invention. The protection scope of the present invention is defined by the appended claims and their equivalents.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211510438.5A CN115729922A (en) | 2022-11-29 | 2022-11-29 | High-speed data cleaning method based on plug-in hot update technology |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211510438.5A CN115729922A (en) | 2022-11-29 | 2022-11-29 | High-speed data cleaning method based on plug-in hot update technology |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115729922A true CN115729922A (en) | 2023-03-03 |
Family
ID=85299338
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211510438.5A Pending CN115729922A (en) | 2022-11-29 | 2022-11-29 | High-speed data cleaning method based on plug-in hot update technology |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115729922A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140181800A1 (en) * | 2012-12-14 | 2014-06-26 | Telefonaktiebolaget L M Ericsson (Publ) | Systems, methods, and computer program products for a software build and load process using a compilation and deployment service |
| CN111291034A (en) * | 2020-03-11 | 2020-06-16 | 北京价值互联科技有限公司 | Block chain plug-in data cleaning method, system, terminal and medium |
| CN113190543A (en) * | 2021-05-24 | 2021-07-30 | 全球能源互联网研究院有限公司 | Data cleaning method and device, electronic equipment and storage medium |
| CN114880169A (en) * | 2022-06-09 | 2022-08-09 | 杭州比智科技有限公司 | Method and system for realizing hot update dynamic adaptation based on JavaSPI |
-
2022
- 2022-11-29 CN CN202211510438.5A patent/CN115729922A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140181800A1 (en) * | 2012-12-14 | 2014-06-26 | Telefonaktiebolaget L M Ericsson (Publ) | Systems, methods, and computer program products for a software build and load process using a compilation and deployment service |
| CN111291034A (en) * | 2020-03-11 | 2020-06-16 | 北京价值互联科技有限公司 | Block chain plug-in data cleaning method, system, terminal and medium |
| CN113190543A (en) * | 2021-05-24 | 2021-07-30 | 全球能源互联网研究院有限公司 | Data cleaning method and device, electronic equipment and storage medium |
| CN114880169A (en) * | 2022-06-09 | 2022-08-09 | 杭州比智科技有限公司 | Method and system for realizing hot update dynamic adaptation based on JavaSPI |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8819647B2 (en) | Performance improvements for nested virtual machines | |
| CN103218294B (en) | A kind of adjustment method of embedded system, debugging conversion equipment and system | |
| US9753705B2 (en) | Conditional compilation of bytecode | |
| CN110968352B (en) | Reset system and server system of PCIE equipment | |
| CN114327481A (en) | Code processing method, device, equipment and storage medium | |
| Kyusakov et al. | Exip: A framework for embedded web development | |
| TW202403541A (en) | Systems, methods, devices and media for introducing mini programs into third-party mobile applications | |
| CN103544016A (en) | Service registering configuration method and system based on JAVA reflection technology | |
| WO2025124349A1 (en) | Business script rendering method and apparatus, and storage medium and electronic device | |
| CN102708051A (en) | Continuous integration method and continuous integration system for program | |
| CN115729922A (en) | High-speed data cleaning method based on plug-in hot update technology | |
| CN107222363B (en) | Storage protocol consistency test method and system | |
| de Vries-Gao | Artificial intelligence: Supply chain constraints and energy implications | |
| CN112650502A (en) | Batch processing task processing method and device, computer equipment and storage medium | |
| CN112905170B (en) | Channel package generation method, device, equipment and storage medium | |
| WO2020181473A1 (en) | CIRCUIT STRUCTURE, SYSTEM ON CHIP (SoC), AND DATA PROCESSING METHOD | |
| CN114356320A (en) | Method and device for generating conversion dynamic library | |
| CN114443375A (en) | Test method and device, electronic device and computer readable storage medium | |
| CN109783132B (en) | A realization method and device that can adapt to system singulation and distribution | |
| CN114064153B (en) | Method and device for loading embedded dynamic module based on multi-core processor | |
| CN112052040B (en) | Processing method, device, computer equipment and storage medium | |
| CN111625373A (en) | Function access method and device, electronic equipment and storage medium | |
| CN118535212A (en) | Control method based on ore-grade configuration system | |
| CN115357227B (en) | Code integration method, device, equipment and medium | |
| CN107690003A (en) | Web Service service dynamic publishing and management method under a kind of OSGI frameworks based on CXF |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |