Index map processing method and related device
By obtaining the triggering sequence and coordinate data of the indicator nodes, determining the connection position and updating the indicator data table, the problems of high storage cost and low transmission efficiency in the existing technology are solved, and the structured storage and efficient transmission of the indicator map are realized.
Patent Information
- Application Number
- CN202510073641.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-09-23
AI Technical Summary
The existing technology has high storage costs and low transmission efficiency in indicator graph processing, the graph is chaotic, and it is difficult to clearly characterize the correlation between indicators.
By obtaining the triggering sequence and coordinate data of the indicator nodes, determining the connection position and connecting the indicator nodes, and updating the indicator data table based on the coordinate data, the structured storage and transmission of the indicator map is realized.
It reduces data storage capacity, improves transmission efficiency and convenience, clearly characterizes the correlation between indicators, and improves the efficiency and clarity of graph processing.
Smart Images

Figure CN120688903A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an indicator graph processing method and related devices. Background Art
[0002] With the continuous development of Internet technology, more and more business scenarios use indicator data to measure business operations, which makes the importance of indicator data in business scenarios gradually increase; and with the continuous expansion of business scenarios, the amount of indicator data in business scenarios continues to increase, resulting in an increase in the difficulty of summarizing and analyzing indicator data, making graphs gradually come into the sight of business parties. The aggregation and analysis of indicator data in the form of graphs has been widely used. In this process, higher indicator data processing requirements are also put forward for business parties. Summary of the Invention
[0003] In a first aspect, an embodiment of the present application provides an indicator graph processing method, comprising: Obtaining the triggering sequence and first coordinate data of the first indicator node; Determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; Connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; Based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively.
[0004] It can be seen that in the embodiment of the present application, after obtaining the trigger sequence and the first coordinate data of the first indicator node, the connection position between the first indicator node and the second indicator node associated with the first indicator node is determined according to the trigger sequence and the first coordinate data, and the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0005] In a second aspect, an embodiment of the present application provides an indicator graph processing device, comprising: A data acquisition module, used to acquire the triggering sequence and first coordinate data of the first indicator node; a position determination module, configured to determine a second indicator node associated with the first indicator node according to the triggering sequence, and determine a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; a node connection module, configured to connect the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; An update processing module is used to update the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position.
[0006] In a third aspect, an embodiment of the present application provides a computer device comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to execute the indicator map processing method described in the first aspect.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer-executable instructions, which, when executed by a processor, implement the indicator map processing method as described in the first aspect.
[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the indicator map processing method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments described in this specification. Those skilled in the art can also derive other drawings based on these drawings without inventive work. Figure 1 A flowchart of an indicator graph processing method provided in an embodiment of the present application; Figure 2 A schematic diagram of an indicator map provided in an embodiment of the present application; Figure 3 A schematic diagram of an update process of an indicator map provided in an embodiment of the present application; Figure 4A schematic diagram of a processing architecture for an indicator graph processing provided in an embodiment of the present application; Figure 5 A flowchart of an indicator graph processing method applied to an indicator graph update scenario provided in an embodiment of the present application; Figure 6 A schematic diagram of an indicator graph processing device provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0010] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0011] This specification provides an embodiment of an indicator graph processing method: Currently, in the process of processing indicator maps, the connection relationship between indicators is often recorded in the form of a hashed indicator map, or in the form of an irregular graphic map. However, whether it is a hashed indicator map or a graphic map, only the connection relationship between indicators is recorded in the map, which leads to confusion in the entire map and high storage cost for storing the map.
[0012] In response to this, the indicator map processing method provided in this embodiment obtains the trigger sequence and coordinate data of multiple indicator nodes to be processed, and then determines the connection position between the first indicator node and the second indicator node associated with the first indicator node based on the trigger sequence and the first coordinate data, and connects the first indicator node to the second indicator node according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0013] The indicator graph processing method provided in this embodiment can be executed by a terminal or a server, wherein the terminal may include a mobile phone, a laptop computer, an intelligent interactive device, etc., and the server may include an independent physical server, a server cluster composed of multiple servers, or a cloud server capable of cloud computing.
[0014] Reference Figure 1 The indicator graph processing method provided in this embodiment specifically includes steps S102 to S108.
[0015] Step S102: Acquire the triggering sequence and first coordinate data of the first indicator node.
[0016] In this embodiment, the first indicator node can be at least two indicator nodes, and each indicator node in the first indicator node can be a newly added indicator node or an indicator node in the initial indicator map. Specifically, before obtaining the trigger sequence and first coordinate data of the first indicator node, on the one hand, the initial indicator map may not exist, in which case the first indicator node can be a newly added indicator node. On the other hand, the initial indicator map may exist, in which case the first indicator node can be an indicator node in the initial indicator map or a newly added indicator node for the initial indicator map.
[0017] The triggering order of the first indicator node includes the click order of the first indicator node. For example, the first indicator node includes indicator node 1, indicator node 2, and indicator node 3, and the triggering order of the first indicator node is indicator node 1, indicator node 2, and indicator node 3. The first coordinate data of the first indicator node includes the coordinate data of each indicator node in the first indicator node, which can be the coordinate data of each indicator node in the coordinate system. The coordinate system can be a plane rectangular coordinate system. For example, the coordinate data of indicator node 1 is (x1, y1). It should be noted that when the indicator nodes in the initial indicator map exist in the first indicator node, the indicator nodes in the initial indicator map are represented by the first type of indicator nodes, and the coordinate data of the first type of indicator nodes can be read from the indicator node table corresponding to the initial indicator map. When a new indicator node exists in the first indicator node, the new indicator node is represented by the second type of indicator node, and the coordinate data of the second type of indicator node can be determined based on the trigger coordinates corresponding to the trigger instruction of the user in the coordinate system. Specifically, the coordinate data of the second type of indicator node can be the trigger coordinates corresponding to the trigger instruction.
[0018] In addition, at least one business level may be pre-set. Before obtaining the triggering sequence and first coordinate data of the first indicator node, the business level corresponding to the first indicator may be determined in the at least one business level, and a first indicator node of the first indicator may be established in the coordinate system operation area of the business level. The first indicator here may be at least two indicators. After that, the triggering sequence and first coordinate data of the first indicator node may be obtained. For example, Figure 2 As shown, the business levels include business level L1, business level L2, business level L3, business level L4 and business level L5. The levels of the business levels decrease from top to bottom, that is, the level of business level L1 is higher than that of business level L2, and the level of business level L2 is higher than that of business level L3, and so on. Indicator 1 belongs to business level L1, indicator 2 belongs to business level L2, indicators 3 to 11 belong to business level L3, indicator 12 belongs to business level L4, and indicators 13 to 16 belong to business level L5.
[0019] This embodiment can be applied to a graph component, which can be deployed within a service. The service can be an application, a subprogram within an application (such as a mini-program), or a service unit within an application or subprogram, such as a resource application, a resource subprogram, or a resource service unit. In this case, the first indicator corresponding to the first indicator node can be an indicator belonging to the service.
[0020] In specific implementation, the first indicator node can be established based on the user's trigger instruction in the coordinate system; the initial indicator map can be the user's historical indicator map, that is, the indicator map previously constructed by the user, or it can be any one or more indicator maps selected by the user from the indicator map library.
[0021] In actual applications, users may have the need to add indicator nodes to the previously constructed indicator map, or they may have the need to add indicator nodes based on the indicator map constructed by other users to generate a new indicator map, that is, to build the indicator map they need with the help of the indicator map constructed by other users. In order to meet the diverse needs of users in constructing indicator maps and improve the convenience and efficiency of indicator map construction, an optional implementation method provided by this embodiment is to retrieve a matching first indicator map table in the indicator map library according to the submitted search keywords before executing the trigger sequence and first coordinate data of the first indicator node, filter the second indicator map table whose editing state is unedited from the first indicator map table, add an indicator node to the initial indicator map corresponding to the second indicator map table, and obtain the first indicator node. Specifically, the following operations may also be performed: According to the submitted search keywords, a matching first indicator map table is searched in the indicator map library; Reading the editing status recorded in the first indicator map table, and filtering the second indicator map table whose editing status is not edited from the first indicator map table; An indicator node is added to the initial indicator graph corresponding to the second indicator graph table to obtain a first indicator node.
[0022] Among them, the search keyword can be the spectrum identifier of the input indicator spectrum, the description keyword of the input indicator spectrum, or other relevant keywords of the input indicator spectrum; the first indicator spectrum table can be used to store the spectrum identifier, spectrum name, spectrum description information, editing status, review status and / or related indicator spectrum of the first indicator spectrum; the editing status recorded in the first indicator spectrum table includes the unedited status and / or the editing status.
[0023] Specifically, a matching first indicator map table can be retrieved in the indicator map library according to the search keyword input by the user, the editing status recorded in the first indicator map table can be read, and a second indicator map table whose editing status is unedited can be filtered from the first indicator map table, and an indicator node is added to the initial indicator map corresponding to the second indicator map table to obtain the first indicator node; that is, the first indicator node is added to the initial indicator map.
[0024] Step S104 : determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data.
[0025] After obtaining the trigger sequence and the first coordinate data of the first indicator node as mentioned above, in this step, the connection position of the first indicator node and the second indicator node associated with the first indicator node is determined in combination with the trigger sequence and the first coordinate data. In this way, the rationality and effectiveness of the connection position are improved by introducing the trigger sequence and the first coordinate data, thereby avoiding confusion in subsequent node connection.
[0026] In this embodiment, the second indicator node can be determined within the first indicator node, that is, the second indicator node can be included within the first indicator node; the second indicator node includes indicator nodes that have a triggering relationship with the first indicator node. Using the above example, the first indicator node includes indicator node 1, indicator node 2, and indicator node 3. The triggering order of the first indicator node is indicator node 1, indicator node 2, and indicator node 3. Then, the second indicator node associated with indicator node 1 is indicator node 2, and the second indicator node associated with indicator node 2 is indicator node 3. The second indicator node can be any one or more indicator nodes within the first indicator node. The connection position can include a starting connection position and an ending connection position.
[0027] In actual applications, indicator data may be complex and changeable. If a certain position of an indicator node is arbitrarily selected before connecting the indicator nodes, and the node connection is subsequently performed according to the position, the connection relationship between the indicator nodes may be relatively confusing, and the correlation relationship between the indicators cannot be clearly represented. In view of this, in order to improve the connection clarity of the indicator nodes, an optional implementation method provided in this embodiment is that in the process of determining the connection position of the first indicator node and the second indicator node according to the trigger sequence and the first coordinate data, the connection direction of the first indicator node and the second indicator node can be determined according to the trigger sequence, and the starting connection position and the ending connection position can be determined according to the connection direction and the first coordinate data. Specifically, the following operations can be performed: Determining a connection direction between the first indicator node and the second indicator node according to the triggering sequence, and determining a relative position between the first indicator node and the second indicator node according to the first coordinate data; Based on the connection direction and the relative position, a starting connection position and an ending connection position of the first indicator node and the second indicator node are determined.
[0028] The connection direction between the first indicator node and the second indicator node refers to the direction of the connection between the first indicator node and the second indicator node. For example, if the user first triggers indicator node 1 and then triggers indicator node 2, the connection direction between indicator node 1 and indicator node 2 is that indicator node 1 points to indicator node 2. The relative position of the first indicator node and the second indicator node may include position data of the first indicator node relative to the second indicator node, and specifically may include orientation data of the first indicator node relative to the second indicator node. For example, if the relative position of indicator node 1 and indicator node 2 is upper right, it means that indicator node 1 is above and right of indicator node 2.
[0029] Specifically, in the process of determining the relative position of the first index node and the second index node based on the first coordinate data, the relative position of the first index node and the second index node can be determined based on the first coordinate data of the first index node and the third coordinate data of the second index node.
[0030] For example Figure 3As shown, indicator 1 represents indicator node 1, indicator 2 represents indicator node 2, indicator 3 represents indicator node 3, indicator 4 represents indicator node 4, and indicator 11 represents indicator node 11. The first indicator node includes indicator node 1, indicator node 2, indicator node 3, indicator node 4, and indicator node 11. The connection direction between indicator node 1 and indicator node 2 is determined to be indicator 1 pointing to indicator 2 according to the triggering sequence. According to the first coordinate data (4, 3) of indicator node 1 and the second coordinate data (2, 1) of indicator node 2, the relative position of indicator node 1 and indicator node 2 is determined to be the upper right. The starting connection position and the ending connection position of indicator node 1 and indicator node 2 are determined according to the connection direction and relative position. The other indicator nodes are similar to indicator node 1 and indicator node 2 and are not repeated here.
[0031] In addition, in the process of determining the starting connection position and the ending connection position of the first indicator node and the second indicator node based on the connection direction and relative position, the starting connection position and the ending connection position can also be determined according to the connection direction, relative position and the preset connection strategy; the preset connection strategy here can be a preset connection line, such as a preset connection line that is a straight line, and the preset connection strategy can also be a connection strategy in which no slanted lines appear. The introduction of the preset connection strategy can further improve the clarity of the node connection and avoid cross confusion of the node connection; for example, the connection direction is from indicator node 1 to indicator node 2, and the relative position of indicator node 1 and indicator node 2 is the upper right, and the preset connection strategy is a strategy of connecting with a straight line, then the starting connection position is the left position of indicator node 1, and the ending connection position is the top position of indicator node 2, which means that it is possible to connect from the left position of indicator node 1 to the top position of indicator node 2.
[0032] Step S106: Connect the first indicator node and the second indicator node according to the connection position to obtain an indicator graph.
[0033] In the above steps, starting from the trigger sequence and the first coordinate data of the first indicator node, the connection position of the first indicator node and the second indicator node is determined. In this step, the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. The indicator map in this embodiment includes a map that characterizes the association relationship between indicators; for example, Figure 2 The indicator map shown contains 16 indicator nodes, indicator 1 to indicator 16. Indicator nodes are established using indicator identifiers, and indicator nodes are connected using straight lines in the indicator map. Optionally, the indicator map corresponds to multiple indicator data tables.
[0034] The multiple indicator data tables in this embodiment may include at least two of an indicator graph table, an indicator node table, a node connection relationship table, and an indicator details table; the multiple indicator data tables may also be replaced by an indicator data table set.
[0035] Optionally, the indicator map corresponds to a set of indicator data tables; the indicator data table set includes a set consisting of one or more indicator data tables; optionally, the indicator data table set consists of an indicator map table, an indicator node table, a node connection relationship table and / or an indicator details table; the indicator map table is used to store the map identifier and / or editing status of the indicator map; the indicator node table is used to store the coordinate data of the indicator nodes in the indicator map; the node connection relationship table is used to store coordinate relationship data, and the coordinate relationship data is used to characterize the coordinate relationship between the coordinate data of the indicator nodes in the indicator map and the coordinate data of the first connection position of the indicator nodes; the indicator details table is used to store indicator statistical data corresponding to the indicator nodes in the indicator map; the first connection position here can be the connection position between the indicator nodes in the indicator map.
[0036] Specifically, the indicator graph table includes a table for storing basic attribute information of the indicator graph, such as using metric_graph to represent the indicator graph table; the indicator graph table can be used to store the graph identifier (graph_id), graph name, graph description information, editing status, review status and / or graph identifier of the associated indicator graph; the graph identifier can be an identifier representing the uniqueness of the indicator graph, and the graph description information can be relevant description information of the indicator graph, such as the business scenario to which the indicator graph belongs, the business level of the indicator graph and / or the number of levels of the business level of the indicator graph. In addition, the graph description information can also be other types of description information; the editing status includes the unedited state and / or the editing state, and the review status includes the unreviewed state, the review passed state and / or the review failed state; the associated indicator graph of the indicator graph can be an indicator graph with the same indicator node as the indicator graph.
[0037] The indicator node table includes a table for storing relevant information of the indicator nodes in the indicator graph, such as using metric_graph_node to represent the indicator node table; the indicator node table can be used to store the graph identifier (graph_id) of the indicator graph, the node name of the indicator node in the indicator graph, the node identifier, the indicator identifier (metric_id) of the indicator corresponding to the indicator node, the description information of the indicator node in the indicator graph, the coordinate data of the indicator node and / or the weight information of the indicator node, the coordinate data of the indicator node can be the x-axis parameter and y-axis parameter of the indicator node in the coordinate system; the graph identifier of the indicator graph recorded in the indicator node table can be used for associated query with the indicator graph table, the weight information of the indicator node can be determined based on the business level of the indicator node, and the weight information can be positively correlated with the business level, that is, the higher the business level, the greater the weight of the indicator node can be; For example, the indicator node table shown in Table 1:
[0038] Among them, node id refers to the node identifier of the indicator node, graph id refers to the graph identifier of the indicator graph, and indicator id refers to the indicator identifier of the indicator corresponding to the indicator node; a record can represent the relevant information of an indicator node in the indicator graph. Taking node id-1 as an example, it represents indicator node 1. The graph id of the indicator graph where indicator node 1 is located is 2, the indicator id of the indicator corresponding to indicator node 1 is 7, the node name of indicator node 1 is indicator 1, the X_axis (x-axis parameter) of indicator node 1 is 2, the Y_axis (y-axis parameter) is 1, which means the coordinate data of indicator node 1 is (2, 1), and the weight (weight information) of indicator node 1 is 100.
[0039] The node connection relationship table includes a table for storing the connection relationship between indicator nodes in the indicator graph; for example, metric_graph_edge is used to represent the node connection relationship table; the node connection relationship table can be used to store the graph identifier of the indicator graph, the node identifier of the starting indicator node (source_node_id), the node identifier of the ending indicator node (target_node_id), the coordinate relationship data between the coordinate data of the connection position and the coordinate data of the indicator node corresponding to the connection position, and / or the number of node connections; wherein the number of node connections represents the number of connections between the starting indicator node and the ending indicator node; for example, the node connection relationship table shown in Table 2:
[0040] Among them, the starting node id represents the node identifier of the starting indicator node, the ending node id represents the node identifier of the ending indicator node, Position represents the number of node connections, From represents the coordinate relationship data between the coordinate data of the starting connection position and the coordinate data of the starting indicator node, and To represents the coordinate relationship data between the coordinate data of the ending connection position and the coordinate data of the ending indicator node; the information in the table is that the graph id is 2, the starting node id is 8, the ending node id is 7, the Position is 1, and the coordinate relationship data is down and top. When the Position is 1, it means that there is a node connection path between the starting indicator node 8 and the ending indicator node 7, connecting from the down position of the starting indicator node 8 to the top position of the ending indicator node 7.
[0041] The indicator details table is used to store relevant statistical data of the indicators corresponding to the indicator nodes in the indicator map. The indicator details table can store statistical data of the indicator values corresponding to the indicator nodes in the indicator map, line graphs of the indicator values and / or fluctuation data of the indicator values.
[0042] During specific implementation, the first indicator node and the second indicator node can be connected according to the starting connection position and the ending connection position to obtain an indicator map; it should be noted that the above steps S102 to S106 can be executed once or multiple times, and these execution processes of steps S102 to S106 can be repeated until all indicator nodes are connected to obtain an indicator map.
[0043] It should be added that after obtaining the indicator map, the indicator map can also be shared with a certain user by submitting a sharing instruction. Specifically, the indicator data table set corresponding to the indicator map can be sent to the terminal device corresponding to the user identifier according to the user identifier carried by the submitted sharing instruction for the indicator map; in this way, the amount of data transmitted is reduced by transmitting the indicator data table set instead of directly transmitting the indicator map, thereby improving the transmission efficiency and success rate; after the terminal device receives the indicator data table set corresponding to the indicator map, it can perform map assembly processing based on the indicator map table, indicator node table and / or node connection relationship table contained in the indicator data table set after detecting the map assembly instruction to obtain the indicator map; on this basis, the indicator map can be further improved, that is, on the basis of the assembled indicator map, indicator nodes can be established and node connections can be made, or indicator nodes in the indicator map can be deleted, the connections of indicator nodes can be deleted, and the indicator nodes can be reconnected; after detecting the detailed access instruction for the indicator nodes in the indicator map, indicator statistical data can be read from the indicator details table contained in the indicator data table set for display.
[0044] Step S108 : Based on the first coordinate data and the second coordinate data of the connection position, updating the index data table corresponding to the first coordinate data and the index data table corresponding to the second coordinate data respectively.
[0045] The first indicator node and the second indicator node are connected according to the connection position to obtain the indicator map. In this step, in order to improve the convenience of storing the indicator map, based on the first coordinate data of the first indicator node and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively. In this way, the direct storage of the indicator map is replaced by the form of the indicator data table, thereby reducing the data storage capacity.
[0046] In this embodiment, the second coordinate data of the connection position may include the second coordinate data of the starting connection position and the second coordinate data of the ending connection position. The second coordinate data may be the coordinate data of the connection position in a coordinate system, which may be a plane rectangular coordinate system. The indicator data table corresponding to the first coordinate data may include an indicator node table; the indicator data table corresponding to the second coordinate data of the connection position may include a node connection relationship table.
[0047] In actual applications, the indicator map involves a lot of data, such as indicator nodes, connection information between indicator nodes, etc. in the indicator map. The map data in the indicator map is relatively complicated. Therefore, in order to improve the orderliness and clarity of the storage of the indicator map, the relevant data of the indicator map can be stored through different types of indicator data tables, which can achieve the effect of structured storage of the indicator map. In an optional implementation provided by this embodiment, in the process of updating the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position, the following operations are performed: The first coordinate data is updated to the indicator node table included in the indicator data table set; and the first coordinate relationship data between the second coordinate data and the third coordinate data of the indicator node corresponding to the connection position is determined, and the first coordinate relationship data is updated to the node connection relationship table included in the indicator data table set.
[0048] Among them, the indicator nodes corresponding to the connection position may include the starting indicator node corresponding to the starting connection position and the terminating indicator node corresponding to the terminating connection position; the starting indicator node and the terminating indicator node may be determined in the first indicator node and the second indicator node, for example, the first indicator node is indicator node 1, the second indicator node is indicator node 2, and the connection direction between indicator node 1 and indicator node 2 is indicator node 1 pointing to indicator node 2, then indicator node 1 is the starting indicator node, and indicator node 2 is the terminating indicator node. The first coordinate relationship data may include the coordinate relationship data between the coordinate data of the starting connection position and the coordinate data of the starting indicator node corresponding to the starting connection position, and the coordinate relationship data between the coordinate data of the terminating connection position and the coordinate data of the terminating indicator node corresponding to the terminating connection position. The coordinate relationship data may be top, down, left, or right, for example Figure 3 As shown, the four coordinate relationship data of indicator node 4, i.e., top, down, left, and right of indicator 4 are shown in the figure; for example, the first coordinate relationship data is (down, top), which means that the coordinate relationship data between the coordinate data of the starting connection position and the coordinate data of the starting indicator node corresponding to the starting connection position is down, that is, the starting connection position is at the down position of the starting indicator node, and the ending connection position is at the top position of the ending indicator node.
[0049] It should be added that, in the process of updating the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position, the indicator statistical data of the indicator corresponding to the first indicator node can also be updated to the indicator details table contained in the indicator data table set; the indicator statistical data can be the statistical data of the indicator value of the indicator corresponding to the indicator node, a line chart of the indicator value and / or fluctuation data of the indicator value.
[0050] In addition, on the basis of the above-mentioned indicator data table set consisting of an indicator map table, an indicator node table, a node connection relationship table and / or an indicator details table, the above-mentioned optional implementation method of updating the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data respectively based on the first coordinate data and the second coordinate data of the connection position can be executed.
[0051] In actual application scenarios, after obtaining the indicator graph, there may be loops in the indicator graph, such as connecting from indicator node 1 to indicator node 2 and finally connecting back to indicator node 1. However, loops may need to be avoided in the indicator graphs of some business scenarios, such as task scheduling scenarios. In order to meet the diverse needs of different business scenarios for indicator graphs, improve the adaptability of indicator graphs to business scenarios, and thus improve the effectiveness of indicator graphs; this embodiment can provide a function for loop-free detection of indicator graphs; specifically, the following method can be used to perform loop-free detection on the indicator graph: Determine the connected indicator node of the current indicator node in the indicator map, and determine the access status of the connected indicator node; If the access status is the visited status, or the access status is the unvisited status and the indicator corresponding to the connected indicator node is the same as the indicator corresponding to the current indicator node, a loop reminder of the indicator map is output; If the access state is the unaccessed state, the current indicator node is updated using the connection indicator node, and the loop detection is continued until there is no connection indicator node of the current indicator node, or no processing is performed.
[0052] The connected indicator node of the current indicator node may be an indicator node connected to the current indicator node. Here, using the connected indicator node to update the current indicator node may be using the connected indicator node as the current indicator node.
[0053] Optionally, the access status of a connection indicator node is determined by querying the connection indicator node in an access record table based on the node identifier of the connection indicator node. If the query result is not empty, the access status of the connection indicator node is determined to be an accessed state; if the query result is empty, the access status of the connection indicator node is determined to be an unaccessed state. The access record table can store accessed indicator nodes. If there is no connection indicator node for the current indicator node, the access record table can be cleared, and the current indicator node can be re-determined to continue loop-free detection. The loop reminder of the indicator graph includes reminder information that reminds you of the existence of a loop in the indicator graph.
[0054] For example, create a CycleDetection class that includes an isAcyclic method. This method is the core method for acyclic detection. The method uses visitedNodes to record the visited indicator nodes. VisitedNodes represents the visit record table, which can be a hash set. The isAcyclic method can be automatically executed to perform acyclic detection on the indicator graph. The specific execution process of acyclic detection is the above operation process.
[0055] During the specific execution process, in order to meet the diverse needs of users for accessing the indicator graph, in an optional implementation provided by this embodiment, the following operations are further performed: Based on the node identifier of the third indicator node in the indicator graph, querying the node connection data of the third indicator node in the node connection relationship table included in the plurality of indicator data tables; The node connection path is determined according to the node connection data, and the node connection path is marked in the indicator map according to the preset marking elements.
[0056] Among them, the node connection data includes the connection data of the third indicator node as the starting indicator node and / or the connection data of the third indicator node as the ending indicator node. For example, the node id of the third indicator node is 8, and the node connection data includes node connection data 1 "graph id is 2, starting node id is 8, ending node id is 7, Position is 1, From is down, To is top" and node connection data 2 "graph id is 2, starting node id is 9, ending node id is 8, Position is 1, From is left, To is right". The preset marking element can be any one or more marking elements, such as color, preset symbol. In addition, the preset marking element can also be other types of marking elements. The third indicator node can be any one or more indicator nodes in the indicator graph.
[0057] Specifically, in the process of querying the node connection data of the third indicator node in the node connection relationship table contained in multiple indicator data tables based on the node identifier of the third indicator node in the indicator map, the submitted association display instruction for the third indicator node in the indicator map can be obtained, and based on the map identifier of the indicator map and the node identifier of the third indicator node carried by the association display instruction, the node connection data of the third indicator node can be queried in the node connection relationship table contained in the indicator data table set; after marking the node connection path in the indicator map according to the preset marking elements, the marking results can be displayed.
[0058] On this basis, in an optional implementation manner provided by this embodiment, in the process of determining the node connection path according to the node connection data, the following operations are performed: Extracting a fourth indicator node connected to the third indicator node from the node connection data, and querying coordinate data of the fourth indicator node from an indicator node table included in the plurality of indicator data tables; The node connection path is determined based on the coordinate data of the fourth index node and the coordinate relationship data in the node connection data.
[0059] The fourth index node may include an index node to which the third index node is connected as a starting index node and / or an index node to which the third index node is connected as an ending index node.
[0060] Specifically, after extracting the fourth indicator node connected to the third indicator node from the node connection data, in order to avoid repeated calculations caused by the duplication of the fourth indicator node, the fourth indicator node can be deduplicated to obtain deduplicated indicator nodes, and then the coordinate data of the deduplicated indicator nodes can be queried from the indicator node table contained in the indicator data table set.
[0061] In actual applications, the same indicator nodes may exist in different indicator graphs. In this case, these indicator graphs usually have an association relationship. In actual scenarios, there is a need to combine all these associated indicator graphs for business processing. In view of this, in order to improve the convenience of business processing, the associated indicator graphs of the indicator graph can be recorded in the indicator graph table of the indicator graph. The associated indicator graph can be an indicator graph with the same indicator node as the indicator graph, or an indicator graph with the first node as the indicator node in the indicator graph, that is, the associated indicator graph can be a subgraph of the indicator graph; in this case, the indicator graph with the fifth indicator node as the first node can be queried in the indicator graph table according to the node identifier of the fifth indicator node; the lineage path of the sixth indicator node can also be queried according to the indicator identifier of the indicator corresponding to the sixth indicator node; for indicator graphs with larger capacity, cache data can also be set. After detecting the user's access instruction to the indicator graph, the last access data for the indicator graph is queried in the cache data, and the next layer of indicator graph data of the access data is determined for display processing, so as to avoid loading the entire indicator graph at one time and resulting in poor loading performance.
[0062] For example, Figure 4 As shown, the graph component cooperates with the indicator platform to design indicators and construct indicator graphs. Specifically, a scheduled task for indicator update can be set. After the scheduled task is triggered, that is, scheduled task scheduling, basic data can be obtained from any one or more of multiple data channels, such as one or more of the five data channels of Hive, Kafka, StarRocks, and MySQL configuration tables and process tables. Atomic indicators are extracted based on the basic data, derived indicators are calculated based on the atomic indicators, and calculated indicators can be determined based on the derived indicators and atomic indicators. A new indicator graph is constructed based on the atomic indicators, derived indicators, and calculated indicators, and the initial indicator graph can also be updated based on the atomic indicators, derived indicators, and calculated indicators. In the process of indicator design, there are a variety of analysis and calculation methods to assist in the determination of atomic indicators, derived indicators, and / or calculated indicators, and the indicator graph can be displayed and processed through the front end.
[0063] In summary, the indicator map processing method provided in this embodiment first searches for a matching first indicator map table in the indicator map library according to the submitted search keyword, reads the editing status recorded in the first indicator map table, and filters the second indicator map table whose editing status is unedited from the first indicator map table, adds an indicator node to the initial indicator map corresponding to the second indicator map table, and obtains the first indicator node; thereby, by providing an update function for the indicator map in the unedited state, it is avoided that multiple parties edit and update the indicator map at the same time, causing a deviation in data synchronization; and by adding indicator nodes based on the retrieved initial indicator map, it improves the convenience and efficiency of indicator map construction; Secondly, after obtaining the trigger sequence and the first coordinate data of the first indicator node, determine the second indicator node associated with the first indicator node and the connection direction between the first indicator node and the second indicator node according to the trigger sequence, determine the relative position of the first indicator node and the second indicator node according to the first coordinate data of the first indicator node, determine the starting connection position and the ending connection position of the first indicator node and the second indicator node based on the connection direction and the relative position, and on this basis, connect the first indicator node and the second indicator node according to the starting connection position and the ending connection position to obtain an indicator map, update the first coordinate data to the indicator node table contained in the indicator data table set; and determine the second coordinate data of the starting connection position and the starting indicator node corresponding to the starting connection position The first coordinate relationship data between the third coordinate data of the target node is determined, and the second coordinate relationship data between the fourth coordinate data of the termination connection position and the fifth coordinate data of the termination indicator node corresponding to the termination connection position is determined, and the first coordinate relationship data and the second coordinate relationship data are updated to the node connection relationship table contained in the indicator data table set; in this way, since the data structure of the indicator map is relatively complex, the first coordinate data and the first coordinate relationship data and the second coordinate relationship data are updated to the corresponding indicator data table, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0064] The following takes the application of an indicator graph processing method provided in this embodiment in an indicator graph update scenario as an example, combined with Figure 5 For further explanation of the data processing method provided in this embodiment for the indicator map update scenario, see Figure 5 , the indicator graph processing method applied to the indicator graph update scenario specifically includes the following steps.
[0065] Step S502: searching the index graph library for a matching first index graph table according to the submitted search keyword.
[0066] Step S504 , reading the editing status recorded in the first indicator map table, and filtering the second indicator map table whose editing status is the unedited state from the first indicator map table.
[0067] Step S506: Add an indicator node to the initial indicator graph corresponding to the second indicator graph table to obtain a first indicator node.
[0068] Step S508 : acquiring a triggering sequence and first coordinate data of the first indicator node, and determining a connection direction between the first indicator node and a second indicator node associated with the first indicator node according to the triggering sequence.
[0069] Step S510 , determining the relative position of the first index node and the second index node according to the first coordinate data, and determining the starting connection position and the ending connection position of the first index node and the second index node based on the connection direction and the relative position.
[0070] Step S512: Connect the first indicator node and the second indicator node according to the starting connection position and the ending connection position to obtain an indicator graph.
[0071] Optionally, the indicator graph corresponds to a set of indicator data tables.
[0072] Step S514: Update the first coordinate data to the indicator node table included in the indicator data table set.
[0073] Step S516, determine the first coordinate relationship data between the second coordinate data of the starting connection position and the third coordinate data of the starting indicator node corresponding to the starting connection position, determine the second coordinate relationship data between the fourth coordinate data of the terminating connection position and the fifth coordinate data of the terminating indicator node corresponding to the terminating connection position, and update the first coordinate relationship data and the second coordinate relationship data to the node connection relationship table contained in the indicator data table set.
[0074] Step S514 and step S516 may not be executed in any order, and step S514 may be executed first and then step S516, or step S516 may be executed first and then step S514. Step S514 and step S516 may also be executed simultaneously. The starting index node and the ending index node here may be determined in the first index node and the second index node. When the first index node is the starting index node, the second index node may be the ending index node. Similarly, when the first index node is the ending index node, the second index node may be the starting index node.
[0075] It should be noted that any one of steps S502 to S516 or any combination of multiple steps can be replaced by the corresponding technical means provided by the above steps S102 to S108 according to the needs of implementation and deployment, and any one of steps S502 to S516 or any combination of multiple steps can be combined into a new implementation method according to the needs of implementation and deployment; and any one of steps S502 to S516 or any combination of multiple steps can also form a new implementation method with one or more steps provided by the above steps S102 to S108 according to the actual deployment needs, or form a new implementation method with one or more optional implementation methods provided by steps S102 to S108, which will not be repeated here.
[0076] An embodiment of an indicator graph processing device provided in this specification is as follows: In the above embodiment, an indicator graph processing method is provided, and correspondingly, an indicator graph processing device is also provided, which is described below with reference to the accompanying drawings.
[0077] Reference Figure 6 , which shows a schematic diagram of an indicator graph processing device provided by this embodiment.
[0078] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.
[0079] This embodiment provides an indicator graph processing device, the device comprising: The data acquisition module 602 is used to acquire the triggering sequence and first coordinate data of the first indicator node; a position determination module 604 for determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; a node connection module 606 for connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; The update processing module 608 is used to update the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position.
[0080] In one embodiment, the indicator graph corresponds to an indicator data table set, and the indicator data table set consists of an indicator graph table, an indicator node table, a node connection relationship table and / or an indicator details table; The indicator map table is used to store the map identification and / or editing status of the indicator map; the indicator node table is used to store the coordinate data of the indicator nodes in the indicator map; the node connection relationship table is used to store coordinate relationship data, and the coordinate relationship data is used to characterize the coordinate relationship between the coordinate data of the indicator nodes in the indicator map and the coordinate data of the connection position of the indicator nodes; the indicator details table is used to store indicator statistical data corresponding to the indicator nodes in the indicator map.
[0081] In one embodiment, the updating of the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position is respectively performed in the following manner: Update the first coordinate data to the indicator node table included in the indicator data table set; and determine the first coordinate relationship data between the second coordinate data and the third coordinate data of the indicator node corresponding to the connection position, and update the first coordinate relationship data to the node connection relationship table included in the indicator data table set.
[0082] In one embodiment, the indicator graph processing device further performs the following operations: Based on the node identifier of the third indicator node in the indicator graph, querying the node connection data of the third indicator node in the node connection relationship table included in the multiple indicator data tables; A node connection path is determined according to the node connection data, and a marking process is performed on the node connection path in the indicator map according to preset marking elements.
[0083] In one embodiment, determining the node connection path according to the node connection data is implemented in the following manner: Extracting a fourth indicator node connected to the third indicator node from the node connection data, and querying coordinate data of the fourth indicator node from an indicator node table included in the plurality of indicator data tables; The node connection path is determined according to the coordinate data of the fourth indicator node and the coordinate relationship data in the node connection data.
[0084] In one embodiment, the indicator graph processing device further performs the following operations before obtaining the triggering sequence and first coordinate data of the first indicator node: According to the submitted search keywords, a matching first indicator map table is searched in the indicator map library; Reading the editing status recorded in the first indicator map table, and filtering a second indicator map table whose editing status is not edited from the first indicator map table; An indicator node is added to the initial indicator graph corresponding to the second indicator graph table to obtain the first indicator node.
[0085] In one embodiment, determining the connection position between the first indicator node and the second indicator node according to the trigger sequence and the first coordinate data is implemented in the following manner: determining a connection direction between the first indicator node and the second indicator node according to the triggering sequence, and determining a relative position between the first indicator node and the second indicator node according to the first coordinate data; Based on the connection direction and the relative position, a starting connection position and an ending connection position of the first indicator node and the second indicator node are determined.
[0086] In the data processing device provided in this embodiment, after obtaining the trigger sequence and the first coordinate data of the first indicator node, the connection position between the first indicator node and the second indicator node associated with the first indicator node is determined according to the trigger sequence and the first coordinate data, and the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0087] An embodiment of a computer device provided in this specification is as follows: Corresponding to the above-described method for processing an indicator graph, based on the same technical concept, an embodiment of the present application further provides a computer device, which is used to execute the above-described method for processing an indicator graph. Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application.
[0088] This embodiment provides a computer device, including: like Figure 7As shown, computer devices can vary significantly depending on their configuration or performance. They may include one or more processors 701 and memory 702. Memory 702 may store one or more applications or data. Memory 702 may be either ephemeral or persistent. Applications stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions within the computer device. Furthermore, processor 701 may be configured to communicate with memory 702 to execute the series of computer-executable instructions within memory 702 on the computer device. The computer device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input / output interfaces 705, one or more keyboards 706, and the like.
[0089] In a specific embodiment, a computer device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the computer device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following: Obtaining the triggering sequence and first coordinate data of the first indicator node; Determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; Connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; Based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively.
[0090] In one embodiment, the indicator graph corresponds to an indicator data table set, and the indicator data table set consists of an indicator graph table, an indicator node table, a node connection relationship table and / or an indicator details table; The indicator map table is used to store the map identification and / or editing status of the indicator map; the indicator node table is used to store the coordinate data of the indicator nodes in the indicator map; the node connection relationship table is used to store coordinate relationship data, and the coordinate relationship data is used to characterize the coordinate relationship between the coordinate data of the indicator nodes in the indicator map and the coordinate data of the connection position of the indicator nodes; the indicator details table is used to store indicator statistical data corresponding to the indicator nodes in the indicator map.
[0091] In one embodiment, the updating of the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position is respectively performed in the following manner: Update the first coordinate data to the indicator node table included in the indicator data table set; and determine the first coordinate relationship data between the second coordinate data and the third coordinate data of the indicator node corresponding to the connection position, and update the first coordinate relationship data to the node connection relationship table included in the indicator data table set.
[0092] In one embodiment, the computer device further performs the following operations: Based on the node identifier of the third indicator node in the indicator graph, querying the node connection data of the third indicator node in the node connection relationship table included in the multiple indicator data tables; A node connection path is determined according to the node connection data, and a marking process is performed on the node connection path in the indicator map according to preset marking elements.
[0093] In one embodiment, determining the node connection path according to the node connection data is implemented in the following manner: Extracting a fourth indicator node connected to the third indicator node from the node connection data, and querying coordinate data of the fourth indicator node from an indicator node table included in the plurality of indicator data tables; The node connection path is determined according to the coordinate data of the fourth indicator node and the coordinate relationship data in the node connection data.
[0094] In one embodiment, the computer device, before obtaining the triggering sequence and the first coordinate data of the first indicator node, further performs the following operations: According to the submitted search keywords, a matching first indicator map table is searched in the indicator map library; Reading the editing status recorded in the first indicator map table, and filtering a second indicator map table whose editing status is not edited from the first indicator map table; An indicator node is added to the initial indicator graph corresponding to the second indicator graph table to obtain the first indicator node.
[0095] In one embodiment, determining the connection position between the first indicator node and the second indicator node according to the trigger sequence and the first coordinate data is implemented in the following manner: determining a connection direction between the first indicator node and the second indicator node according to the triggering sequence, and determining a relative position between the first indicator node and the second indicator node according to the first coordinate data; Based on the connection direction and the relative position, a starting connection position and an ending connection position of the first indicator node and the second indicator node are determined.
[0096] In the computer device provided in this embodiment, after obtaining the trigger sequence and the first coordinate data of the first indicator node, the connection position between the first indicator node and the second indicator node associated with the first indicator node is determined according to the trigger sequence and the first coordinate data, and the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0097] An embodiment of a computer-readable storage medium provided in this specification is as follows: Corresponding to the indicator graph processing method described above, based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium.
[0098] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions. When the computer-executable instructions are executed by a processor, the following process is implemented: Obtaining the triggering sequence and first coordinate data of the first indicator node; Determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; Connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; Based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively.
[0099] In the computer-readable storage medium provided in this embodiment, after obtaining the trigger sequence and the first coordinate data of the first indicator node, the connection position between the first indicator node and the second indicator node associated with the first indicator node is determined according to the trigger sequence and the first coordinate data, and the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0100] It should be noted that the embodiment of a computer-readable storage medium in this specification and the embodiment of an indicator map processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.
[0101] An embodiment of a computer program product provided in this specification is as follows: Corresponding to the indicator graph processing method described above, based on the same technical concept, an embodiment of the present application also provides a computer program product.
[0102] The computer program product provided in this embodiment includes a computer program. When the computer program is executed by a processor, the following process is implemented: Obtaining the triggering sequence and first coordinate data of the first indicator node; Determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; Connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; Based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively.
[0103] In the computer program product provided in this embodiment, after obtaining the trigger sequence and the first coordinate data of the first indicator node, the connection position between the first indicator node and the second indicator node associated with the first indicator node is determined according to the trigger sequence and the first coordinate data, and the first indicator node and the second indicator node are connected according to the connection position to obtain an indicator map. On this basis, based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated. In this way, since the data structure of the indicator map is relatively complex, the indicator data table corresponding to the indicator map is updated through the coordinate data, and then the data storage of the indicator map is realized in the form of the indicator data table, so as to reduce the storage capacity of the data storage, which is helpful for subsequent transmission through the indicator data table instead of direct transmission of the indicator map, thereby improving transmission efficiency and convenience.
[0104] It should be noted that the embodiment of a computer program product in this specification and the embodiment of an indicator graph processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.
[0105] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0107] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable test equipment to produce a machine, so that the instructions executed by the processor of the computer or other programmable test equipment generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0108] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable test equipment to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device that implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0109] These computer program instructions may also be loaded onto a computer or other programmable test device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process described in the flow. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0110] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0111] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0112] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can be implemented using any method or technology for information storage. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0113] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0114] The embodiments of the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0115] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0116] The foregoing description is merely an example of the present invention and is not intended to limit the present invention. Persons skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims herein.
Claims
1. A method for processing an indicator graph, characterized in that: The method comprises: Obtaining the triggering sequence and first coordinate data of the first indicator node; Determining a second indicator node associated with the first indicator node according to the triggering sequence, and determining a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; Connecting the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; Based on the first coordinate data and the second coordinate data of the connection position, the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data are updated respectively.
2. The method according to claim 1, characterized in that The indicator graph corresponds to an indicator data table set, and the indicator data table set consists of an indicator graph table, an indicator node table, a node connection relationship table and / or an indicator details table; The indicator map table is used to store the map identifier and / or editing status of the indicator map; the indicator node table is used to store the coordinate data of the indicator nodes in the indicator map; The node connection relationship table is used to store coordinate relationship data, and the coordinate relationship data is used to represent the coordinate relationship between the coordinate data of the indicator node in the indicator graph and the coordinate data of the first connection position of the indicator node; The indicator details table is used to store indicator statistical data corresponding to the indicator nodes in the indicator graph.
3. The method according to claim 2, characterized in that The updating of the index data table corresponding to the first coordinate data and the index data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position includes: Update the first coordinate data to the indicator node table included in the indicator data table set; and determine the first coordinate relationship data between the second coordinate data and the third coordinate data of the indicator node corresponding to the connection position, and update the first coordinate relationship data to the node connection relationship table included in the indicator data table set.
4. The method according to claim 1, wherein The method further comprises: Based on the node identifier of the third indicator node in the indicator graph, querying the node connection data of the third indicator node in the node connection relationship table included in the multiple indicator data tables; A node connection path is determined according to the node connection data, and a marking process is performed on the node connection path in the indicator map according to preset marking elements.
5. The method according to claim 4, characterized in that The determining the node connection path according to the node connection data includes: Extracting a fourth indicator node connected to the third indicator node from the node connection data, and querying coordinate data of the fourth indicator node from an indicator node table included in the plurality of indicator data tables; The node connection path is determined according to the coordinate data of the fourth indicator node and the coordinate relationship data in the node connection data.
6. The method according to claim 1, characterized in that Before executing the step of obtaining the triggering sequence and first coordinate data of the first indicator node, the method further includes: According to the submitted search keywords, a matching first indicator map table is searched in the indicator map library; Reading the editing status recorded in the first indicator map table, and filtering a second indicator map table whose editing status is not edited from the first indicator map table; An indicator node is added to the initial indicator graph corresponding to the second indicator graph table to obtain the first indicator node.
7. The method according to claim 1, characterized in that The determining, according to the trigger sequence and the first coordinate data, a connection position between the first indicator node and the second indicator node includes: determining a connection direction between the first indicator node and the second indicator node according to the triggering sequence, and determining a relative position between the first indicator node and the second indicator node according to the first coordinate data; Based on the connection direction and the relative position, a starting connection position and an ending connection position of the first indicator node and the second indicator node are determined.
8. An indicator graph processing device, characterized in that: The device comprises: A data acquisition module, used to acquire the triggering sequence and first coordinate data of the first indicator node; a position determination module, configured to determine a second indicator node associated with the first indicator node according to the triggering sequence, and determine a connection position between the first indicator node and the second indicator node according to the triggering sequence and the first coordinate data; a connection module, configured to connect the first indicator node and the second indicator node according to the connection position to obtain an indicator map, wherein the indicator map corresponds to a plurality of indicator data tables; An update processing module is used to update the indicator data table corresponding to the first coordinate data and the indicator data table corresponding to the second coordinate data based on the first coordinate data and the second coordinate data of the connection position.
9. A computer device, characterized in that: The device comprises: A processor; and a memory configured to store computer-executable instructions, which, when executed, cause the processor to execute the indicator map processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the indicator map processing method according to any one of claims 1 to 7 is implemented.