A method and device for processing business data

By unifying the data structure and ETL strategy, using unstructured databases and message servers to process business data, the problem of waste of business system resources and operational complexity is solved, and efficient business data storage and processing are achieved.

CN112988857BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911272856.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-12
Publication Date
2024-10-18
Estimated Expiration
2039-12-12

AI Technical Summary

Technical Problem

In the existing technology, the data stored in the business system is of no value to the big data analysis platform, takes up resources and is complex to operate. Different business systems have different data structures and ETL strategies, resulting in resource waste and operational complexity.

Method used

Use a unified data structure and ETL strategy to store data from different business systems through unstructured databases (such as Hbase), and use message servers to buffer business data. Preset column names and attribute serial numbers for specialized processing, simplifying processes and reducing business costs. System resource usage.

Benefits of technology

It achieves efficient storage and processing of business data, simplifies operating procedures, reduces business system resource consumption, unifies the data storage structure of different business systems, and facilitates big data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112988857B_ABST
    Figure CN112988857B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for processing business data, and relates to the field of computer technology. A specific implementation of the method includes: obtaining business data corresponding to one or more business systems, the business data indicating one or more entity classes, and the entity class having one or more attributes; obtaining the attribute name and attribute type corresponding to the attribute from the business data; determining the column name corresponding to the attribute name in a database for storing the business data according to the attribute name and the attribute type, and the database is an unstructured database; storing the business data in the database according to the attribute name and the column name corresponding to the attribute name. This implementation unifies the storage structure of business data and simplifies the processing flow of business data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing business data. Background Art

[0002] In order to analyze the business data generated by the business system, it is often necessary to push the business data to the big data analysis platform. The current common solution is to establish corresponding business data tables in the business system to form structured data, and then store them in relational databases such as MYSQL. Correspondingly, in the big data analysis platform or the corresponding data processing tools, configure the corresponding ETL (Extract-Transform-Load) strategy to capture data from the database for analysis.

[0003] During the process of implementing the present invention, the inventors discovered that there are at least the following problems in the prior art: the data stored in the business system for analysis by the big data analysis platform has no value to the business system itself, but occupies and consumes the database resources of the business system, etc., causing a waste of resources to a certain extent; the business data of different business systems have different data structures, and different data ETL strategies need to be configured in the big data platform or the corresponding data processing tools, which makes the operation complicated. Summary of the invention

[0004] In view of this, the present invention provides a method and device for processing business data, which can use a unified data structure to store the corresponding business data of different business systems, can configure a unified data ETL strategy, and is easy to operate. The database storing the business data is set up independently of the business system, does not need to occupy business system resources, and improves the processing efficiency of the business system.

[0005] To achieve the above object, according to one aspect of the present invention, a method for processing business data is provided, comprising:

[0006] Acquire business data corresponding to one or more business systems, where the business data indicates one or more entity classes, and the entity class has one or more attributes;

[0007] Acquire the attribute name and attribute type corresponding to the attribute from the business data;

[0008] According to the attribute name and the attribute type, determining a column name corresponding to the attribute name in a database for storing the business data, wherein the database is an unstructured database;

[0009] The business data is stored in the database according to the attribute name and the column name corresponding to the attribute name.

[0010] Optionally, obtaining business data corresponding to one or more business systems includes:

[0011] Acquire the business data pushed by the one or more business systems;

[0012] Pushing the business data to a message server;

[0013] The service data is obtained from the message server.

[0014] Optionally, determining, according to the attribute name and the attribute type, a column name corresponding to the attribute name in a database for storing the business data includes:

[0015] Sort the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names;

[0016] Generate a column name corresponding to the attribute name according to the attribute type and the attribute sequence number corresponding to the attribute name.

[0017] Optionally, it also includes:

[0018] Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset column name;

[0019] In the case where the attribute name has a corresponding preset column name, the preset column name is the column name corresponding to the attribute name.

[0020] Optionally, it also includes:

[0021] Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset attribute serial number;

[0022] In the case where the attribute name has a corresponding preset attribute serial number, a column name corresponding to the attribute name is generated according to the attribute name and the preset attribute serial number.

[0023] Optionally, it also includes:

[0024] The column name corresponding to the attribute name is stored in the local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the business data, the column name corresponding to the attribute name is obtained from the local cache.

[0025] Optionally, the database is an Hbase database.

[0026] Optionally, business data corresponding to one or more business systems is obtained through an RPC remote call interface.

[0027] To achieve the above object, according to another aspect of the present invention, a business data processing device is provided, comprising: a business data acquisition module, a business data processing module, and a business data storage module; wherein,

[0028] The business data acquisition module is used to acquire business data corresponding to one or more business systems, wherein the business data indicates one or more entity classes, and the entity class has one or more attributes;

[0029] The business data processing module is used to obtain the attribute name and attribute type corresponding to the attribute from the business data; and determine the column name corresponding to the attribute name in the database used to store the business data according to the attribute name and the attribute type, wherein the database is an unstructured database;

[0030] The business data storage module is used to store the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0031] Optionally, obtaining business data corresponding to one or more business systems includes:

[0032] Acquire the business data pushed by the one or more business systems;

[0033] Pushing the business data to a message server;

[0034] The service data is obtained from the message server.

[0035] Optionally, determining, according to the attribute name and the attribute type, a column name corresponding to the attribute name in a database for storing the business data includes:

[0036] Sort the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names;

[0037] Generate a column name corresponding to the attribute name according to the attribute type and the attribute sequence number corresponding to the attribute name.

[0038] Optionally, the business data processing module is further used to:

[0039] Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset column name;

[0040] In the case where the attribute name has a corresponding preset column name, the preset column name is the column name corresponding to the attribute name.

[0041] Optionally, the business data processing module is further used to:

[0042] Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset attribute serial number;

[0043] In the case where the attribute name has a corresponding preset attribute serial number, a column name corresponding to the attribute name is generated according to the attribute name and the preset attribute serial number.

[0044] Optionally, the business data processing module is further used to:

[0045] The column name corresponding to the attribute name is stored in the local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the business data, the column name corresponding to the attribute name is obtained from the local cache.

[0046] Optionally, the database is an Hbase database.

[0047] Optionally, the business data acquisition module is used to acquire business data corresponding to one or more business systems through an RPC remote call interface.

[0048] To achieve the above-mentioned purpose, according to another aspect of the present invention, an electronic device for processing business data is provided, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods for processing business data described above.

[0049] To achieve the above objective, according to another aspect of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the methods for processing business data described above is implemented.

[0050] The above invention has the following advantages or beneficial effects: by replacing the attribute names in the business data with the form of column names in the unstructured database, the storage structure of the business data of different business systems is unified, which facilitates the configuration of data ETL strategies and simplifies the process; by sending the business data of the business system to the message server and then obtaining the business data from the message server, the impact of the amount of business data of the business system on the business system is reduced; in addition, by pre-setting column names, pre-setting attribute serial numbers, etc., specialized processing of different business data is achieved; and by storing the attribute names and corresponding column names in the local cache, the speed of determining or searching the column names of existing attribute names is accelerated, thereby improving the efficiency of business data processing.

[0051] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0053] Figure 1 is a schematic diagram of the main flow of a method for processing business data according to an embodiment of the present invention;

[0054] Figure 2 is a schematic diagram of the main flow of another method for processing business data according to an embodiment of the present invention;

[0055] Figure 3 is a schematic diagram of the main flow of another method for processing business data according to an embodiment of the present invention;

[0056] Figure 4 is a schematic diagram of the main flow of yet another method for processing business data according to an embodiment of the present invention;

[0057] Figure 5 is a schematic diagram of main modules of a device for processing business data according to an embodiment of the present invention;

[0058] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0059] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0061] Figure 1 Schematic diagram of the main process of the method for processing business data according to an embodiment of the present invention; Figure 1 As shown, the method for processing the business data may specifically include the following steps:

[0062] Step S101 : acquiring business data corresponding to one or more business systems, wherein the business data indicates one or more entity classes, and the entity class has one or more attributes.

[0063] Business systems include but are not limited to logistics information systems, e-commerce systems, and any other business systems that process business according to actual needs. Business data refers to any data generated during the operation of the business system. Entity class refers to the abstraction or modeling of real objects when designing a business system. For example, in a shopping system, commodities, orders, etc. are entity classes in the shopping system, and entity classes can have their own attributes. For example, commodity entity classes can have multiple attributes such as commodity name, commodity price, commodity production date, etc. The attribute value corresponding to each attribute constitutes business data. Among them, commodity name, commodity price, etc. are the attribute names of each attribute, and each attribute has a corresponding attribute type according to the content, that is, string type, integer type, etc. For example, the attribute type corresponding to the commodity price is integer type, while the commodity name is string type.

[0064] In an optional implementation, business data corresponding to one or more business systems is obtained through an RPC remote call interface. In this way, the acquisition and processing of business data can be decoupled from the business system itself, and the specific device or tool for processing business data can also be established independently of the business system.

[0065] In an optional embodiment, the obtaining of business data corresponding to one or more business systems includes: obtaining the business data pushed by the one or more business systems; pushing the business data to a message server; obtaining the business data from the message server. Among them, the message server can be independently set up independently of the business data processing device, so as to buffer the pressure on the business system or the business data processing device caused by the surge in the amount of business data pushed by the business system, which is beneficial to the normal operation of the business system and further realizes the isolation between the business system and the business data processing device. In addition, by actively pushing business data by the business system, the resources consumed by the business system when parsing business data requests when sending business data according to business data requests are avoided, and the pressure on the business system itself caused by obtaining business data is further reduced.

[0066] Step S102, obtaining the attribute name and attribute type corresponding to the attribute from the business data. Specifically, taking the entity class of product information as an example, the attribute name and corresponding attribute type of the entity class are as follows:

[0067] Product name, string type

[0068] Product description, string type

[0069] Product quantity, integer type

[0070] Product price, integer type

[0071] That is to say, the string type attributes specifically included in the entity class are product information and product description, while the integer type attributes included are product quantity and product price.

[0072] Step S103: determining, according to the attribute name and the attribute type, a column name corresponding to the attribute name in a database for storing the business data, wherein the database is an unstructured database.

[0073] That is to say, attribute names, column names corresponding to attribute names, and attribute values ​​corresponding to attribute names in business data are stored through a columnar database. Databases that can be used to store business data include, but are not limited to, Hbase, SybaseIQ, infiniDB, infobright, ParAccel, Vertica and other databases. In a preferred embodiment of the present invention, the database is an Hbase database. Hbase database refers to a distributed, column-oriented open source database. HBase database provides Bigtable-like capabilities on Hadoop. HBase is a subproject of Apache's Hadoop project, but HBase is different from a general relational database. It is a database suitable for unstructured data storage, and HBase is a column-based rather than row-based storage mode.

[0074] It is understandable that there are multiple ways to determine the column name corresponding to the attribute name in the database used to store the business data based on the attribute name and the attribute type, including but not limited to: generating the column name corresponding to the attribute name according to preset rules, directly using the preset column name specified according to actual needs, using the preset attribute serial number specified according to actual needs, etc. to generate the column name corresponding to the attribute name.

[0075] In an optional implementation, determining the column name corresponding to the attribute name in the database used to store the business data based on the attribute name and the attribute type includes: sorting the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names; and generating the column name corresponding to the attribute name based on the attribute type and the attribute serial number corresponding to the attribute name.

[0076] Specifically, still taking the entity class of the above product information as an example, the entity class specifically includes string type attributes of product information and product description, and the integer type attributes of product quantity and product price. The attribute names corresponding to the same attribute type are sorted, such as sorting in dictionary order, and the column names corresponding to the attribute names related to the attribute type and attribute name order are generated as follows:

[0077] Product Name: string_0

[0078] Product Description: String_1

[0079] Product quantity: integer_0

[0080] Product price: integer_1

[0081] In this way, it can be ensured that different attribute names included in the same entity class correspond to different column names. It can be understood that the column names corresponding to the above-generated attribute names: string_0, string_1, integer_0, integer_1, etc. are only exemplary and can also be represented as character 0, string / 0, string-0, etc. according to requirements.

[0082] In an optional implementation, before generating a column name corresponding to the attribute name, it is determined whether the attribute name has a corresponding preset column name; if the attribute name has a corresponding preset column name, the preset column name is the column name corresponding to the attribute name.

[0083] Specifically, still taking the entity class as the above product information as an example, if the string type attributes product information and product description specifically included in the entity class have been specified as preset column names A, B, etc. according to the needs of the user or business system, then the preset column names A and B are directly used as the column names corresponding to the attribute names, as follows:

[0084] Product Name: A

[0085] Product Description: B

[0086] Product quantity: integer_0

[0087] Product price: integer_1

[0088] In this way, a customized method of determining the column name corresponding to the attribute name can be provided, which has a certain degree of scalability and can meet the customized needs of different users or business systems.

[0089] In addition, before generating the column name corresponding to the attribute name, determine whether the attribute name has a corresponding preset attribute serial number; if the attribute name has a corresponding preset attribute serial number, generate the column name corresponding to the attribute name according to the attribute name and the preset attribute serial number. In other words, not only can you directly customize or specify the column name corresponding to the attribute name, you can also customize the attribute serial number used to generate the column name corresponding to the attribute name. Specifically, still taking the entity class as the above-mentioned product information as an example, if the string-type attribute product information and product description specifically included in the entity class have been specified as preset attribute serial numbers 1-1, 1-2, etc. according to the needs of the user or business system, then directly use the preset attribute serial numbers 1-1 and 1-2 as the column names corresponding to the attribute names, as follows:

[0090] Product Name: string_1-1

[0091] Product Description: String_1-2

[0092] Product quantity: integer_0

[0093] Product price: integer_1

[0094] In this way, a customized method of determining the column name corresponding to the attribute name can be further provided, which has a certain degree of scalability and can meet the customized needs of different users or business systems.

[0095] In an optional implementation, the column name corresponding to the attribute name is stored in a local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the business data, the column name corresponding to the attribute name can be obtained from the local cache. Based on this, the column name corresponding to the attribute name determined according to the attribute name and attribute type stored in the local cache can be utilized, so that the efficiency of obtaining the column name corresponding to the attribute name can be quickly improved. In addition, since the storage space of the local cache is limited, the storage time or storage priority of the column name corresponding to the stored attribute name can be set according to actual conditions, and regular cleaning can be performed to achieve effective use of the storage space of the local cache, and at the same time, prevent loopholes in the local cache.

[0096] Step S104: storing the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0097] Specifically, still taking the entity class as the above product information as an example, the column names corresponding to the attribute names determined according to the attribute names and attribute types are as follows:

[0098] Product Name: string_0

[0099] Product Description: String_1

[0100] Product quantity: integer_0

[0101] Product price: integer_1

[0102] When storing business data in a database such as Hbase, the above key-vakue format can be used to store attribute names and column names corresponding to the attribute names. The key is the attribute name such as product name and product description, and the value is the column name corresponding to the attribute name in the Hbase database, that is, string_0, string_1, etc. At the same time, the attribute names and corresponding attribute values ​​in the business data, or the column names and corresponding attribute values ​​corresponding to the attribute names, etc. are stored in the key-vakue format. In this way, through the mapping relationship between the attribute name and the column name corresponding to the attribute name, and one or more Hbase and other databases with the same structure to store business data from different business systems, the business data has the same storage structure, and then when performing big data analysis on the business data, the same ETL (Extract-Transform-Load) strategy can be configured to simplify the process and improve efficiency.

[0103] Based on the above embodiments, the business data processing method provided by the present invention unifies the storage structure of business data of different business systems by replacing the attribute names in the business data with the column names in the unstructured database, facilitates the configuration of data ETL strategies, and simplifies the process; by sending the business data of the business system to the message server and then obtaining the business data from the message server, the impact of the amount of business data of the business system on the business system is reduced; in addition, through the methods of pre-setting column names, pre-setting attribute serial numbers, etc., specialized processing of different business data is achieved; and by storing the attribute names and corresponding column names in the local cache, the speed of determining or searching the column names of the existing attribute names is accelerated, thereby improving the efficiency of business data processing.

[0104] See also Figure 2 Based on the above embodiment, the embodiment of the present invention provides another method for processing business data, which may specifically include the following steps:

[0105] Step S201, obtaining the business data pushed by the one or more business systems. The obtained business data indicates one or more entity classes, and the entity class has one or more attributes. Specifically, the business data corresponding to one or more business systems is obtained through the RPC remote call interface. In this way, the acquisition and processing of business data can be decoupled from the business system itself, and the specific device or tool for processing business data can also be established independently of the business system.

[0106] Step S202: Push the business data to a message server.

[0107] The message server can be set up independently of the business system, avoiding the change in the ability to receive business data due to the change in the amount of business data pushed by the business system, thereby ensuring the normal operation of the business system.

[0108] Step S203: Acquire the service data from the message server.

[0109] Step S204: Acquire the attribute name and attribute type corresponding to the attribute from the business data.

[0110] Step S205, according to the attribute name and the attribute type, determine the column name corresponding to the attribute name in the database used to store the business data, the database is an unstructured database. It can be understood that there are multiple ways to determine the column name corresponding to the attribute name in the database used to store the business data according to the attribute name and the attribute type, including but not limited to: generating the column name corresponding to the attribute name according to a preset rule, directly using the preset column name specified according to actual needs, using the preset attribute serial number specified according to actual needs, etc. to generate the column name corresponding to the attribute name.

[0111] Step S206, according to the attribute name and the column name corresponding to the attribute name, the business data is stored in the database. The databases that can be used include but are not limited to: Hbase, Sybase IQ, infiniDB, infobright, ParAccel, Vertica and other column databases.

[0112] See also Figure 3 Based on the above embodiment, the embodiment of the present invention provides another method for processing business data, which may specifically include the following steps:

[0113] Step S301: acquiring business data corresponding to one or more business systems, wherein the business data indicates one or more entity classes, and the entity class has one or more attributes.

[0114] Step S302: Acquire the attribute name and attribute type corresponding to the attribute from the business data.

[0115] Step S303: sort the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names.

[0116] Step S304: Generate a column name corresponding to the attribute name according to the attribute type and the attribute serial number corresponding to the attribute name. The column name corresponding to the attribute name refers to the column name corresponding to the attribute name in the database used to store the business data, and the database is an unstructured database such as Hbas.

[0117] Step S305: storing the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0118] See also Figure 4 Based on the above embodiment, the embodiment of the present invention provides another method for processing business data, which may specifically include the following steps:

[0119] On the basis of acquiring business data corresponding to one or more business systems, the following steps are continued to be performed, where the acquired business data indicates one or more entity classes, and the entity class has one or more attributes.

[0120] Step S401: Acquire the attribute name and attribute type corresponding to the attribute from the business data.

[0121] Step S402, determine whether there is a column name corresponding to the attribute name in the local cache, if yes, execute step S408, if not, execute step S403. Specifically, the column name corresponding to the attribute name generated when the business data is processed before is stored in the local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the new business data, the column name corresponding to the attribute name can be obtained from the local cache. Based on this, the column name corresponding to the attribute name determined according to the attribute name and attribute type stored in the local cache can be used, so that the efficiency of obtaining the column name corresponding to the attribute name can be quickly improved. In addition, since the storage space of the local cache is limited, the storage time or storage priority of the column name corresponding to the stored attribute name can be set according to the actual situation, and regular cleaning can be performed to achieve effective use of the storage space of the local cache, and at the same time, prevent loopholes in the local cache.

[0122] Step S403, determining whether the attribute name has a corresponding preset column name, if yes, executing step S404, if no, executing step S405.

[0123] Step S404, the preset column name is the column name corresponding to the attribute name. In this way, a customized method for determining the column name corresponding to the attribute name can be provided, which has certain extensibility and can meet the customized requirements of different users or business systems.

[0124] Step S405, determining whether the attribute name has a corresponding preset attribute serial number, if yes, executing step S406, if no, executing step S407.

[0125] Step S406, generating a column name corresponding to the attribute name according to the attribute name and the preset attribute serial number. In this way, a customized method of determining the column name corresponding to the attribute name can be further provided, which has certain scalability and can meet the customized needs of different users or business systems.

[0126] Step S407, according to the attribute type and the attribute serial number corresponding to the attribute name, generate the column name corresponding to the attribute name. That is, sort the attribute names corresponding to the same attribute type to generate the attribute serial number corresponding to the attribute name; according to the attribute type and the attribute serial number corresponding to the attribute name, generate the column name corresponding to the attribute name.

[0127] Step S408: storing the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0128] See also Figure 5 Based on the above embodiments, the embodiment of the present invention provides a business data processing device 500, including: a business data acquisition module 501, a business data processing module 502, and a business data storage module 503; wherein,

[0129] The business data acquisition module 501 is used to acquire business data corresponding to one or more business systems, wherein the business data indicates one or more entity classes, and the entity class has one or more attributes;

[0130] The business data processing module 502 is used to obtain the attribute name and attribute type corresponding to the attribute from the business data; and determine the column name corresponding to the attribute name in the database used to store the business data according to the attribute name and the attribute type, wherein the database is an unstructured database;

[0131] The business data storage module 503 is used to store the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0132] In an optional implementation, obtaining business data corresponding to one or more business systems includes: obtaining the business data pushed by the one or more business systems; pushing the business data to a message server; and obtaining the business data from the message server.

[0133] In an optional implementation, determining the column name corresponding to the attribute name in the database used to store the business data based on the attribute name and the attribute type includes: sorting the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names; and generating the column name corresponding to the attribute name based on the attribute type and the attribute serial number corresponding to the attribute name.

[0134] In an optional implementation, the business data processing module 502 is further configured to:

[0135] Before generating the column name corresponding to the attribute name, it is determined whether the attribute name has a corresponding preset column name; if the attribute name has a corresponding preset column name, the preset column name is the column name corresponding to the attribute name.

[0136] In an optional implementation, the business data processing module 502 is also used to determine whether the attribute name has a corresponding preset attribute serial number before generating a column name corresponding to the attribute name; if the attribute name has a corresponding preset attribute serial number, generate a column name corresponding to the attribute name based on the attribute name and the preset attribute serial number.

[0137] In an optional embodiment, the business data processing module 502 is also used to store the column name corresponding to the attribute name in a local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the business data, the column name corresponding to the attribute name is obtained from the local cache.

[0138] In an optional implementation, the database is an Hbase database.

[0139] In an optional implementation, the business data acquisition module 501 is used to acquire business data corresponding to one or more business systems through an RPC remote call interface.

[0140] Figure 6 An exemplary system architecture 600 is shown to which the method for processing business data or the device for processing business data according to the embodiment of the present invention can be applied.

[0141] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0142] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0143] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0144] Server 605 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using terminal devices 601, 602, and 603. The backend management server may analyze and process received data such as product information query requests, and feed back the processing results to the terminal device.

[0145] It should be noted that the method for processing business data provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for processing business data is generally disposed in the server 605 .

[0146] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0147] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0148] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0149] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0150] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

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

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

[0153] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a business data acquisition module, a business data processing module, and a business data storage module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the business data acquisition module may also be described as a "module for acquiring business data corresponding to one or more business systems."

[0154] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining business data corresponding to one or more business systems, the business data indicating one or more entity classes, and the entity class having one or more attributes; obtaining the attribute name and attribute type corresponding to the attribute from the business data; determining the column name corresponding to the attribute name in the database used to store the business data according to the attribute name and the attribute type, the database being an unstructured database; storing the business data in the database according to the attribute name and the column name corresponding to the attribute name.

[0155] According to the technical solution of the embodiment of the present invention, by replacing the attribute names in the business data with the form of column names in the unstructured database, the storage structure of the business data of different business systems is unified, which facilitates the configuration of data ETL strategies and simplifies the process; by sending the business data of the business system to the message server and then obtaining the business data from the message server, the impact of the amount of business data of the business system on the business system is reduced; in addition, through the methods of pre-setting column names, pre-setting attribute serial numbers, etc., specialized processing of different business data is achieved; and by storing the attribute names and corresponding column names in the local cache, the speed of determining or searching the column names of the existing attribute names is accelerated, thereby improving the efficiency of business data processing.

[0156] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing business data, characterized in that: include: Acquire business data corresponding to one or more business systems, where the business data indicates one or more entity classes, and the entity class has one or more attributes; Acquire the attribute name and attribute type corresponding to the attribute from the business data; According to the attribute name and the attribute type, determining a column name corresponding to the attribute name in a database for storing the business data, wherein the database is an unstructured database; specifically comprising: sorting the attribute names corresponding to the same attribute type to generate an attribute serial number corresponding to the attribute name; generating a column name corresponding to the attribute name according to the attribute type and the attribute serial number corresponding to the attribute name; The business data is stored in the database according to the attribute name and the column name corresponding to the attribute name.

2. The method for processing business data according to claim 1, characterized in that: The obtaining of business data corresponding to one or more business systems includes: Acquire the business data pushed by the one or more business systems; Pushing the business data to a message server; The service data is obtained from the message server.

3. The method for processing business data according to claim 1, characterized in that: Also includes: Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset column name; In the case where the attribute name has a corresponding preset column name, the preset column name is the column name corresponding to the attribute name.

4. The method for processing business data according to claim 1, characterized in that: Also includes: Before generating a column name corresponding to the attribute name, determining whether the attribute name has a corresponding preset attribute serial number; In the case where the attribute name has a corresponding preset attribute serial number, a column name corresponding to the attribute name is generated according to the attribute name and the preset attribute serial number.

5. The method for processing business data according to any one of claims 1 to 4, characterized in that: Also includes: The column name corresponding to the attribute name is stored in the local cache, so that when the attribute name and attribute type corresponding to the attribute are obtained from the business data, the column name corresponding to the attribute name is obtained from the local cache.

6. The method for processing business data according to claim 1, characterized in that: The database is an Hbase database.

7. The method for processing business data according to claim 2, characterized in that: Obtain business data corresponding to one or more business systems through the RPC remote call interface.

8. A device for processing business data, characterized in that: include: Business data acquisition module, business data processing module, business data storage module; among them, The business data acquisition module is used to acquire business data corresponding to one or more business systems, wherein the business data indicates one or more entity classes, and the entity class has one or more attributes; The business data processing module is used to obtain the attribute name and attribute type corresponding to the attribute from the business data; determine the column name corresponding to the attribute name in the database used to store the business data according to the attribute name and the attribute type, wherein the database is an unstructured database; specifically, to sort the attribute names corresponding to the same attribute type to generate attribute serial numbers corresponding to the attribute names; and generate the column name corresponding to the attribute name according to the attribute type and the attribute serial number corresponding to the attribute name; The business data storage module is used to store the business data in the database according to the attribute name and the column name corresponding to the attribute name.

9. An electronic device for processing business data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for verifying service data object

    CN101727466A

  • Configurable method for automatically generating database and accessing data

    CN102663103A