Data processing method, device, electronic device and storage medium
By determining the execution order and correlation of data processing information and application information, files are processed in parallel or serially, which solves the resource waste and long time problems caused by the tight coupling of data processing steps in the existing technology, and realizes process decomposition and unitization. Chemical processing improves processing efficiency.
Patent Information
- Application Number
- CN202210656409.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-06-10
AI Technical Summary
Each processing step in existing data processing applications is tightly coupled and difficult to reuse, resulting in a waste of resources and long processing time.
By obtaining the files and execution information to be processed, the execution order and execution correlation of the data processing information and application information are determined, and the information is used to process the files in parallel or serially to achieve process decomposition and unit processing.
It achieves decoupling between various processing processes, improves processing efficiency, shortens equipment processing time, and improves execution efficiency.
Smart Images

Figure CN115080509B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of mobile Internet, massive amounts of data and files are waiting to be processed. With the increase in data processing scenarios and the demand for personalized processing, the platform needs to develop a variety of data processing applications based on various scenarios to meet people's daily needs.
[0003] However, the various processing steps in existing data processing applications are usually coupled together and difficult to reuse, and it is also difficult for devices to arrange the data processing process, which results in a lot of waste of time and resources. Summary of the invention
[0004] The present disclosure provides a data processing method, device, electronic device and storage medium. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a data processing method, including:
[0006] Get pending files and execution information;
[0007] In a case where the execution information includes at least one piece of data processing information and at least one piece of data application information, determining an execution order and an execution relevance of the at least one piece of data processing information and the at least one piece of data application information;
[0008] Based on the execution order and the execution correlation, the at least one data processing information is used to perform parallel or serial processing on the file to be processed to obtain application data corresponding to the at least one data processing information;
[0009] The application data corresponding to the at least one data processing information is sent to the application object in the data application information.
[0010] In some possible embodiments, using at least one data processing information to process the to-be-processed file in parallel or serially to obtain application data corresponding to the at least one data processing information includes:
[0011] Utilize the parsing object corresponding to the file to be processed to parse the file to be processed and obtain the data to be processed;
[0012] The at least one data processing information is used to perform parallel or serial processing on the data to be processed to obtain application data corresponding to the at least one data processing information.
[0013] In some possible embodiments, the parsing object corresponding to the file to be processed is used to parse the file to be processed, and the data to be processed is obtained including:
[0014] Determine the file parsing object based on the file type of the file to be processed;
[0015] Use the file parsing object to parse the file to be processed and obtain the data to be parsed;
[0016] Determine a data parsing object based on the data type of the data to be parsed;
[0017] The data to be parsed is parsed using the data parsing object to obtain the data to be processed.
[0018] In some possible embodiments, the file to be processed is parsed using a file parsing object to obtain the data to be parsed including:
[0019] Determine the file parsing method for the file to be processed;
[0020] The file parsing object is used to parse the file to be processed according to the file parsing method to obtain the data to be parsed.
[0021] In some possible embodiments, determining a file parsing method for a file to be processed includes:
[0022] Determine the file capacity of the currently acquired file; the currently acquired file includes the file to be processed;
[0023] Determine the current available memory;
[0024] The file parsing method of the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
[0025] In some possible embodiments, the execution information includes file processing information, and the file to be processed is parsed using a file parsing object, and the data to be parsed includes:
[0026] When the file processing information includes a file parsing range for the file, the file to be processed is parsed according to the file parsing range using the file parsing object to obtain data to be parsed.
[0027] In some possible embodiments, using at least one data processing information to process the data to be processed in parallel or serially to obtain application data corresponding to the at least one data processing information includes:
[0028] When the data processing information includes data cleaning information, cleaning the data to be processed is performed according to the data cleaning information to obtain application data;
[0029] and / or;
[0030] When the data processing information includes data conversion information, the data to be processed is converted according to the data conversion information to obtain application data;
[0031] and / or;
[0032] When the data processing information includes data integration information, the data to be processed is integrated according to the data integration information to obtain application data.
[0033] In some possible embodiments, based on the execution order and the execution correlation, using at least one data processing information to process the to-be-processed file in parallel or serially to obtain application data corresponding to the at least one data processing information; and sending the application data corresponding to the at least one data processing information to the application object in the data application information includes:
[0034] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0035] When there are multiple execution chains, determining the execution position on each execution chain based on the identification of the execution order of the data processing information and the identification of the execution order of the data application information in each execution chain;
[0036] If the execution position of the data processing information in each execution chain is ahead of the execution position of the data application information, in the same time period, the data processing information in each execution chain is used to process the to-be-processed file to obtain the application data corresponding to each execution chain;
[0037] The application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
[0038] In some possible embodiments, based on the execution order and the execution correlation, using at least one data processing information to process the to-be-processed file in parallel or serially to obtain application data corresponding to the at least one data processing information; and sending the application data corresponding to the at least one data processing information to the application object in the data application information includes:
[0039] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0040] When there is an execution chain, determining the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain;
[0041] If the execution position of the data processing information is ahead of the execution position of the data application information, the file to be processed is processed using the data processing information to obtain application data;
[0042] Send application data to the application object in the data application information in the execution chain.
[0043] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing device, including:
[0044] A file information acquisition module, configured to execute and acquire the to-be-processed file and execution information;
[0045] an execution information determination module, configured to determine, when the execution information includes at least one data processing information and at least one data application information, an execution order and an execution correlation of the at least one data processing information and the at least one data application information;
[0046] The data processing application module is configured to execute parallel or serial processing of the files to be processed based on the execution order and execution correlation using at least one data processing information to obtain application data corresponding to at least one data processing information; and send the application data corresponding to at least one data processing information to the application object in the data application information.
[0047] In some possible embodiments, the data processing application module is configured to execute:
[0048] Utilize the parsing object corresponding to the file to be processed to parse the file to be processed and obtain the data to be processed;
[0049] The at least one data processing information is used to perform parallel or serial processing on the data to be processed to obtain application data corresponding to the at least one data processing information.
[0050] In some possible embodiments, the data processing application module is configured to execute:
[0051] Determine the file parsing object based on the file type of the file to be processed;
[0052] Use the file parsing object to parse the file to be processed and obtain the data to be parsed;
[0053] Determine a data parsing object based on the data type of the data to be parsed;
[0054] The data to be parsed is parsed using the data parsing object to obtain the data to be processed.
[0055] In some possible embodiments, the data processing application module is configured to execute:
[0056] Determine the file parsing method for the file to be processed;
[0057] The file parsing object is used to parse the file to be processed according to the file parsing method to obtain the data to be parsed.
[0058] In some possible embodiments, the data processing application module is configured to execute:
[0059] Determine the file capacity of the currently acquired file; the currently acquired file includes the file to be processed;
[0060] Determine the current available memory;
[0061] The file parsing method of the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
[0062] In some possible embodiments, the execution information includes file processing information, and the data processing application module is configured to execute:
[0063] When the file processing information includes a file parsing range for the file, the file to be processed is parsed according to the file parsing range using the file parsing object to obtain data to be parsed.
[0064] In some possible embodiments, the data processing application module is configured to execute:
[0065] When the data processing information includes data cleaning information, cleaning the data to be processed is performed according to the data cleaning information to obtain application data;
[0066] and / or;
[0067] When the data processing information includes data conversion information, the data to be processed is converted according to the data conversion information to obtain application data;
[0068] and / or;
[0069] When the data processing information includes data integration information, the data to be processed is integrated according to the data integration information to obtain application data.
[0070] In some possible embodiments, the data processing application module is configured to execute:
[0071] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0072] When there are multiple execution chains, determining the execution position on each execution chain based on the identification of the execution order of the data processing information and the identification of the execution order of the data application information in each execution chain;
[0073] If the execution position of the data processing information in each execution chain is ahead of the execution position of the data application information, in the same time period, the data processing information in each execution chain is used to process the to-be-processed file to obtain the application data corresponding to each execution chain;
[0074] The application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
[0075] In some possible embodiments, the data processing application module is configured to execute:
[0076] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0077] When there is an execution chain, determining the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain;
[0078] If the execution position of the data processing information is ahead of the execution position of the data application information, the file to be processed is processed using the data processing information to obtain application data;
[0079] Send application data to the application object in the data application information in the execution chain.
[0080] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement a method as described in any one of the first aspects above.
[0081] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the methods in the first aspect of the embodiment of the present disclosure.
[0082] According to the fifth aspect of an embodiment of the present disclosure, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a readable storage medium, at least one processor of a computer device reading and executing the computer program from the readable storage medium, so that the computer device performs any one of the methods in the first aspect of the embodiment of the present disclosure.
[0083] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0084] Obtain the file to be processed and the execution information, and when the execution information includes at least one data processing information and at least one data application information, determine the execution order and execution correlation of at least one data processing information and at least one data application information, and based on the execution order and execution correlation, use at least one data processing information to process the file to be processed in parallel or serially, obtain the application data corresponding to at least one data processing information, and send the application data corresponding to at least one data processing information to the application object in the data application information. The present application decomposes the file processing flow and realizes the unitization of the flow processing, so that the various processing processes are decoupled, and by achieving the goal of capability reuse, the tasks on each execution chain are separated independently through the execution order and execution correlation, and can be processed in parallel, shortening the device processing and application time, and improving the device execution efficiency.
[0085] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0087] Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment;
[0088] Figure 2 is a flow chart of a data processing method according to an exemplary embodiment;
[0089] Figure 3 is a flow chart showing a method of obtaining data to be processed according to an exemplary embodiment;
[0090] Figure 4 is a flowchart of a file parsing method according to an exemplary embodiment;
[0091] Figure 5 is a flow chart showing a method for determining a file parsing method according to an exemplary embodiment;
[0092] Figure 6 is a block diagram of a data processing device according to an exemplary embodiment;
[0093] Figure 7 It is a block diagram of an electronic device for data processing according to an exemplary embodiment. DETAILED DESCRIPTION
[0094] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0095] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0096] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0097] See also Figure 1 , Figure 1 is a schematic diagram of an application environment of a data processing method according to an exemplary embodiment. Figure 1 As shown, the application environment may include a server 01 and a client 02 .
[0098] In an embodiment of the present application, server 01 can obtain files to be processed and execution information, and when the execution information includes at least one data processing information and at least one data application information, determine the execution order and execution correlation of at least one data processing information and at least one data application information, and based on the execution order and execution correlation, use at least one data processing information to perform parallel or serial processing on the files to be processed, obtain application data corresponding to at least one data processing information, and send the application data corresponding to at least one data processing information to the application object in the data application information.
[0099] Server 01 may include an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The operating system running on the server may include but is not limited to Android, IOS, Linux, Windows, Unix, etc.
[0100] In some possible embodiments, the client 02 sends the characteristic information of the object to the server 01. The client 02 may include but is not limited to a smartphone, a desktop computer, a tablet computer, a laptop computer, a smart speaker, a digital assistant, an augmented reality (AR) / virtual reality (VR) device, a smart wearable device, and other types of clients. It may also be software running on the above client, such as an application, a small program, and the like. Optionally, the operating system running on the client may include but is not limited to Android system, IOS system, Linux, Windows, Unix, and the like.
[0101] In addition, it should be noted that Figure 1 What is shown is only one application environment of the data processing method provided by the present disclosure. In actual application, other application environments may also be included.
[0102] Figure 2 is a flow chart of a data processing method according to an exemplary embodiment. Figure 2 As shown, the data processing method can be applied to a server or a client, and includes the following steps:
[0103] In step S201, the file to be processed and execution information are obtained.
[0104] In an embodiment of the present application, when a user to which a client belongs wants to process and execute a file to be processed, the file to be processed can be first uploaded to the client, and then the file to be processed can be sent to the server through the client.
[0105] In an optional embodiment, the client and the server are connected via an application hosted on the client. Therefore, the client can read the to-be-processed file from the local storage to the application on the client. Alternatively, the client can obtain the to-be-processed file from other clients and upload it to the application on the client. For example, assuming that the client is a desktop computer and the other clients are smart phones, the desktop computer can obtain the to-be-processed file from the smart phone and upload the to-be-processed file to the application on the desktop computer in response to the upload instruction.
[0106] In an optional embodiment, the client and the server are connected via a website hosted on the client. Therefore, the client can read the to-be-processed file from the local storage to the website on the client. Alternatively, the client can obtain the to-be-processed file from other clients and upload it to the website on the client. For example, assuming that the client is a desktop computer and the other clients are smart phones, the desktop computer can obtain the to-be-processed file from the smart phone and upload the to-be-processed file to the website on the desktop computer in response to the upload instruction.
[0107] In the embodiment of the present application, when the user to whom the client belongs wants to process and execute a to-be-processed file, the user can directly download the application or log in to the website from the service provider. In this way, the client loaded with the application or the website can obtain the to-be-processed file.
[0108] The server or client in the embodiment of the present application can meet the personalized, multi-scenario processing, execution, and application requirements of various complex and cumbersome files, thereby achieving the purpose of improving efficiency.
[0109] In step S203, when the execution information includes at least one piece of data processing information and at least one piece of data application information, the execution order and execution relevance of the at least one piece of data processing information and the at least one piece of data application information are determined.
[0110] In the embodiment of the present application, the execution information may include data processing information and data application information. The data processing information is used to instruct the server or client how to process the file to be processed. The data application information is used to instruct the server or client how to apply the processed data.
[0111] In an optional embodiment, the execution information may include data processing information and data application information, that is, the client or server may process the file to be processed according to the data processing information, and apply the processed data according to the data application information.
[0112] In another optional embodiment, the execution information may include one data processing information and multiple data application information. That is, the client or server may process the to-be-processed file according to the data processing information, and perform multiple applications on the processed data according to the multiple data application information.
[0113] In another optional embodiment, the execution includes multiple data processing information and one data application information. That is, the client or the server can perform multiple processing on the to-be-processed file according to the multiple data processing information, and apply the multiple data obtained after the processing according to the data application information.
[0114] In another optional embodiment, the execution includes multiple data processing information and multiple data application information. That is, the client or server can perform multiple processing on the to-be-processed file according to the multiple data processing information, and perform multiple applications on the multiple data obtained after processing according to the multiple data application information.
[0115] However, the above four methods do not indicate whether data processing comes first or data application comes first, that is, they do not indicate the order and relevance of data processing and data application. Therefore, in the embodiment of the present application, when the execution information includes at least one data processing information and at least one data application information, the client or server can determine the execution order and execution relevance of at least one data processing information and at least one data application information.
[0116] In an optional embodiment, the data processing information and the data application information may carry an identifier of the execution order and may also carry an identifier of the execution correlation, so that when the client or the server obtains at least one piece of data processing information and at least one piece of data application information, it can read the execution order and execution correlation corresponding to the at least one piece of data processing information and read the execution order and execution correlation corresponding to the at least one piece of data application information.
[0117] In step S205, based on the execution order and the execution correlation, the at least one data processing information is used to perform parallel or serial processing on the file to be processed to obtain application data corresponding to the at least one data processing information.
[0118] In an optional embodiment, the to-be-processed file includes the parsed to-be-processed data. The client or server can use at least one data processing information to perform parallel or serial processing on the to-be-processed file based on the execution order and execution relevance to obtain application data corresponding to the at least one data processing information.
[0119] In another optional embodiment, the to-be-processed file includes unparsed to-be-processed data. The client or server may parse the to-be-processed file using the parsing object corresponding to the to-be-processed file to obtain the to-be-processed data, and perform parallel or serial processing on the to-be-processed data using at least one data processing information to obtain application data corresponding to the at least one data processing information.
[0120] The embodiment of the present application provides an implementation method for parsing a file to be processed by using a parsing object corresponding to the file to be processed to obtain data to be processed. Figure 3 is a flowchart of obtaining data to be processed according to an exemplary embodiment. Figure 3 As shown, the data processing method can be applied to a server or a client, and includes the following steps:
[0121] In step S2051, a file parsing object is determined based on the file type of the file to be processed.
[0122] In the embodiment of the present application, since the server can process various files, there may be many types of files to be processed.
[0123] In an optional embodiment, the server or the client may determine the file type from the extension of the file to be processed.
[0124] In another optional embodiment, the execution information may further include file processing information, and the file processing information is used to instruct the server how to parse the file to be processed. Optionally, the file processing information may include the file type of the file to be processed. In this way, when the server or the client obtains the file to be processed, if the file to be processed has no extension, the server or the client can obtain the file type from the file processing information in the execution information.
[0125] In an embodiment of the present application, after the server or client obtains the file type of the file to be processed, the file parsing object can be determined according to the file type. Optionally, the server or client can determine from the file template configuration module that the file parsing object of the file to be processed is a text parsing processor. Optionally, the server or client can determine from the file template configuration module that the file parsing object of the file to be processed is a table parsing processor. Optionally, the server or client can determine from the file template configuration module that the file parsing object of the file to be processed is a picture parsing processor.
[0126] It can be seen that the file template configuration module in the embodiment of the present application may include various parsing processors to prepare for parsing files of various file types, which can meet the personalized needs of different users. At the same time, it also saves time and equipment resources for loading different file parsing processors in the prior art.
[0127] In step S2052, the file to be processed is parsed using the file parsing object to obtain data to be parsed.
[0128] In an optional embodiment, the server or the client may parse the file to be processed using a determined file parsing object to obtain data to be parsed.
[0129] Since different files may have different parsing methods, and even the same file may have different parsing methods, and different parsing methods may have different effects on the processing speed of the server or client at different times, in another optional embodiment, the server or client may determine the file parsing method of the file to be processed, and use the file parsing object to parse the file to be processed according to the file parsing method to obtain the data to be parsed.
[0130] Since there may be data in the file to be processed that is not needed later, in another optional embodiment, the server or client can determine the file parsing range, and use the file parsing object to parse the file to be processed according to the file parsing range to obtain the data to be parsed. In this way, while saving the parsing resources of the server or client, it can also save parsing time and improve the overall parsing, execution and application speed.
[0131] In another optional embodiment, the server or the client may determine the file parsing method and the file parsing range, and use the file parsing object to parse the file to be processed according to the file parsing method and the file parsing range to obtain the data to be parsed. Figure 4 is a flowchart of a file parsing method according to an exemplary embodiment. Figure 4 As shown, including:
[0132] In step S401, a file parsing method for a file to be processed is determined.
[0133] In an optional embodiment, as mentioned above, the execution information may also include file processing information, and the file processing information is used to instruct the server or client how to parse the file to be processed. If the file processing information includes a file parsing method for the file, the server or client may determine the parsing method as the file parsing method.
[0134] For example, when the file to be processed is a table-like file, the server or client can determine from the file processing information whether the file parsing method is a line-by-line parsing method, a multi-line multi-line parsing method, a column-by-column parsing method, or a multi-column multi-column parsing method. When the file to be processed is a text-like file, the server or client can determine from the file processing information whether the file parsing method is a line-by-line parsing method, a multi-line multi-line parsing method, a page-by-page parsing method, or a multi-page multi-page parsing method.
[0135] If the file processing information does not include a parsing method for the file, in an optional embodiment, the server or the client may randomly select a parsing method, for example, when the to-be-processed file is in a tabular format, the file parsing method is a line-by-line parsing method, a multi-line multi-line parsing method, a column-by-column parsing method, or a multi-column multi-column parsing method. When the to-be-processed file is in a text format, the file parsing method is a line-by-line parsing method, a multi-line multi-line parsing method, a page-by-page parsing method, or a multi-page multi-page parsing method.
[0136] In another optional embodiment, the server or the client may determine the file parsing method of the file to be processed based on the file to be processed and the attribute information of the server or the client itself.
[0137] Figure 5 is a flowchart showing a method for determining a file parsing method according to an exemplary embodiment. Figure 5 As shown, including:
[0138] In step S501, the file capacity of the currently acquired file is determined; the currently acquired file includes the file to be processed.
[0139] In an embodiment of the present application, the server may determine the file capacity of the currently acquired file. In addition to the file to be processed, the currently acquired file may also include files uploaded by other clients. In other words, when the server determines the file parsing method of the file to be processed, what needs to be determined is the total file capacity of all the files to be processed uploaded by different clients.
[0140] In the embodiment of the present application, when the client determines the file capacity of the currently acquired file, optionally, the currently acquired file may only include the to-be-processed file. Optionally, the currently acquired file may include other files uploaded by the client in addition to the to-be-processed file.
[0141] In step S503, the currently executable memory is determined.
[0142] In addition, the server can also determine the server's current available memory. Similarly, the client can determine the client's current available memory.
[0143] In step S505, a file parsing method for the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
[0144] In this way, the server or client can determine the file parsing method of the to-be-processed file based on the file capacity of the currently acquired file and the current available memory. For example, when the to-be-processed file is in the form of a table, the file parsing method is a line-by-line parsing method, a multi-line multi-line parsing method, a column-by-column parsing method, or a multi-column multi-column parsing method. For example, if the file capacity of the currently acquired file is larger than the preset capacity and the current available memory is smaller than the preset memory, a line-by-line parsing method can be used.
[0145] When the file to be processed is a text file, the file parsing method is a line-by-line parsing method, a multi-line parsing method, a page-by-page parsing method, or a multi-page parsing method.
[0146] Optionally, the attribute information may include, in addition to the current executable memory, central processing unit information, such as whether the central processing unit is single-core or dual-core.
[0147] In step S403, when the file processing information includes a file parsing range for the file, the file to be processed is parsed using the file parsing object according to the file parsing method and the file parsing range to obtain data to be parsed.
[0148] Since there may be data in the file to be processed that is not needed later, the server or client can determine the file parsing scope. If the file processing information includes the file parsing scope for the file, the server or client can use the file parsing object to parse the file to be processed according to the file parsing method and the file parsing scope to obtain the data to be parsed. Among them, the file parsing scope can be certain rows or columns in a table-like file, and the file parsing scope can be certain pages or rows in a text-like file.
[0149] In step S2053, a data parsing object is determined based on the data type of the data to be parsed.
[0150] In an embodiment of the present application, the server or the client may determine a data parsing object based on the data type of the data to be parsed.
[0151] Optionally, the data type of the data to be parsed may include numeric data, character data (including Chinese characters, English letters, spaces), string data, uniform resource locator link data, mailbox data, date data, time data, and the like.
[0152] In the embodiment of the present application, after the server or client obtains the data type of the data to be parsed, the data parsing object can be determined according to the data type. For example, if the data type is character data, the data parsing object can be determined to be a character parsing processor, if the data type is numeric data, the data parsing object can be determined to be a numeric parsing processor, if the data type is mailbox data, the data parsing object can be determined to be a mailbox parsing processor, and so on.
[0153] In step S2054, the data to be analyzed is analyzed using the data analysis object to obtain the data to be processed.
[0154] When the server or client determines the required data parsing object, it can call the data parsing object from the file template configuration module to parse the data to be parsed and obtain the data to be processed. At this point, the server or client has completed the preparation work before data processing.
[0155] In the embodiment of the present application, the data processing information may correspond to information of various processing methods, such as data cleaning, data conversion, data integration, data grouping, etc.
[0156] In an optional embodiment, when the data processing information includes data cleaning information, the server or client can clean the data to be processed according to the data cleaning information to obtain application data. For example, the data to be processed is a plurality of operation information, and each operation information has timestamp information. If the data cleaning information is "before XXX time", the server can clean the plurality of operation information and remove the operation information with timestamp information "before XXX time".
[0157] In an optional embodiment, when the data processing information includes data conversion information, the server or client can convert the data to be processed according to the data conversion information to obtain application data. For example, if the data to be processed is time data in a first form, and the data conversion information is time data in a second form, the server or client can convert the time data in the first form into time data in the second form according to the data conversion information, and the obtained time data in the second form is the application data.
[0158] In an optional embodiment, when the data processing information includes data integration information, the server or client can integrate the data to be processed according to the data integration information to obtain application data. For example, the data to be processed is a plurality of resource allocation information, wherein each resource allocation information carries an allocation object identifier. If the data integration information is data used to represent the allocation object identifier, the server or client can integrate the plurality of resource allocation information according to the allocation object identifier, and integrate different resource allocation information belonging to the same allocation object identifier, so that one allocation object identifier corresponds to only one piece of resource allocation information.
[0159] In an optional embodiment, when the data processing information includes data grouping information, the server or client can perform grouping processing on the data to be processed according to the data grouping information to obtain application data. For example, the data to be processed is a document containing several words. If the data grouping information is a "period", the server or client can split the document according to the "period" to obtain multiple texts. Each text includes a complete sentence.
[0160] As can be seen from the above description, the above-mentioned data processing information may include one data processing information, such as data cleaning information, data conversion information, data integration information or data grouping information. The above-mentioned data processing information may also include multiple data processing information, such as data cleaning information and data integration information. In order to avoid confusion, when the data processing information includes multiple data processing information, the multiple data processing information included may be referred to as sub-data processing information, that is, the data processing information includes multiple data processing information, such as two sub-data processing information, data cleaning information and data integration information.
[0161] In step S207, application data corresponding to at least one piece of data processing information is sent to an application object in the data application information.
[0162] Optionally, the server or the client may parse the data application information to obtain the data application instruction and the data application object, and then, the application data may be downlink applied to the application object based on the data application instruction.
[0163] Optionally, the server or client may parse the data application information to obtain a data storage instruction and a data storage object. Thus, the client or server may transfer the application data to a data storage object (local storage, cloud storage) for storage based on the data storage instruction.
[0164] Optionally, the server or client can parse the data application information to obtain the data distribution instruction and the data distribution object. In this way, the client or server can distribute the application data to the consumer who subscribes to the application data, that is, the data distribution object, based on the data distribution instruction. Optionally, the data distribution time can also be parsed, so that the client or server can distribute the application data to the consumer who subscribes to the application data at the data distribution time based on the data distribution instruction.
[0165] In the embodiment of the present application, the server or the client uses at least one data processing information to perform parallel or serial processing on the to-be-processed file based on the execution order and the execution correlation, obtains the application data corresponding to the at least one data processing information, and sends the application data corresponding to the at least one data processing information to the application object in the data application information, which can be expressed as follows:
[0166] In a first optional embodiment, the client or server may determine the data processing information and data application information belonging to an execution chain based on at least one identifier of the execution relevance of the data processing information and at least one identifier of the execution relevance of the data application information. If there are multiple execution chains, the data to be processed in the multiple execution chains may be processed in parallel.
[0167] Specifically, in an embodiment of processing the data to be processed in multiple execution chains in parallel, the execution position on each execution chain can be determined based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in each execution chain, which is actually the execution order of the data processing information and the data application information on the corresponding execution chain. Subsequently, the server or client can process the data to be processed using the data processing information in accordance with the execution order to obtain application data, and send the application data to the application object in the data application information. For example, if in each execution chain, when the execution position of the data processing information is in front of the execution position of the data application information, within the same time period, the data processing information in each execution chain is used to process the file to be processed, respectively, to obtain the application data corresponding to each execution chain, and the application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
[0168] For example, the execution information may include two data processing information and two data application information, the execution order of the first data processing information is identified as 1, and the execution correlation is identified as A; the execution order of the second data processing information is identified as 1, and the execution correlation is identified as B; the execution order of the first data application information is identified as 2, and the execution correlation is identified as A; the execution order of the second data application information is identified as 2, and the execution correlation is identified as B. The client or server can determine that the first data processing information is related to the first data application information based on the same execution correlation identifier A, then the first data processing information and the first data application information belong to the first execution chain. Similarly, the client or server can determine that the second data processing information is related to the second data application information based on the same execution correlation identifier B, then the second data processing information and the second data application information belong to the second execution chain.
[0169] Next, the server or client can, based on the identifier 1 of the execution order of the first data processing information, the identifier 2 of the execution order of the first data application information, and the front-to-back order represented by the identifiers, first perform data processing corresponding to the first data processing information on the data to be processed in the to-be-processed file to obtain first application data, and then send the first application data to the first application object corresponding to the first data application information. In the same time period, the server or client can perform data processing corresponding to the second data processing information on the data to be processed in the to-be-processed file to obtain second application data, and then send the second application data to the second application object corresponding to the second data application information.
[0170] For example, the data to be processed is a plurality of operation information, each of which carries a timestamp information and an operation object identifier. When the first data processing information includes data cleaning information, and the data cleaning information is "before XXX time", and the first data application information includes a data storage instruction and a data storage object. The server or client can clean the plurality of operation information, clean the operation information with a timestamp information of "before XXX time", and obtain the first application data. Subsequently, the server or client can transfer the first application data to a data storage object (local storage, cloud storage) for storage based on the data storage instruction.
[0171] At the same time, when the second data processing information includes data integration information, and the data integration information is used to represent the data of the operation object identifier, and the second data application information includes a data distribution instruction and a data distribution object. The server or client can integrate multiple operation information according to the assigned object identifier, and integrate different operation information belonging to the same operation object identifier so that there is only one operation information for one operation object identifier, thereby obtaining the second application data. Subsequently, the server or client can distribute the second application data to the consumer who subscribes to the second application data, that is, the data distribution object, based on the data distribution instruction.
[0172] In this way, each execution chain is processed serially, but different execution chains are processed in parallel. Specifically, the data to be processed is processed in parallel with the data processing corresponding to the first data processing information and the data processing corresponding to the second data processing information, and the data transmission corresponding to the first data application information and the data transmission corresponding to the second data application information can also be performed in parallel, which greatly saves the execution time and improves the execution efficiency.
[0173] In a second optional embodiment, the client or server may determine the data processing information and data application information belonging to an execution chain based on at least one identifier of the execution relevance of the data processing information and at least one identifier of the execution relevance of the data application information. If there is an execution chain, the data to be processed in the execution chain may be processed serially.
[0174] Specifically, when there is an execution chain, the server or client determines the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain, which is actually the execution order of the data processing information and the data application information on the execution chain. Subsequently, the server or client can use the data processing information to process the data to be processed according to the execution order, obtain application data, and send the application data to the application object in the data application information. For example, if the execution position of the data processing information is in front of the execution position of the data application information, the data processing information can be used to process the file to be processed to obtain application data; the application data is sent to the application object in the data application information in the execution chain.
[0175] For example, the execution information may include a data processing information and a data application information, the execution order of the data processing information is identified as 1, and the execution correlation is identified as A. The execution order of the data application information is identified as 2, and the execution correlation is identified as A. Then the client or server may determine that the data processing information and the data application information are related based on the same execution correlation identifier A, and belong to the same execution chain.
[0176] Subsequently, the server or client can determine to first perform data processing corresponding to the data processing information on the data to be processed in the file to be processed based on the execution order of the data processing information being identified as 1, the execution order of the data application information being identified as 2, and the order represented by the identifiers, to obtain application data, and then send the application data to the application object in the data application information.
[0177] For example, the execution information may include two data processing information and two data application information, the execution order of the first data processing information is identified as 1, and the execution correlation is identified as A; the execution order of the second data processing information is identified as 3, and the execution correlation is identified as A; the execution order of the first data application information is identified as 2, and the execution correlation is identified as A; the execution order of the second data application information is identified as 4, and the execution correlation is identified as A. Then the client or server can determine that the two data processing information and the two data application information are related based on the same execution correlation identifier A, and belong to the same execution chain.
[0178] Next, the server or client can determine, based on the identification of the execution order of the first data processing information as 1, the identification of the execution order of the second data processing information as 3, the identification of the execution order of the first data application information as 2, the identification of the execution order of the second data application information as 4, and the order represented by the identification, first perform data processing corresponding to the first data processing information on the data to be processed in the to-be-processed file to obtain first application data, and then send the first application data to the first application object corresponding to the first data application information. Then, feedback data fed back by the first application object can be received. Perform data processing corresponding to the second data processing information on the feedback data to obtain second application data, and then send the second application data to the second application object corresponding to the second data application information.
[0179] For example, the data to be processed is a plurality of resource allocation information, wherein each resource allocation information includes the resource quantity, the allocation object identifier (resource allocation account), and the mailbox corresponding to the allocation object identifier. When the first data processing information includes data integration information, and the data integration information is data used to represent the allocation object identifier, the server or the client can integrate the plurality of resource allocation information according to the allocation object identifier, and integrate the different resource allocation information belonging to the same allocation object identifier, so that one allocation object identifier corresponds to only one resource allocation information, and obtain the first application data. Each allocation object identifier in the first application data corresponds to one resource.
[0180] Next, the server or the client obtains first data application information, wherein the first data application information includes a data allocation instruction and an allocation object identifier, the data allocation instruction includes an identifier of an allocation module, and the allocation object identifier is used to indicate a data allocation object.
[0181] In the actual implementation process, the server or client can call the allocation module and control the allocation module to allocate resources to the data allocation object corresponding to the allocation object identifier according to the resource quantity corresponding to each allocation object identifier. In addition, the server or client can also instruct the allocation module to send feedback data of successful allocation to the client or server after completing the allocation corresponding to each data allocation object.
[0182] On this basis, the server or client can return feedback data for each data allocation object.
[0183] Optionally, the second data processing information may generate the feedback data and / or the data to be processed to obtain the second application data. Optionally, the feedback data may include the allocation time of successful allocation, and the server or client may generate the email body content including the allocation time based on the allocation time, and add it to the integrated resource allocation information corresponding to each allocation object identifier.
[0184] Optionally, the server or client may generate the email body content based on the resource quantity, and add it to the integrated resource allocation information corresponding to each allocation object identifier. Optionally, the server or client may generate the email body content based on the allocation time and the resource quantity, and add it to the integrated resource allocation information corresponding to each allocation object identifier. In this way, the second application data, i.e., the email body content, is obtained.
[0185] Next, the server or client obtains the second data application information. The second data application information includes an email sending instruction and an email sending object, and the email sending object is used to indicate the mailbox corresponding to the assigned object identifier. Subsequently, the server or client can call the email module and control the email module to send the email body content corresponding to each assigned object identifier to the mailbox corresponding to each assigned object identifier.
[0186] Of course, the above example indicates an optional embodiment. In actual processes, an execution chain may include multiple data processing information and multiple data application information, wherein the execution positions of the data processing information and the data application information on the execution chain may be arbitrarily logical, for example, the execution position may be: first data processing information-second data processing information-first data application information-second data application information; or first data application information-first data processing information-second data processing information-second data application information.
[0187] In summary, the embodiments of the present application can decompose the file processing flow and realize the unitization of process processing, thereby decoupling the various processing processes and achieving the goal of capability reuse, thereby improving the iterativeness and maintainability of the application.
[0188] At the same time, the tasks on each execution chain are separated through execution order and execution relevance, and can be processed in parallel, thus shortening the device processing and application time and improving the device execution efficiency.
[0189] Figure 6 is a block diagram of a data processing device according to an exemplary embodiment. Figure 6 , the device comprises:
[0190] The file information acquisition module 601 is configured to acquire the to-be-processed file and execution information;
[0191] An execution information determination module 602 is configured to determine an execution order and execution relevance of the at least one data processing information and the at least one data application information when the execution information includes the at least one data processing information and the at least one data application information;
[0192] The data processing application module 603 is configured to execute parallel or serial processing of the files to be processed based on the execution order and execution relevance using at least one data processing information to obtain application data corresponding to at least one data processing information; and send the application data corresponding to at least one data processing information to the application object in the data application information.
[0193] In some possible embodiments, the data processing application module is configured to execute:
[0194] Utilize the parsing object corresponding to the file to be processed to parse the file to be processed and obtain the data to be processed;
[0195] The at least one data processing information is used to perform parallel or serial processing on the data to be processed to obtain application data corresponding to the at least one data processing information.
[0196] In some possible embodiments, the data processing application module is configured to execute:
[0197] Determine the file parsing object based on the file type of the file to be processed;
[0198] Use the file parsing object to parse the file to be processed and obtain the data to be parsed;
[0199] Determine a data parsing object based on the data type of the data to be parsed;
[0200] The data to be parsed is parsed using the data parsing object to obtain the data to be processed.
[0201] In some possible embodiments, the data processing application module is configured to execute:
[0202] Determine the file parsing method for the file to be processed;
[0203] The file parsing object is used to parse the file to be processed according to the file parsing method to obtain the data to be parsed.
[0204] In some possible embodiments, the data processing application module is configured to execute:
[0205] Determine the file capacity of the currently acquired file; the currently acquired file includes the file to be processed;
[0206] Determine the current available memory;
[0207] The file parsing method of the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
[0208] In some possible embodiments, the execution information includes file processing information, and the data processing application module is configured to execute:
[0209] When the file processing information includes a file parsing range for the file, the file to be processed is parsed according to the file parsing range using the file parsing object to obtain data to be parsed.
[0210] In some possible embodiments, the data processing application module is configured to execute:
[0211] When the data processing information includes data cleaning information, cleaning the data to be processed is performed according to the data cleaning information to obtain application data;
[0212] and / or;
[0213] When the data processing information includes data conversion information, the data to be processed is converted according to the data conversion information to obtain application data;
[0214] and / or;
[0215] When the data processing information includes data integration information, the data to be processed is integrated according to the data integration information to obtain application data.
[0216] In some possible embodiments, the data processing application module is configured to execute:
[0217] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0218] When there are multiple execution chains, determining the execution position on each execution chain based on the identification of the execution order of the data processing information and the identification of the execution order of the data application information in each execution chain;
[0219] If the execution position of the data processing information in each execution chain is ahead of the execution position of the data application information, in the same time period, the data processing information in each execution chain is used to process the to-be-processed file to obtain the application data corresponding to each execution chain;
[0220] The application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
[0221] In some possible embodiments, the data processing application module is configured to execute:
[0222] Determining data processing information and data application information belonging to an execution chain according to at least one identifier of execution relevance of data processing information and at least one identifier of execution relevance of data application information;
[0223] When there is an execution chain, determining the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain;
[0224] If the execution position of the data processing information is ahead of the execution position of the data application information, the file to be processed is processed using the data processing information to obtain application data;
[0225] Send application data to the application object in the data application information in the execution chain.
[0226] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0227] Figure 7 2 is a block diagram of a data processing apparatus 2000 according to an exemplary embodiment. For example, the apparatus 2000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0228] Reference Figure 7 , the device 2000 may include one or more of the following components: a processing component 2002 , a memory 2004 , a power component 2006 , a multimedia component 2008 , an audio component 2010 , an input / output (I / O) interface 2012 , a sensor component 2014 , and a communication component 2016 .
[0229] The processing component 2002 generally controls the overall operation of the device 2000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 2002 may include one or more processors 2020 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 2002 may include one or more modules to facilitate interaction between the processing component 2002 and other components. For example, the processing component 2002 may include a multimedia module to facilitate interaction between the multimedia component 2008 and the processing component 2002.
[0230] The memory 2004 is configured to store various types of data to support operations on the device 2000. Examples of such data include instructions for any application or method operating on the device 2000, contact data, phone book data, messages, pictures, videos, etc. The memory 2004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0231] The power supply component 2006 provides power to the various components of the device 2000. The power supply component 2006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 2000.
[0232] The multimedia component 2008 includes a screen that provides an output interface between the device 2000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2008 includes a front camera and / or a rear camera. When the device 2000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0233] The audio component 2010 is configured to output and / or input audio signals. For example, the audio component 2010 includes a microphone (MIC), and when the device 2000 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 2004 or sent via the communication component 2016. In some embodiments, the audio component 2010 also includes a speaker for outputting audio signals.
[0234] The I / O interface 2012 provides an interface between the processing component 2002 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0235] The sensor assembly 2014 includes one or more sensors for providing various aspects of status assessment for the device 2000. For example, the sensor assembly 2014 can detect the open / closed state of the device 2000, the relative positioning of components, such as the display and keypad of the device 2000, the sensor assembly 2014 can also detect the position change of the device 2000 or a component of the device 2000, the presence or absence of user contact with the device 2000, the orientation or acceleration / deceleration of the device 2000 and the temperature change of the device 2000. The sensor assembly 2014 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 2014 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2014 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0236] The communication component 2016 is configured to facilitate wired or wireless communication between the device 2000 and other devices. The device 2000 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 2016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0237] In an exemplary embodiment, the apparatus 2000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0238] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 2004 including instructions, and the instructions can be executed by the processor 2020 of the device 2000 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
Claims
1. A data processing method, characterized in that: include: Get pending files and execution information; In a case where the execution information includes at least one piece of data processing information and at least one piece of data application information, determining an execution order and an execution correlation of the at least one piece of data processing information and the at least one piece of data application information; Based on the execution order and the execution correlation, the to-be-processed file is processed in parallel or serially using the at least one data processing information to obtain application data corresponding to the at least one data processing information; Sending application data corresponding to the at least one data processing information to an application object in the data application information; The method of performing parallel or serial processing on the to-be-processed file based on the execution order and the execution correlation by using the at least one data processing information to obtain application data corresponding to the at least one data processing information includes: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; Determining an execution position on each execution chain based on an identification of an execution order of data processing information and an identification of an execution order of data application information in each execution chain; Based on the execution position, the at least one data processing information is used to perform parallel or serial processing on the to-be-processed file to obtain application data corresponding to the at least one data processing information.
2. The data processing method according to claim 1, characterized in that: The using the at least one data processing information to process the to-be-processed file in parallel or serially to obtain application data corresponding to the at least one data processing information comprises: Parsing the file to be processed using the parsing object corresponding to the file to be processed to obtain data to be processed; The data to be processed is processed in parallel or serially using the at least one data processing information to obtain application data corresponding to the at least one data processing information.
3. The data processing method according to claim 2, characterized in that: The using the parsing object corresponding to the file to be processed to parse the file to be processed to obtain the data to be processed comprises: Determine a file parsing object based on the file type of the file to be processed; Parsing the file to be processed using the file parsing object to obtain data to be parsed; Determine a data parsing object based on the data type of the data to be parsed; The data to be analyzed is analyzed using the data analysis object to obtain data to be processed.
4. The data processing method according to claim 3, characterized in that: The using the file parsing object to parse the file to be processed to obtain the data to be parsed includes: Determine a file parsing method for the file to be processed; The file to be processed is parsed using the file parsing object according to the file parsing method to obtain data to be parsed.
5. The data processing method according to claim 4, characterized in that ,The file parsing method for determining the file to be processed includes: Determine the file capacity of the currently acquired file; the currently acquired file includes the to-be-processed file; Determine the current available memory; A file parsing method for the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
6. The data processing method according to claim 3, characterized in that: The execution information includes file processing information, and the file to be processed is parsed using the file parsing object to obtain the data to be parsed including: When the file processing information includes a file parsing range for a file, the file to be processed is parsed according to the file parsing range using the file parsing object to obtain data to be parsed.
7. The data processing method according to claim 2, characterized in that: The using the at least one data processing information to process the data to be processed in parallel or serially to obtain application data corresponding to the at least one data processing information comprises: When the data processing information includes data cleaning information, cleaning the data to be processed according to the data cleaning information to obtain the application data; and / or; When the data processing information includes data conversion information, converting the data to be processed according to the data conversion information to obtain the application data; and / or; When the data processing information includes data integration information, the data to be processed is integrated according to the data integration information to obtain the application data.
8. The data processing method according to claim 1, characterized in that: Based on the execution order and the execution correlation, the at least one data processing information is used to perform parallel or serial processing on the to-be-processed file to obtain application data corresponding to the at least one data processing information; Sending the application data corresponding to the at least one data processing information to the application object in the data application information includes: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; When there are multiple execution chains, determining the execution position on each execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in each execution chain; If, in each execution chain, the execution position of the data processing information is ahead of the execution position of the data application information, in the same time period, the data processing information in each execution chain is used to process the to-be-processed file to obtain the application data corresponding to each execution chain; The application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
9. The data processing method according to claim 1, characterized in that: Based on the execution order and the execution correlation, the at least one data processing information is used to perform parallel or serial processing on the to-be-processed file to obtain application data corresponding to the at least one data processing information; Sending the application data corresponding to the at least one data processing information to the application object in the data application information includes: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; When there is an execution chain, determining the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain; If the execution position of the data processing information is ahead of the execution position of the data application information, the file to be processed is processed using the data processing information to obtain application data; The application data is sent to the execution chain and the application object in the data application information.
10. A data processing device, characterized in that: include: A file information acquisition module, configured to execute and acquire the to-be-processed file and execution information; an execution information determination module, configured to determine, when the execution information includes at least one data processing information and at least one data application information, an execution order and an execution correlation of the at least one data processing information and the at least one data application information; A data processing application module is configured to perform parallel or serial processing on the to-be-processed file based on the execution order and the execution correlation by using the at least one data processing information to obtain application data corresponding to the at least one data processing information; Sending application data corresponding to the at least one data processing information to an application object in the data application information; The method of performing parallel or serial processing on the to-be-processed file based on the execution order and the execution correlation by using the at least one data processing information to obtain application data corresponding to the at least one data processing information includes: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; Determining an execution position on each execution chain based on an identification of an execution order of data processing information and an identification of an execution order of data application information in each execution chain; Based on the execution position, the at least one data processing information is used to perform parallel or serial processing on the to-be-processed file to obtain application data corresponding to the at least one data processing information.
11. The data processing device according to claim 10, characterized in that: The data processing application module is configured to execute: Parsing the file to be processed using the parsing object corresponding to the file to be processed to obtain data to be processed; The data to be processed is processed in parallel or serially using the at least one data processing information to obtain application data corresponding to the at least one data processing information.
12. The data processing device according to claim 11, characterized in that: The data processing application module is configured to execute: Determine a file parsing object based on the file type of the file to be processed; Parsing the file to be processed using the file parsing object to obtain data to be parsed; Determine a data parsing object based on the data type of the data to be parsed; The data to be analyzed is analyzed using the data analysis object to obtain data to be processed.
13. The data processing device according to claim 12, characterized in that: The data processing application module is configured to execute: Determine a file parsing method for the file to be processed; The file to be processed is parsed using the file parsing object according to the file parsing method to obtain data to be parsed.
14. The data processing device according to claim 13, characterized in that The data processing application module is configured to execute: Determine the file capacity of the currently acquired file; the currently acquired file includes the to-be-processed file; Determine the current available memory; A file parsing method for the file to be processed is determined based on the file capacity of the currently acquired file and the current executable memory.
15. The data processing device according to claim 12, characterized in that: The execution information includes file processing information, and the data processing application module is configured to execute: When the file processing information includes a file parsing range for a file, the file to be processed is parsed according to the file parsing range using the file parsing object to obtain data to be parsed.
16. The data processing device according to claim 11, characterized in that: The data processing application module is configured to execute: When the data processing information includes data cleaning information, cleaning the data to be processed according to the data cleaning information to obtain the application data; and / or; When the data processing information includes data conversion information, converting the data to be processed according to the data conversion information to obtain the application data; and / or; When the data processing information includes data integration information, the data to be processed is integrated according to the data integration information to obtain the application data.
17. The data processing device according to claim 10, characterized in that: The data processing application module is configured to execute: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; When there are multiple execution chains, determining the execution position on each execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in each execution chain; If, in each execution chain, the execution position of the data processing information is ahead of the execution position of the data application information, in the same time period, the data processing information in each execution chain is used to process the to-be-processed file to obtain the application data corresponding to each execution chain; The application data corresponding to each execution chain is sent to the application object in the data application information in the corresponding execution chain.
18. The data processing device according to claim 10, characterized in that: The data processing application module is configured to execute: Determining data processing information and data application information belonging to an execution chain according to an identifier of the execution relevance of the at least one data processing information and an identifier of the execution relevance of the at least one data application information; When there is an execution chain, determining the execution position on the execution chain based on the identifier of the execution order of the data processing information and the identifier of the execution order of the data application information in the execution chain; If the execution position of the data processing information is ahead of the execution position of the data application information, the file to be processed is processed using the data processing information to obtain application data; The application data is sent to the execution chain and the application object in the data application information.
19. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data processing method according to any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as claimed in any one of claims 1 to 9.
21. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a readable storage medium. At least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device executes the data processing method according to any one of claims 1 to 9.
