Offline data processing method, device, electronic device and computer readable medium

By using distributed messaging system subscription information to obtain and format offline data in offline data processing, the problem of poor reusability of business logic is solved, unified processing of different business scenarios is achieved, and processing efficiency is improved.

CN112579326BActive Publication Date: 2024-10-18BEIJING 58 INFORMATION TTECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202011604530.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2024-10-18
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

In existing offline data processing methods, the reusability of business logic is poor, and customized offline data processing tasks need to be performed for each business, resulting in low processing efficiency.

Method used

Obtain pre-filtered offline data through the distributed messaging system subscription information, perform unified format processing and content correction processing to ensure that the offline data format and content are consistent with online data, thereby achieving unified processing of different business scenarios.

Benefits of technology

It improves the reusability of business logic in offline data processing, reduces the need for customized processing of each business, and simplifies the data processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579326B_ABST
    Figure CN112579326B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose an offline data processing method, device, electronic device and computer-readable medium. A specific implementation of the method includes: obtaining pre-filtered offline data from a distributed message system according to distributed message system subscription information, wherein the distributed message system subscription information is used to indicate the storage location of the pre-filtered offline data in the distributed message system; performing format unification processing on the pre-filtered offline data to obtain offline data in a target format; performing content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data. This implementation does not require customized offline data processing tasks to be performed for each business, thereby improving the reusability of the business logic of offline data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to an offline data processing method, device, electronic device, and computer-readable medium. Background Art

[0002] Offline data refers to historical business data generated after the business goes online, which can be login logs, access logs, etc. At present, when processing offline data, the commonly used method is to process offline data through the mapping-reduction programming model of the distributed file system (for example, MapReduce) or a general computing engine (for example, Spark).

[0003] However, when the above method is used to process offline data, the following technical problems often occur: a customized offline data processing task needs to be performed for each business, resulting in poor reusability of the business logic of offline data processing. Summary of the invention

[0004] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0005] Some embodiments of the present disclosure propose an offline data processing method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0006] In a first aspect, some embodiments of the present disclosure provide an offline data processing method, the method comprising: obtaining pre-filtered offline data from a distributed message system according to distributed message system subscription information, wherein the distributed message system subscription information is used to indicate a storage location of the pre-filtered offline data in the distributed message system; performing format unification processing on the pre-filtered offline data to obtain offline data in a target format; performing content correction processing on the offline data in the target format to obtain corrected data consistent with the content of online data.

[0007] In a second aspect, some embodiments of the present disclosure provide an offline data processing device, the device comprising: an acquisition unit, configured to acquire pre-filtered offline data from a distributed message system according to distributed message system subscription information, wherein the distributed message system subscription information is used to indicate a storage location of the pre-filtered offline data in the distributed message system; a format unification processing unit, configured to perform format unification processing on the pre-filtered offline data to obtain offline data in a target format; and a content correction processing unit, configured to perform content correction processing on the offline data in the target format to obtain corrected data consistent with the content of the online data.

[0008] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0009] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0010] The above-mentioned embodiments of the present disclosure have the following beneficial effects: First, according to the subscription information of the distributed message system, the pre-filtered offline data is obtained from the distributed message system, wherein the subscription information of the distributed message system is used to indicate the storage location of the pre-filtered offline data in the distributed message system. Thus, the pre-filtered offline data that needs to be further processed can be obtained from the distributed message system. Then, the pre-filtered offline data is processed in a unified format to obtain offline data in a target format. Thus, the format of the pre-filtered offline data is converted into a unified data format, which is convenient for unified processing. Finally, the offline data in the target format is processed for content correction to obtain corrected data that is consistent with the content of the online data. Thus, the content of the offline data as historical data can be kept consistent with the online data, which is convenient for the subsequent use of the offline data. Therefore, the present disclosure realizes the unified processing of offline data in different business scenarios, without the need to perform customized offline data processing tasks for each business. Thus, the reusability of the business logic of offline data processing is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0012] Figure 1 is a schematic diagram of an application scenario of an offline data processing method according to some embodiments of the present disclosure;

[0013] Figure 2 is a flow chart of some embodiments of the offline data processing method according to the present disclosure;

[0014] Figure 3 are flow charts of other embodiments of the offline data processing method according to the present disclosure;

[0015] Figure 4 is a schematic diagram of field completion of an offline data processing method according to other embodiments of the present disclosure;

[0016] Figure 5 is a schematic diagram of the structure of some embodiments of the offline data processing device according to the present disclosure;

[0017] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] Figure 1 It is a schematic diagram of an application scenario of the offline data processing method of some embodiments of the present disclosure.

[0024] exist Figure 1 In the application scenario, first, the computing device 101 can obtain the pre-filtered offline data 103 from the distributed messaging system 102 according to the distributed messaging system subscription information, wherein the distributed messaging system subscription information is used to indicate the storage location of the pre-filtered offline data 103 in the distributed messaging system 102. Then, the computing device 101 can perform format unification processing on the pre-filtered offline data 103 to obtain offline data 104 in the target format. Finally, the computing device 101 can perform content correction processing on the offline data 104 in the target format to obtain corrected data 105 that is consistent with the content of the online data.

[0025] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.

[0026] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.

[0027] Specifically, the reason for the poor reusability of the business logic of the related offline data processing is that it is necessary to perform customized offline data processing tasks for each business. Based on this, the above problem can be solved by the steps in the process 200 or 300 of some embodiments of the offline data processing method disclosed in the present invention.

[0028] Continue to refer Figure 2 , shows a process 200 of some embodiments of the offline data processing method according to the present disclosure. The offline data processing method comprises the following steps:

[0029] Step 201: Obtain pre-filtered offline data from the distributed messaging system according to the subscription information of the distributed messaging system.

[0030] In some embodiments, the execution body of the offline data processing method (such as Figure 1The computing device 101 shown in the figure can obtain pre-filtered offline data from the distributed messaging system through a wired connection or a wireless connection according to the distributed messaging system subscription information. The above-mentioned distributed messaging system subscription information is used to indicate the storage location of the above-mentioned pre-filtered offline data in the above-mentioned distributed messaging system. The above-mentioned distributed messaging system may refer to a message system that supports distributed processing and is built using a distributed software system. The above-mentioned distributed messaging system may be a high-throughput distributed publish-subscribe messaging system (for example, Kafka). The above-mentioned distributed messaging system may also be a messaging system for storing and forwarding messages in a distributed system (for example, RabbitMQ). The above-mentioned distributed messaging system subscription information may be the Kafka-Consumer configuration parameter information in Kafka. The above-mentioned execution subject may obtain offline data stored on a specific node in the Kafka cluster according to the above-mentioned Kafka-Consumer configuration parameter information.

[0031] In some optional implementations of some embodiments, the pre-filtered offline data in the above distributed messaging system may be obtained by the following steps:

[0032] The first step is to obtain the original offline data from the distributed file system according to the original offline data address. The distributed file system may be a file system that allows files to be shared on multiple hosts through a network. The distributed file system may be HDFS (Hadoop Distributed File System), FastDFS (Fast Distributed File System), Ceph, etc. The original offline data address may be used to indicate the storage location of the original offline data in the distributed file system.

[0033] As an example, the above-mentioned original offline data may be user login log data. Each user login log in the above-mentioned user login log data may include: user unique identification code, login time, logout time, login status. As an example, the above-mentioned user login log data may be {[01, 2020-11-19-16:12:21, 2020-11-19-17:10:01, successful login], [002, 2020-11-18-02:57:19, 2020-11-18-03:30:22, successful login], [01, 2020-11-18-14:11:12, null, failed login], [03, 2020-11-19-16:12:21, 2020-11-19-16:42:25, successful login]}. When the login status is "login failed", the corresponding logout time can be marked as "null".

[0034] The second step is to perform preliminary filtering on the original offline data according to the pre-set pre-processing filtering conditions to obtain preliminary filtered data. The pre-processing filtering conditions can be used to filter the original offline data.

[0035] As an example, the pre-processing filtering condition may be that the login status in the user login log is "login successful" and the login time is between 2020-11-19-00:00:00 and 2020-11-19-59:59:59. Then, the original offline data is preliminarily filtered according to the pre-processing filtering condition, and the obtained preliminary filtered data may be {[01, 2020-11-19-16:12:21, 2020-11-19-17:10:01, login successful], [03, 2020-11-19-16:12:21, 2020-11-19-16:42:25, login successful]}.

[0036] The third step is to send the preliminary filtered data as the pre-filtered offline data to the distributed messaging system.

[0037] Step 202: Perform format unification processing on the pre-filtered offline data to obtain offline data in a target format.

[0038] In some embodiments, the execution subject may perform format unification processing on the pre-filtered offline data to obtain offline data in a target format, wherein the target format may be JSON (JavaScript Object Notation) format or XML (Extensible Markup Language) format, etc.

[0039] As an example, the above pre-filtered offline data {[01, 2020-11-19-16:12:21, 2020-11-19-17:10:01, successful login], [02, 2020-11-18-02:57:19, 2020-11-18-03:30:22, successful login], [01, 2020-11-18-14:11:12, null, failed login], [03, 2020-11-19-16:12:21, 2020-11-19-16:42:25, successful login]} is parsed. After being converted to JSON format, the offline data in the target format can be: {["User unique identification code": "01", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-17:10:01", "Login status": "Login successful"], ["User unique identification code": "03", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-16:42:25", "Login status": "Login successful"]}.

[0040] In the above implementation, the format of the pre-filtered offline data is converted into a unified target format by performing format unification processing on the pre-filtered offline data, thereby facilitating subsequent unified processing.

[0041] Step 203: perform content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data.

[0042] In some embodiments, the execution subject may perform content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data. The online data may be data generated in real time. The correction processing may refer to converting data in the offline data in the target format whose representation or value range is inconsistent with the online data into data that is consistent with the online data.

[0043] As an example, the user unique identification code in the above online data can be represented by three digits. And the user unique identification code in the above pre-filtered offline data can be represented by two digits. At this time, the user unique identification code in the above pre-filtered offline data is converted into a three-digit representation to obtain the corrected data {["user unique identification code": "001", "login time": "2020-11-19-16:12:21", "logout time": "2020-11-19-17:10:01", "login status": "login successful"], ["user unique identification code": "003", "login time": "2020-11-19-16:12:21", "logout time": "2020-11-19-16:42:25", "login status": "login successful"]}.

[0044] In the above implementation, the offline data in the target format is subjected to content correction processing to ensure the consistency of the offline data with the online data, thereby facilitating the subsequent further use of the offline data.

[0045] The above-mentioned embodiments of the present disclosure have the following beneficial effects: First, according to the subscription information of the distributed message system, the pre-filtered offline data is obtained from the distributed message system, wherein the subscription information of the distributed message system is used to indicate the storage location of the pre-filtered offline data in the distributed message system. Thus, the pre-filtered offline data that needs to be further processed can be obtained from the distributed message system. Then, the pre-filtered offline data is processed in a unified format to obtain offline data in a target format. Thus, the format of the pre-filtered offline data is converted into a unified data format, which is convenient for unified processing. Finally, the offline data in the target format is processed for content correction to obtain corrected data that is consistent with the content of the online data. Thus, the content of the offline data as historical data can be kept consistent with the online data, which is convenient for the subsequent use of the offline data. Therefore, the present disclosure realizes the unified processing of offline data in different business scenarios, without the need to perform customized offline data processing tasks for each business. Thus, the reusability of the business logic of offline data processing is improved.

[0046] Further references Figure 3 , which shows a process 300 of another embodiment of an offline data processing method. The process 300 of the offline data processing method includes the following steps:

[0047] Step 301: Obtain pre-filtered offline data from the distributed messaging system according to the distributed messaging system subscription information.

[0048] Step 302: Perform format unification processing on the pre-filtered offline data to obtain offline data in a target format.

[0049] Step 303: perform content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data.

[0050] In some embodiments, the specific implementation of steps 301-303 and the technical effects thereof can be referred to in Figure 2 Steps 201-203 in the corresponding embodiment are not repeated here.

[0051] Step 304: perform depth filtering on the corrected data to obtain depth filtered data.

[0052] In some embodiments, the execution subject may perform deep filtering on the revised data to obtain deep filtered data. The deep filtering may include deleting data with incorrect formats in the revised data, thereby using data with correct formats as deep filtered data. The deep filtering may also include deduplication of data that appears repeatedly in the revised data.

[0053] As an example, the data that has not been successfully converted into the JSON format or the XML format in the above-mentioned correction data may be deleted to obtain the deep filtering data.

[0054] In some optional implementations of some embodiments, the execution subject may perform deep filtering on the corrected data according to a preset deep filtering information group to obtain deep filtering data. The deep filtering information in the preset deep filtering information group may include: field completion information and deep filtering conditions. The field completion information may include field names. Field values ​​that match the corrected log records included in the corrected data and whose field names are respectively the same as the field names included in the deep filtering information group may be searched in the database, and these field values ​​may be combined with the corrected data to obtain the completed corrected data. Matching may refer to the primary key value of the log record in the database being the same as the primary key value of the parsed log record. The deep filtering conditions may be set according to the field completion information. The deep filtering conditions may be used to further screen the completed corrected data.

[0055] As an example, the above-mentioned deep processing configuration information may also include a deep filtering information group consisting of the deep filtering information "[user identity level, user identity level is 'gold level']" and "[registration duration, registration duration is greater than 30 days]". Among them, "user identity level" and "registration duration" are field completion information. "User identity level is 'gold level'" and "registration duration is greater than 30 days" are deep filtering conditions. Then the above-mentioned deep processing configuration information can be {[user identity level, user identity level is 'gold level'], [registration duration, registration duration is greater than 30 days]}.

[0056] Then, you can first complete the correction data {["User unique identification code": "001", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-17:10:01", "Login status": "Login successful"], ["User unique identification code": "003", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-16:42:25", "Login status": "Login successful"]} according to the above-mentioned field completion information "User identity level" and "Registration duration". The completed correction data can be {[" "User unique identification code": "001", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-17:10:01", "Login status": "Login successful", "User identity level": "Silver level", "Registration duration": "50 days"], ["User unique identification code": "003", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-16:42:25", "Login status": "Login successful", "User identity level": "Gold level", "Registration duration": "264 days"]}.

[0057] Then, the above-mentioned completed corrected data is filtered according to the deep filtering conditions "user identity level is 'gold level'" and "registration duration is greater than 30 days" included in the deep processing configuration information, and the obtained deep filtered data can be {["User unique identification code": "003", "Login time": "2020-11-19-16:12:21", "Logout time": "2020-11-19-16:42:25", "Login status": "Login successful", "User identity level": "Gold level", "Registration duration": "264 days"]}.

[0058] Optionally, the depth filtering information in the above-mentioned depth filtering information group includes: field completion information, depth filtering conditions. The above-mentioned execution subject performs depth filtering processing on the correction data according to the preset depth filtering information group to obtain the depth filtering data, which may include the following steps:

[0059] Step 1: determine the above correction data as initial correction data.

[0060] Step 2: Select the depth filter information from the above depth filter information group. The depth filter information can be selected by randomly selecting a depth filter information or by selecting the depth filter information from the above depth filter information group according to a manually set selection order. And perform the following depth filter processing steps:

[0061] Sub-step one: completing the fields of the initial correction data according to the field completion information included in the selected depth filtering information to obtain the correction data after the field completion.

[0062] As an example, first, the supplementary data related to the initial revised data and whose field names match the field completion information can be searched in the distributed file system. The field name matching the field completion information can mean that the field name is the same as the field name included in the field completion information. Related to the initial revised data can mean that the primary key value of the log record where the field value is located is the same as the primary key value of the revised log record. Then, the supplementary data is combined with the initial revised data to obtain the revised data after the field is completed.

[0063] refer to Figure 4 First, the distributed file system may be searched for supplementary data 402 related to the initial revised data 401 and having field names matching the field completion information. Next, the supplementary data 402 may be combined with the initial revised data 401 to obtain the revised data 403 after the field completion.

[0064] Sub-step 2: filtering the corrected data after field completion according to the depth filtering condition included in the selected depth filtering information to obtain filtered completed data. The depth filtering condition can be set according to the field completion information and can be used to further filter the corrected data after completion.

[0065] Sub-step three, in response to determining that the number of unselected depth filter information in the above-mentioned depth filter information group meets a preset condition, determining the filtered supplementary data as the above-mentioned depth filter data. The above-mentioned preset condition may be that the number of unselected depth filter information in the above-mentioned depth filter information group is zero. When the above-mentioned preset condition is met, it can be indicated that the above-mentioned depth filter processing step has been executed.

[0066] Optionally, the above-mentioned deep filtering processing of the corrected data according to the preset depth filtering information group to obtain the depth filtering data may also include: in response to determining that the number of unselected depth filtering information in the above-mentioned depth filtering information group does not meet the above-mentioned preset conditions, using the filtered completed data as the initial correction data, reselecting the unselected depth filtering information from the above-mentioned depth filtering information group, and executing sub-steps one to three in the above-mentioned depth filtering processing step.

[0067] Step 305: Send the deep filtering data to the location indicated by the target address.

[0068] In some embodiments, the execution entity may send the deep filtering data to a location indicated by the target address, where the target address may be a storage path or an IP (Internet Protocol) address.

[0069] In the above manner, by sending the deep filtering data to the location indicated by the target address, the deep filtering data can be forwarded to a third-party platform for further processing or forwarded to a device with data storage function for storage.

[0070] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 The process 300 of the offline data processing method in some corresponding embodiments reflects the further expansion of the offline data processing steps, adding the steps of deep filtering processing and data sending. Therefore, the schemes described in these embodiments can further process the corrected data, and further process the offline data of different businesses by changing the deep processing configuration information. And the deeply processed offline data is forwarded to the third-party platform for further processing and use by the third-party platform. Thereby, the business logic of offline data processing is further enriched, and the needs of various offline data processing business scenarios can be met.

[0071] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an offline data processing device. These device embodiments are similar to Figure 2Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0072] like Figure 5 As shown, the offline data processing device 500 of some embodiments includes: an acquisition unit 501, a format unification processing unit 502 and a content correction processing unit 503. The acquisition unit 501 is configured to acquire pre-filtered offline data from a distributed message system according to distributed message system subscription information, wherein the distributed message system subscription information is used to indicate the storage location of the pre-filtered offline data in the distributed message system. The format unification processing unit 502 is configured to perform format unification processing on the pre-filtered offline data to obtain offline data in a target format. The content correction processing unit 503 is configured to perform content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data.

[0073] In an optional implementation of some embodiments, the offline data processing device 500 may further include a depth filtering processing unit, wherein the depth filtering processing unit may be configured to perform a depth filtering process on the correction data to obtain the depth filtering data.

[0074] In an optional implementation of some embodiments, the pre-filtered offline data in the above-mentioned distributed messaging system may be obtained by the following steps: according to the original offline data address, the original offline data is obtained from the distributed file system. According to the pre-set pre-processing filtering conditions, the above-mentioned original offline data is preliminarily filtered to obtain preliminary filtered data. The above-mentioned preliminary filtered data is sent to the above-mentioned distributed messaging system as the above-mentioned pre-filtered offline data.

[0075] In an optional implementation of some embodiments, the depth filtering processing unit of the above-mentioned offline data processing device 500 can be further configured to: perform depth filtering processing on the above-mentioned corrected data according to a preset depth filtering information group to obtain deep filtering data.

[0076] In some optional implementations of the embodiments, the depth filtering information in the above-mentioned depth filtering information group includes: field completion information, depth filtering conditions. And the above-mentioned deep filtering processing of the above-mentioned corrected data according to the preset depth filtering information group to obtain the deep filtering data may include: determining the above-mentioned corrected data as the initial corrected data. Selecting the depth filtering information from the above-mentioned depth filtering information group, and executing the following deep filtering processing steps: completing the fields of the initial corrected data according to the field completion information included in the selected depth filtering information to obtain the corrected data after the field completion; filtering the corrected data after the field completion according to the depth filtering conditions included in the selected depth filtering information to obtain the filtered completed data; in response to determining that the number of unselected depth filtering information in the above-mentioned depth filtering information group meets the preset conditions, determining the filtered completed data as the above-mentioned depth filtering data.

[0077] In an optional implementation of some embodiments, the above-mentioned depth filtering processing is performed on the above-mentioned corrected data according to a preset depth filtering information group to obtain depth filtering data, and may also include: in response to determining that the number of unselected depth filtering information in the above-mentioned depth filtering information group does not meet the above-mentioned preset conditions, using the filtered completed data as the initial correction data, reselecting the unselected depth filtering information from the above-mentioned depth filtering information group, and executing the above-mentioned depth filtering processing step.

[0078] In an optional implementation of some embodiments, the offline data processing device 500 may further include a sending unit, wherein the sending unit may be configured to send the deep filtering data to a location indicated by a target address.

[0079] It is understood that the units described in the device 500 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described in detail here.

[0080] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0081] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0082] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0083] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0084] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0085] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains pre-filtered offline data from the distributed messaging system according to the distributed messaging system subscription information, wherein the distributed messaging system subscription information is used to indicate the storage location of the pre-filtered offline data in the distributed messaging system; performs format unification processing on the pre-filtered offline data to obtain offline data in the target format; performs content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data.

[0086] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, a format unification processing unit, and a content correction processing unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as "a unit for acquiring pre-filtered offline data from a distributed messaging system based on subscription information of the distributed messaging system".

[0089] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0090] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. An offline data processing method, comprising: Acquire pre-filtered offline data from the distributed messaging system according to the distributed messaging system subscription information, wherein the distributed messaging system subscription information is used to indicate a storage location of the pre-filtered offline data in the distributed messaging system; Performing format unification processing on the pre-filtered offline data to obtain offline data in a target format; Performing content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data, wherein the online data is data generated in real time, and the correction processing refers to converting data in the offline data in the target format whose representation method or value range is inconsistent with the online data into data that is consistent with the online data; The correction data is deep filtered according to a preset deep filtering information group to obtain deep filtering data, wherein the deep filtering information in the deep filtering information group includes: field completion information, deep filtering conditions, including: determining the revised data as initial revised data; Selecting depth filter information from the depth filter information group and performing the following depth filter processing steps: According to the field completion information included in the selected deep filtering information, the initial revised data is completed to obtain the revised data after the field completion, including: searching the distributed file system for the completion data related to the initial revised data and whose field name matches the field completion information, combining the completion data with the initial revised data to obtain the revised data after the field completion; According to the depth filtering condition included in the selected depth filtering information, the corrected data after the field completion is filtered to obtain the filtered completed data, wherein the depth filtering condition is set according to the field completion information and is used to further filter the corrected data after the completion; In response to determining that the number of unselected depth filter information in the depth filter information group meets a preset condition, determining the filtered supplementary data as the depth filter data; In response to determining that the number of unselected depth filter information in the depth filter information group does not meet the preset condition, using the filtered supplementary data as initial correction data, reselecting unselected depth filter information from the depth filter information group, and performing the depth filtering processing step; Sending the deep filtering data to the location indicated by the target address; The pre-filtered offline data in the distributed message system is obtained by the following steps: According to the original offline data address, obtain the original offline data from the distributed file system; Performing preliminary filtering on the original offline data according to a preset preprocessing filtering condition to obtain preliminary filtered data; The preliminary filtering data is sent to the distributed messaging system as the pre-filtered offline data.

2. An off-line data processing device, comprising: an acquisition unit, configured to acquire pre-filtered offline data from a distributed messaging system according to distributed messaging system subscription information, wherein the distributed messaging system subscription information is used to indicate a storage location of the pre-filtered offline data in the distributed messaging system; a format unification processing unit configured to perform format unification processing on the pre-filtered offline data to obtain offline data in a target format; a content correction processing unit configured to perform content correction processing on the offline data in the target format to obtain corrected data that is consistent with the content of the online data, wherein the online data is data generated in real time, and the correction processing refers to converting data in the offline data in the target format whose representation method or value range is inconsistent with the online data into data that is consistent with the online data; The correction data is deep filtered according to a preset deep filtering information group to obtain deep filtering data, wherein the deep filtering information in the deep filtering information group includes: field completion information, deep filtering conditions, including: determining the revised data as initial revised data; Selecting depth filter information from the depth filter information group and performing the following depth filter processing steps: According to the field completion information included in the selected deep filtering information, the initial revised data is completed to obtain the revised data after the field completion, including: searching the distributed file system for the completion data related to the initial revised data and whose field name matches the field completion information, combining the completion data with the initial revised data to obtain the revised data after the field completion; According to the depth filtering condition included in the selected depth filtering information, the corrected data after the field completion is filtered to obtain the filtered completed data, wherein the depth filtering condition is set according to the field completion information and is used to further filter the corrected data after the completion; In response to determining that the number of unselected depth filter information in the depth filter information group meets a preset condition, determining the filtered supplementary data as the depth filter data; In response to determining that the number of unselected depth filter information in the depth filter information group does not meet the preset condition, using the filtered supplementary data as initial correction data, reselecting unselected depth filter information from the depth filter information group, and performing the depth filtering processing step; a sending unit, configured to send the deep filtering data to a location indicated by a target address; The pre-filtered offline data in the distributed message system is obtained by the following steps: According to the original offline data address, obtain the original offline data from the distributed file system; Performing preliminary filtering on the original offline data according to a preset preprocessing filtering condition to obtain preliminary filtered data; The preliminary filtering data is sent to the distributed messaging system as the pre-filtered offline data.

3. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.

4. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to claim 1 is implemented.

Citation Information

Patent Citations

  • Method and device for querying and storing electric data

    CN105260401A

  • Big data architecture-based data processing method, apparatus and device, and storage medium

    CN108563428A

  • Data governance method based on double message queues

    CN109145040A

  • Log data processing method, system and device and storage medium

    CN109684370A

  • Data analysis method and system

    CN109739912A