Embodiments of the present invention relate to the field of data processing technologies, and in particular, to a data block processing method and system, a front end display device, and a back end processing device.
A data graph is used to present data in a graphic and vivid manner to a user, so that the user analyzes the data. Because data graphs have characteristics of being clear and comprehensible, data graphs may be widely applied in various systems.
Data graphs in the prior art are in the forms of bars, fans, and so on. In some special scenarios, in order to flexibly compare and analyze data, relocation operations such as drag need to be performed on a data block of a data graph. However, because the data blocks of the data graphs in the prior art are static, relocation operations such as drag cannot be performed, resulting in low efficiency of data processing in the data graphs in the prior art.
Embodiments of the present invention provide a data block processing method and system, a front end display device, and a back end processing device to solve the problem that the efficiency of data processing in a data graph is low in the prior art and implement mobility of a data block in the data graph.
An embodiment of the present invention provides a data block processing method, including:
when a user intends to move a data block in a data graph from a first location to a second location, obtaining location information of the second location;
sending relocation request information to a back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block;
receiving display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device; and
displaying the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
An embodiment of the present invention further provides a data block processing method, including:
when a user intends to move a data block in a data graph from a first location to a second location, receiving relocation request information carrying location information of the second location of the data block, sent from a front end display device; and
sending display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
An embodiment of the present invention further provides a front end display device, including:
an obtaining module, configured to: when a user intends to move a data block in a data graph from a first location to a second location, obtain location information of the second location;
a sending module, configured to send relocation request information to a back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block;
a receiving module, configured to receive display instruction information sent from the back end processing device, wherein the display instruction information carries the location information of the second location and the identifier of the data block; and
a displaying module, configured to display the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
An embodiment of the present invention further provides a back end processing device, including:
a receiving module, configured to: when a user intends to move a data block in a data graph from a first location to a second location, receive relocation request information carrying location information of the second location of the data block, sent from a front end display device; and
a sending module, configured to send display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
An embodiment of the present invention further provides a data block processing system, including the above front end display device and the above back end processing device.
With the data block processing method and system, front end display device, and back end processing device in embodiments of the present invention, when a user intends to move a data block in a data graph from a first location to a second location, the front end display device obtains location information of the second location; the front end display device sends relocation request information to the back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block; the front end display device receives display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device; and the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solutions of the embodiments of the present invention, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solutions of the embodiments of the present invention, the efficiency of data processing in a data graph can be improved effectively.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make the objectives, technical solutions, and advantages of the embodiments of the present invention more comprehensible, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
100. When a user intends to move a data block in a data graph from a first location to a second location, the front end display device obtains location information of the second location.
101. The front end display device sends relocation request information carrying the location information of the second location and an identifier of the data block to a back end processing device.
102. The front end display device receives display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device.
103. The front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
With the data block processing method of this embodiment, when a user intends to move a data block in a data graph from a first location to a second location, the front end display device obtains location information of the second location; the front end display device sends relocation request information to the back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block; the front end display device receives display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device; and the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solution of this embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
It should be noted that in the embodiment shown in
It should be noted that on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
First case: The front end display device receives the location information of the second location sent by the user through an input device. For example, the input device corresponding to the embodiment in this case may be a mouse, and the front end display device may be a display. In this case, when the user drags a data block, through a mouse, in the data graph displayed on the display and drags the data block from the first location to the second location, the display may detect and obtain the information that the user intends to relocate the data block to the second location, that is, the display receives the location information of the second location sent by the user through the mouse.
Second case: The front end display device obtains, through detection, the location information of the second location input by the user. For example, the front end display corresponding to the embodiment in this case is a touch screen display, that is, the user may operate the touch screen display through a finger or a stylus pen. When the user drags, through a finger or a stylus pen, a data block in the data graph displayed on the touch screen display and drags the data block from the first location to the second location, the touch screen display obtains, through detection, the location information of the second location input by the user.
Alternatively, on the basis of the embodiment shown in
The data amount identified by the data block in the embodiment of the present invention refers to the value of the data amount represented by the data block in the data graph. As shown in
It should be noted that the data block in this embodiment is an entirety, or that each data block in this embodiment may be formed by one or more data units.
Alternatively, on the basis of the embodiment shown in
The data amount display instruction information in this embodiment carries the data amount at the first location and the data amount at the second location, where the data amount at the first location and the data amount at the second location are obtained by the back end processing device according to an original data amount at the first location, an original data amount at the second location, and the data amount identified by the data block. For example, the back end processing device may specifically subtract the data amount identified by the data block from the original data amount at the first location to obtain the data amount at the first location, and add the data amount identified by the data block to the original data amount at the second location to obtain the data amount at the second location.
Alternatively, before step (a), the following step may be further included: The front end display device sends data amount display request information to the back end processing device.
Further, alternatively, on the basis of the above embodiment, after step 103, the following steps may be further included:
The front end display device receives a saving request initiated by the user.
The front end display device sends the saving request to the back end processing device, so that the back end processing device saves a database corresponding to the data graph, where the database includes at least the identifier of the data block and the location information of the current second location of the data block.
For example, specifically in the implementation of the technical solution of the embodiment of the present invention, when the front end display device displays the data graph, the display interface may further include many optional buttons, such as backward, forward, and save. By clicking the forward or backward button, a forward or backward request may be sent to the back end processing device, which is applied in a process in which one or more data blocks in the data graph are relocated for consecutive times, so that a previous or next state may be turned to. For example, by clicking the save button, a save button may be sent to the back end processing device, so that the back end processing device saves the database corresponding to the current data graph. It should be noted that the back end processing device saves the database corresponding to the data graph, where the database may store information by using the data block as an object, for example, for each data block, the database stores the location information of the current location of the data block and the data amount identified by the data block. Or the database may also store information by using each location as an object, for example, for the location information of each location, the database stores the identifier of the data block at the location, and the data amount at the location, where the data amount at the location includes the sum of data amounts identified by all data blocks at the location. When a data block in the data graph is relocated, the data graph is changed; correspondingly, the back end processing device may save or update (if the database corresponding to the data graph is already saved previously, saving again may be referred to as updating) the database corresponding to the current data graph. For example, the current location of the data block after the data block is relocated in this embodiment is a second location. Therefore, the database includes at least the identifier of the data block and the location information of the current second location of the data block.
By using the data block processing method of the above embodiment, with the above technical solution, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of the above embodiment, the efficiency of data processing in a data graph can be improved effectively.
200. When a user intends to move a data block in a data graph from a first location to a second location, the back end processing device receives relocation request information carrying location information of the second location and an identifier of the data block, sent from a front end display device.
201. The back end processing device sends display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
The data block processing method of this embodiment differs from the embodiment shown in
With the data block processing method of this embodiment, when a user intends to move a data block in a data graph from a first location to a second location, the back end processing device receives relocation request information carrying location information of the second location and an identifier of the data block, sent from the front end display device; the back end processing device sends display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solution of this embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
It should be noted that in the embodiment shown in
It should be noted that on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
The back end processing device sends the data amount identified by the data block to the front end display device, so that the front end display device displays the data amount identified by the data block, at the second location in the data graph.
Alternatively, on the basis of the embodiment shown in
For example, the back end processing device may specifically subtract the data amount identified by the data block from the original data amount at the first location to obtain the data amount at the first location, and add the data amount identified by the data block to the original data amount at the second location to obtain the data amount at the second location.
Further, alternatively, on the basis of the above technical solution, after step 201 in the data block processing method of the above embodiment, the following steps may be further included:
Similarly to the subsequent alternative embodiment of the embodiment shown in
The subsequent alternative embodiment of the embodiment shown in
By using the data block processing method of the above embodiment, with the above technical solution, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of the above embodiment, the efficiency of data processing in a data graph can be improved effectively.
Persons of ordinary skill in the art may understand that all or part of the steps of the method in the embodiments may be implemented by a program instructing relevant hardware. The program may be saved in a computer readable storage medium. When the program is run, the steps of the forgoing methods in the embodiments are performed. The storage medium includes any medium that is capable of storing program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
The obtaining module 10 is configured to: when a user intends to move a data block in a data graph from a first location to a second location, obtain location information of the second location. The sending module 11 is connected to the obtaining module 10. The sending module 11 is configured to send relocation request information carrying the location information of the second location obtained by the obtaining module 10 and an identifier of the data block to a back end processing device. The receiving module 12 is configured to receive display instruction information sent from the back end processing device, wherein the display instruction information carries the location information of the second location and the identifier of the data block. The displaying module 13 is connected to the receiving module 12. The displaying module 13 is configured to display the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information received by the receiving module 12.
The front end display device of this embodiment uses the above modules to implement the data block processing method, which is the same as the implementation mechanism of the above related method embodiments. For details, reference may be made to the description of the above related method embodiments, and no further description is provided herein.
By using the above modules, when a user intends to move a data block in a data graph from a first location to a second location, the front end display device of this embodiment obtains location information of the second location; the front end display device sends relocation request information to the back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block; the front end display device receives display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device; and the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solution of this embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
It should be noted that on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
Alternatively, on the basis of the embodiment shown in
The front end display module of the above embodiment uses the above modules to implement the data block processing method, which is the same as the implementation mechanism of the above related method embodiments. For details, reference may be made to the description of the above related method embodiments, and no further description is provided herein.
By using the front end display device of the above embodiment, with the technical solution of the above embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of the above embodiment, the efficiency of data processing in a data graph can be improved effectively.
The receiving module 20 is configured to: when a user intends to move a data block in a data graph from a first location to a second location, receive relocation request information carrying location information of the second location and an identifier of the data block, sent from a front end display device. The sending module 21 is connected to the receiving module 20. The sending module 21 is configured to: after the receiving module 20 receives relocation request information carrying location information of the second location and the identifier of the data block, sent from the front end display device, send display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information.
The back end processing device of this embodiment uses the above modules to implement the data block processing method, which is the same as the implementation mechanism of the above related method embodiments. For details, reference may be made to the description of the above related method embodiments, and no further description is provided herein.
By using the above modules, when a user intends to move a data block in a data graph from a first location to a second location, the back end processing device of this embodiment receives relocation request information carrying location information of the second location and an identifier of the data block, sent from the front end display device; the back end processing device sends display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, so that the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solution of this embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
The sending module 21 in the back end processing device of this embodiment is further configured to: when or after sending display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, send a data amount identified by the data block to the front end display device, so that the front end display device displays the data amount identified by the data block, at the second location in the data graph.
Alternatively, the back end processing device of this embodiment may specifically further include a processing module 22.
The processing module 22 is connected to the receiving module 20. The processing module 22 is configured to: after the receiving module 20 receives relocation request information carrying location information of the second location of the data block, sent from the front end display device, obtain a data amount at the first location and a data amount at the second location according to an original data amount at the first location, an original data amount at the second location, and the data amount identified by the data block. The sending module 21 is connected to the processing module 22. The sending module 21 is further configured to: when or after sending display instruction information to the front end display device, wherein the display instruction information carries the location information of the second location and the identifier of the data block, send data amount display instruction information carrying the data amount at the first location and the data amount at the second location which are obtained by the processing module 22 to the front end display device, so that the front end display device updates the display of the data amount at the first location and the display of the data amount at the second location in the data graph.
Alternatively, the back end processing device of this embodiment may specifically further include a saving module 23.
The receiving module 20 is further configured to receive the saving request sent by the front end display device. The saving module 23 is connected to the receiving module 20. The saving module 23 is further configured to save a database corresponding to the data graph, where the database includes at least the identifier of the data block and the location information of the current second location of the data block.
The back end processing device of this embodiment uses the above modules to implement the data block processing method, which is the same as the implementation mechanism of the above related method embodiments. For details, reference may be made to the description of the above related method embodiments, and no further description is provided herein.
The back end processing device of this embodiment can perform, by using the above modules, relocation operations such as drag on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
The front end display device 30 may be specifically a front end display module in the embodiment shown in
With the data block processing system of this embodiment, by using the above front end display device and back end processing device, when a user intends to move a data block in a data graph from a first location to a second location, the front end display device obtains location information of the second location; the front end display device sends relocation request information to the back end processing device, wherein the relocation request information carries the location information of the second location and an identifier of the data block; the front end display device receives display instruction information carrying the location information of the second location and the identifier of the data block, sent from the back end processing device; and the front end display device displays the data block corresponding to the identifier of the data block, at the second location in the data graph according to the display instruction information. With the technical solution of this embodiment, relocation operations such as drag can be performed on data blocks of data graphs, which overcomes the defect of failure to perform relocation operations such as drag on static data blocks of data graphs in the prior art. Therefore, with the technical solution of this embodiment, the efficiency of data processing in a data graph can be improved effectively.
The front end display device in the embodiments of the present invention may be specifically an electronic display device such as a display, and the back end processing device may be specifically a processing device with the processing function such as a computer.
The foregoing described apparatus embodiment is merely exemplary. The units described as separate parts may or may not be physically separated, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on at least two network elements. A part of or all of the modules may be selected according to the actual need to achieve the objectives of the solutions of the embodiments. Persons of ordinary skill in the art may understand and implement the embodiments without creative efforts.
Finally, it should be noted that the above embodiments are merely intended for describing the technical solutions of the present invention, other than limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments, or make equivalent replacements to some or all the technical features thereof, as long as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present invention.
This application is a continuation of International Application No. PCT/CN2012/073228 filed on Mar. 29, 2012, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2012/073228 | Mar 2012 | US |
Child | 13909612 | US |