CN103793349A - Data processing method and data processing device - Google Patents

Data processing method and data processing device Download PDF

Info

Publication number
CN103793349A
CN103793349A CN201310739732.8A CN201310739732A CN103793349A CN 103793349 A CN103793349 A CN 103793349A CN 201310739732 A CN201310739732 A CN 201310739732A CN 103793349 A CN103793349 A CN 103793349A
Authority
CN
China
Prior art keywords
node
classification type
data
target
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310739732.8A
Other languages
Chinese (zh)
Inventor
何玉凤
谷勇成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201310739732.8A priority Critical patent/CN103793349A/en
Publication of CN103793349A publication Critical patent/CN103793349A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and a data processing device. The data processing method is applied to preset multiple tree nodes of tree structures, the tree nodes form a tree classification rule comprising multiple classification type nodes, and hierarchical relationships are formed among the classification type nodes. According to the method, sub nodes of the classification type nodes in the rule are correspondingly generated by target data according to basic type attributes of the target data and the preset tree classification rule, data values of the target data are aggregated sequentially according to the hierarchical relationships to generate data values of upper-hierarchy classification type nodes, and the data values of the classification type nodes corresponding to received display commands according to the display commands, so that the effect of aggregated display of the data values of the classification type nodes is realized, and applicability of the data processing method is improved.

Description

A kind of data processing method and device
Technical field
The application relates to Computer Applied Technology field, especially a kind of data processing method and device.
Background technology
Along with the development of computer technology, people have more and more depended on and have utilized computing machine to carry out storage and the displaying of data message.Wherein, described data have Data Identification, type of foundation attribute and data value attribute.For example, the goods and materials data in industrial circle, the Data Identification of a certain goods and materials data is A model cement, and the property value of type of foundation attribute is cement, and the property value of data value attribute is 100.
At present, the mode of computer equipment deal with data is, preserve the Data Identification of various data and the property value of data value attribute, in the time that user need to check the property value of data value attribute of data, the property value of the data value attribute of the Data Identification of the various data of preserving and correspondence thereof is independently shown respectively.For example, the property value 100 of the data value attribute that A model cement is corresponding, the property value 150 of the data value attribute that Type B cement is corresponding, the property value 200 of the data value attribute that C model reinforcing bar is corresponding.
But described various data have type of foundation attribute, according to described type of foundation attribute, between described various data, there is incidence relation, can jointly belong to a certain classification type.For example, A model cement and Type B cement belong to cement classification type, and cement classification type and reinforcing bar classification type belong to materials classification type.Above-mentioned data processing method lacks the described incidence relation of foundation and carries out the process that data value gathers, and in the time that user need to check the data value of classification type data, described data processing method can not meet the demands, and therefore, this kind of data processing method application is lower.
Summary of the invention
In view of this, the application provides a kind of data processing method and device, can not meet user and check the property value requirement of the data value attribute of classification type data in order to solve data processing method of the prior art, causes the problem that application is lower.The technical scheme that the application provides is as follows:
A kind of data processing method, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like nodes form tree sort rule, and described tree sort rule comprises multiple classification type nodes, between described classification type node, have hierarchical relationship, the method comprises:
Receive multiple target datas, described target data has type of foundation attribute and data value attribute;
According to described type of foundation attribute, determine the target classification type node of described each target data correspondence in described tree sort rule;
Described each target data is generated respectively to the child node of the target classification type node corresponding with described target data;
According to described hierarchical relationship, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generate the data value of upper strata level classification type node, until the root node of described tree sort rule;
According to the idsplay order receiving, the data value of the node corresponding with described idsplay order is shown.
Said method, preferred, after the described child node that described each target data is generated respectively to the target classification type node corresponding with described target data, also comprise:
According to described hierarchical relationship, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
Said method, preferred, the described hierarchical relationship of described foundation, for the classification type node of each level in described tree sort rule generates corresponding level sequence number, comprising:
Determine the classification type root node in described tree sort rule;
According to described hierarchical relationship, from described classification type root node, generate successively the level sequence number that each level node is corresponding; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
Said method, preferred, the described idsplay order according to receiving, shows the data value of the node corresponding with described idsplay order, comprising:
Receive idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark;
The level sequence number that described level sequence number is added after 1 is defined as target level sequence number;
The child node that described present node is identified to corresponding present node is defined as destination node;
The data value of the classification type node corresponding with described target level sequence number and destination node is shown.
The application also provides a kind of data processing equipment, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, have hierarchical relationship, this device comprises:
Target data receiving element, for receiving multiple target datas, described target data has type of foundation attribute and data value attribute;
Target classification type node determining unit, for according to described type of foundation attribute, determines the target classification type node of described each target data correspondence in described tree sort rule;
Child node generation unit, for generating described each target data respectively the child node of the target classification type node corresponding with described target data;
Data value gathers unit, for according to described hierarchical relationship, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generates the data value of upper strata level classification type node, until the root node of described tree sort rule;
Data value display unit, according to the idsplay order receiving, shows the data value of the node corresponding with described idsplay order.
Said apparatus, preferred, also comprise:
Level serial number gencration unit, for the described hierarchical relationship of foundation, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
Said apparatus, preferred, described level serial number gencration unit comprises:
Root node is determined subelement, for determining the classification type root node of described tree sort rule;
Level serial number gencration subelement, for according to described hierarchical relationship, from described classification type root node, generates the level sequence number that each level node is corresponding successively; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
Said apparatus, preferred, described data value display unit comprises:
Idsplay order receives subelement, for receiving idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark;
Target level sequence number is determined subelement, is defined as target level sequence number for the level sequence number that described level sequence number is added after 1;
Destination node is determined subelement, is defined as destination node for the child node that described present node is identified to corresponding present node;
Data value shows subelement, for the data value of the classification type node corresponding with described target level sequence number and destination node is shown.
From above technical scheme, compared with prior art, the application provides a kind of data processing method and device, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, there is hierarchical relationship, the method is according to the type of foundation attribute of target data and default tree sort rule, by corresponding each target data child node that generates classification type node in this rule, according to this hierarchical relationship, the data value of each target data is gathered successively, the data value of the classification type node of level in generation, and according to the idsplay order receiving, the data value of the classification type corresponding with this idsplay order is shown, thereby realize the effect that the data value of classification type is gathered to demonstration, improve the application of data processing method.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the embodiment of a kind of data processing method that Fig. 1 provides for the application;
An exemplary plot of a kind of data processing method that Fig. 2 provides for the application;
Another exemplary plot of a kind of data processing method that Fig. 3 provides for the application;
The part process flow diagram of a kind of another embodiment of data processing method that Fig. 4 provides for the application;
The part process flow diagram of the another embodiment of a kind of data processing method that Fig. 5 provides for the application;
The structural representation of the embodiment of a kind of data processing equipment that Fig. 6 provides for the application;
The part-structure schematic diagram of a kind of another embodiment of data processing equipment that Fig. 7 provides for the application;
The part-structure schematic diagram of the another embodiment of a kind of data processing equipment that Fig. 8 provides for the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Based on the embodiment in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
Refer to Fig. 1, it shows the process flow diagram of the embodiment of a kind of data processing method that the application provides, the present embodiment is applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, have hierarchical relationship, the present embodiment can comprise:
Step 101: receive multiple target datas, described target data has type of foundation attribute and data value attribute.
Wherein, described type of foundation attribute, in order to the data type that shows that described target data belongs to, described data value attribute, for showing the numerical information of described target data.For example, target data is A model cement, and the property value of its type of foundation attribute is cement, and its data value attribute is value at cost attribute, and property value is 100.
It should be noted that, described data value attribute can be one, can be also multiple.For example, the data value attribute of described A model cement can be initial cost attribute, revenue and cost attribute, send cost nature and surplus cost nature.
Step 102: according to described type of foundation attribute, determine the target classification type node of described each target data correspondence in described tree sort rule.
Described deterministic process can be, obtain respectively the property value of the primary attribute of described each target data, according to described property value, in described tree sort rule, determining the classification type node identical with this property value, is target classification type node by the described classification type node determination finding.
Wherein, described multiple tree-like nodes form tree sort rules, can think, described each tree-like node and between tree-like hierarchical relationship be a kind of classifying rules.For example, refer to Fig. 2, an exemplary plot of the tree sort rule that a kind of data processing method that it shows the application provides is applied, this tree sort rule is the tree-like classifying ruless of goods and materials data, root node is goods and materials basic classification, the child node of this node is device class type node and materials classification type node, and the child node of materials classification type node is cement classification type node and reinforcing bar classification type node.Can think, described goods and materials basic classification is divided into materials classification, device class, and described materials classification is divided into cement classification and reinforcing bar classification.
For example, described multiple target datas are respectively A model cement, Type B cement, C model reinforcing bar and D model device.The property value of the type of foundation attribute of described target data is respectively cement, cement, reinforcing bar and equipment.According to the content of described property value, the target classification type node of determining respectively described each target data correspondence in the described goods and materials Data classification rule shown in Fig. 2 is: cement classification type node, cement classification type node, reinforcing bar classification type node and device class type node.
Step 103: the child node that described each target data is generated respectively to the target classification type node corresponding with described target data.
According to target classification type node definite in step 102, described each target data is generated respectively to the child node of corresponding target classification type node, the father node that described target classification type is described target data.Concrete, described generative process, can be the increase father node attribute for described each target data, the property value of described father node attribute is set to corresponding target classification type node.
For example, described multiple target data is respectively A model cement, Type B cement, C model reinforcing bar and D model device, determining described target classification type node corresponding to each target data is: cement classification type node, cement classification type node, reinforcing bar classification type node and device class type node, refer to Fig. 3, a kind of data processing method that it shows the application provides is applied in another exemplary plot of goods and materials Data classification, in the figure, the child node that described each target data is each self-corresponding target classification type node.
Step 104: according to described hierarchical relationship, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generate the data value of upper strata level classification type node, until the root node of described tree sort rule.
Wherein, described hierarchical relationship is the hierarchical relationship in described tree sort rule.In step 103, described each target data is generated to the child node of described each target classification type, obtain the property value of the data value attribute of described each child node (child node that target data generates), it is each data value, described data value is aggregated into successively to the classification type node of upper level, the data value result gathering is generated to the data value of upper strata level classification type node.Wherein, the mode gathering described in can be summation.
For example, the data value attribute of described A model cement is value at cost attribute, the property value of value at cost attribute is 100, the property value of the value at cost attribute of Type B cement is 150, the property value of the value at cost attribute of C model reinforcing bar is 200, the property value of the value at cost attribute of D model device is 200, and the data value of cement classification type node is 100 to add 150,250; The data value of reinforcing bar classification type node is 200; The data value of materials classification type node is 250 to add 200,450; The data value of device class type node is 200; The data value of goods and materials basic classification type node is 650.
It should be noted that, the data value attribute in step 101 can be multiple, when described data value attribute is while being multiple, in described aggregation process, the data value of the data value attribute of same type is gathered.For example, data value attribute comprises initial cost attribute, revenue and cost attribute, sends cost nature and surplus cost nature, and the property value of each attribute of A model cement is respectively 200,200,300 and 100; The property value of each attribute of Type B cement is respectively 150,180,280 and 50.While generating the data value of cement classification type node, respectively the property value of initial cost attribute is added to (200 add 150), the property value of revenue and cost attribute is added to (200 add 180), the property value that sends cost nature is added to (300 add 280), the property value of surplus cost nature is added to (100 add 50).
Step 105: according to the idsplay order receiving, the data value of the node corresponding with described idsplay order is shown.
Described idsplay order is the instruction that user sends.In described idsplay order, include explicit identification.Wherein, the form of described explicit identification can be classification type node identification, can be also the level sequence number that classification type node is corresponding, can also be the combination of above-mentioned two kinds of modes.
Wherein, if the form of described explicit identification comprises classification type node identification, the mode of described demonstration, can be in advance each classification type node of described tree sort rule to be shown with tree-like version, in the time receiving idsplay order, according to the classification type node identification in this instruction, search with this class node and identify corresponding classification type node, the data value of this classification type node is shown; Also can in advance classification type root node and corresponding data value thereof be shown, in the time receiving idsplay order, determine the classification type node that in this instruction, classification type node identification is corresponding, the data value of each child node of this classification type node is shown respectively, it should be noted that, in this kind of mode, the mark of the classification type node that the classification type node identification comprising in idsplay order is current demonstration.
Above-mentioned the first display mode, for example, in advance each classification type node in tree-like goods and materials data classifying rules is shown with tree structure, in the time receiving the idsplay order that comprises materials classification type identification, the data value of materials classification type is shown, as 450.
Above-mentioned the second display mode, for example, in advance root node in tree-like goods and materials data classifying rules (goods and materials basic classification type) and corresponding data value (650) thereof are shown, in the time receiving the idsplay order that comprises goods and materials basic classification type identification, the data value that is materials classification type and device class type by the next stage classification type of goods and materials basic classification type shows respectively, if the data value of materials classification type is 450, the data value of device class type is 200.
It should be noted that, when described data value attribute is while being multiple, the data value showing in above-mentioned two kinds of display modes can comprise multiple.For example, the data value attribute of target data is value at cost attribute, described value at cost attribute comprises initial cost attribute, revenue and cost attribute, expenditure cost attribute and surplus cost nature, the described data value showing comprises the property value of above-mentioned four value at cost attributes, as the initial cost 350 of cement classification type, revenue and cost 380, expenditure cost 580 and surplus cost 150.
It should be noted that, described display packing is including but not limited to above-mentioned two kinds of modes.
From above technical scheme, the application provides a kind of data processing method, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, there is hierarchical relationship, the method is according to the type of foundation attribute of target data and default tree sort rule, by corresponding each target data child node that generates classification type node in this rule, according to this hierarchical relationship, the data value of each target data is gathered successively, the data value of the classification type node of level in generation, and according to the idsplay order receiving, the data value of the classification type corresponding with this idsplay order is shown, thereby realize the effect that the data value of classification type is gathered to demonstration, improve the application of the present embodiment.
It should be noted that, in above-described embodiment, can apply but not limit the displaying that gathers that is applied to goods and materials data.
It should be noted that, the implementation of above-described embodiment can be applied bivariate table, applies bivariate table and represents the relation between data element.Concrete:
Described tree sort rule can be stored with the form of the first bivariate table, and the row value of described the first bivariate table is classification type, the last layer level classification type that the train value of described the first bivariate table is this classification type.Certainly,, if when the classification type that the classification type of described row value is root node, the last layer level classification type of this root node is empty.
The relation of described target data and its type of foundation attribute and data value attribute can be stored with the form of the second bivariate table, the target data mark that the row value that is described the second bivariate table is described target data, as A model cement, the train value of described the second bivariate table is the property value of type of foundation attribute and the property value of data value attribute of this target data, as cement and 100.
Described step 103,104 implementation can be applied the 3rd bivariate table.Concrete, setting in advance the 3rd bivariate table, the row value of described the 3rd bivariate table comprises the classification type of described tree sort rule, the train value of described the 3rd bivariate table comprises father node attribute, level sequence number attribute and data value attribute.The mode that generates child node in described step 103 is described each target data is generated to the row value of described the 3rd bivariate table, and the father node of each target data to be set to the property value of the type of foundation attribute of described target data.For example, A model cement is generated to the row value of described the 3rd bivariate table, the father node of A model cement is set to cement.In described step 104, the mode of generated data value is, according to the data value of described each target data, generates successively described data value corresponding to each classification type.
After the step 103 of above-described embodiment, can also comprise:
According to described hierarchical relationship, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
Preferably, refer to Fig. 4, it shows the part process flow diagram of a kind of another embodiment of data processing method that the application provides, and described generating mode can be realized in the following manner:
Step 401: determine the classification type root node in described tree sort rule.
Described deterministic process can be, travels through each classification type of described tree sort rule, when the father node property value of described classification type is while being empty, represents that this classification type node is classification type root node.
Step 402: according to described hierarchical relationship, from described classification type root node, generate successively the level sequence number that each level node is corresponding; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
Wherein, the level sequence number of described root node can be set to 0, from described root node, generates successively the level sequence number of described each level classification type node, and generating mode is for adding successively 1.Certainly, the numerical value that arranges of the level sequence number of described root node is not limited to aforesaid way.
For example, refer to Fig. 3, the first level node is goods and materials basic classification node, generating level sequence number is that 0, the second level node is materials classification type node and device class type node, and generating level sequence number is 1, the 3rd level node is cement classification type node, reinforcing bar classification type node and D model device, generating level sequence number is that 2, the four level nodes are A model cement, Type B cement, C model reinforcing bar, and generating level sequence number is 3.
It should be noted that, described level node comprises the child node that described target data generates.
Wherein, the mode of described generation can be applied above-mentioned the 3rd bivariate table, in described the 3rd bivariate table, generates described level sequence number corresponding to each classification type node.Concrete mode can be, the level sequence number of described root node is set to 0, and the level sequence number of next level node of described root node is set to 1, the like, until described target data.
Current a certain classification type node and the data value thereof of showing in advance.Refer to Fig. 5, it shows the part process flow diagram of the another embodiment of a kind of data processing method that the application provides, and on the basis of a upper embodiment, step 105 can realize in the following manner:
Step 501: receive idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark.
Described idsplay order is the idsplay order that user sends.
Wherein, described present node is designated the mark of the classification type node of current demonstration, the level sequence number that described level sequence number is present node, i.e. the level sequence number of the classification type node of current demonstration.For example, the classification type node of described current demonstration is the basic type node of goods and materials data, and the level sequence number of this node is 0.
It should be noted that, if the classification type node of current demonstration is the node that target data generates, represent that the level of showing has been the data value of lowest hierarchical level node, can not have described idsplay order.
Step 502: the level sequence number that described level sequence number is added after 1 is defined as target level sequence number.
For example, the level sequence number comprising in described idsplay order is 0, and described target level sequence number is 1.
Step 503: the child node that described present node is identified to corresponding present node is defined as destination node.
For example, the described present node comprising in described idsplay order is designated goods and materials basic classification mark, present node is goods and materials basic classification, and the child node of present node is materials classification type and device class type, described materials classification type and device class type is defined as to destination node.
Step 504: the data value of the classification type node corresponding with described target level sequence number and destination node is shown.
For example, target level sequence number be 1 and destination node be that classification type node corresponding to materials classification type and device class type is materials classification type and device class type.The data value of described materials classification type and device class type is shown respectively.If the data value of materials classification type is 450, the data value of device class type is 200.
From above technical scheme, identify and determine the data value that needs the classification type node showing by level sequence number and present node, can improve the accuracy of demonstration.
Refer to Fig. 6, it shows the structural representation of the embodiment of a kind of data processing equipment that the application provides, the present embodiment is applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, there is hierarchical relationship, the present embodiment can comprise: target data receiving element 601, target classification type node determining unit 602, child node generation unit 603, data value gathers unit 604 and data value display unit 605.Wherein:
Described target data receiving element 601, for receiving multiple target datas, described target data has type of foundation attribute and data value attribute.
Wherein, described type of foundation attribute, in order to the data type that shows that described target data belongs to, described data value attribute, for showing the numerical information of described target data.For example, target data is A model cement, and the property value of its type of foundation attribute is cement, and its data value attribute is value at cost attribute, and property value is 100.
It should be noted that, described data value attribute can be one, can be also multiple.For example, the data value attribute of described A model cement can be initial cost attribute, revenue and cost attribute, send cost nature and surplus cost nature.
Described target classification type node determining unit 602, for according to described type of foundation attribute, determines the target classification type node of described each target data correspondence in described tree sort rule.
Described target classification type node determining unit 602 deterministic processes can be, obtain respectively the property value of the primary attribute of described each target data, according to described property value, in described tree sort rule, determining the classification type node identical with this property value, is target classification type node by the described classification type node determination finding.
Wherein, described multiple tree-like nodes form tree sort rules, can think, described each tree-like node and between tree-like hierarchical relationship be a kind of classifying rules.For example, refer to Fig. 2, it shows an exemplary plot of the tree sort rule of a kind of data processing method application of the application, this tree sort rule is the tree-like classifying ruless of goods and materials data, root node is goods and materials basic classification, the child node of this node is device class type node and materials classification type node, and the child node of materials classification type node is cement classification type node and reinforcing bar classification type node.Can think, described goods and materials basic classification is divided into materials classification, device class, and described materials classification is divided into cement classification and reinforcing bar classification.
For example, described multiple target datas are respectively A model cement, Type B cement, C model reinforcing bar and D model device.The property value of the type of foundation attribute of described target data is respectively cement, cement, reinforcing bar and equipment.According to the content of described property value, the target classification type node of determining respectively described each target data correspondence in the described goods and materials Data classification rule shown in Fig. 2 is: cement classification type node, cement classification type node, reinforcing bar classification type node and device class type node.
Described child node generation unit 603, for generating described each target data respectively the child node of the target classification type node corresponding with described target data.
Described child node generation unit 603 is according to the definite target classification type node of described target classification type node determining unit 602, described each target data is generated respectively to the child node of corresponding target classification type node, the father node that described target classification type is described target data.Concrete, the generative process of described child node generation unit 603, can be the increase father node attribute for described each target data, the property value of described father node attribute is set to corresponding target classification type node.
For example, described multiple target data is respectively A model cement, Type B cement, C model reinforcing bar and D model device, determining described target classification type node corresponding to each target data is: cement classification type node, cement classification type node, reinforcing bar classification type node and device class type node, refer to Fig. 3, a kind of data processing method that it shows the application provides is applied in another exemplary plot of goods and materials Data classification, in the figure, the child node that described each target data is each self-corresponding target classification type node.
Described data value gathers unit 604, for the described hierarchical relationship of foundation, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generate the data value of upper strata level classification type node, until the root node of described tree sort rule.
Wherein, described hierarchical relationship is the hierarchical relationship in described tree sort rule.Child node generation unit 603 generates described each target data the child node of described each target classification type, described data value gathers unit 604 and obtains the property value of the data value attribute of described each child node (child node that target data generates), it is each data value, described data value is aggregated into successively to the classification type node of upper level, the data value result gathering is generated to the data value of upper strata level classification type node.Wherein, the mode gathering described in can be summation.
For example, the data value attribute of described A model cement is value at cost attribute, the property value of value at cost attribute is 100, the property value of the value at cost attribute of Type B cement is 150, the property value of the value at cost attribute of C model reinforcing bar is 200, the property value of the value at cost attribute of D model device is 200, and the data value of cement classification type node is 100 to add 150,250; The data value of reinforcing bar classification type node is 200; The data value of materials classification type node is 250 to add 200,450; The data value of device class type node is 200; The data value of goods and materials basic classification type node is 650.
It should be noted that, in described target data receiving element 601, receiving is that the data value attribute of target data can be multiple, when described data value attribute is while being multiple, in described aggregation process, the data value of the data value attribute of same type is gathered.For example, data value attribute comprises initial cost attribute, revenue and cost attribute, sends cost nature and surplus cost nature, and the property value of each attribute of A model cement is respectively 200,200,300 and 100; The property value of each attribute of Type B cement is respectively 150,180,280 and 50.While generating the data value of cement classification type node, respectively the property value of initial cost attribute is added to (200 add 150), the property value of revenue and cost attribute is added to (200 add 180), the property value that sends cost nature is added to (300 add 280), the property value of surplus cost nature is added to (100 add 50).
Described data value display unit 605, for the idsplay order according to receiving, shows the data value of the node corresponding with described idsplay order.
Described idsplay order is the instruction that user sends.In described idsplay order, include explicit identification.Wherein, the form of described explicit identification can be classification type node identification, can be also the level sequence number that classification type node is corresponding, can also be the combination of above-mentioned two kinds of modes.
Wherein, if the form of described explicit identification comprises classification type node identification, the mode that described data value display unit 605 shows, can be in advance each classification type node of described tree sort rule to be shown with tree-like version, in the time receiving idsplay order, according to the classification type node identification in this instruction, search with this class node and identify corresponding classification type node, the data value of this classification type node is shown; Also can in advance classification type root node and corresponding data value thereof be shown, in the time receiving idsplay order, determine the classification type node that in this instruction, classification type node identification is corresponding, the data value of each child node of this classification type node is shown respectively, it should be noted that, in this kind of mode, the mark of the classification type node that the classification type node identification comprising in idsplay order is current demonstration.
Above-mentioned the first display mode, for example, in advance each classification type node in tree-like goods and materials data classifying rules is shown with tree structure, in the time receiving the idsplay order that comprises materials classification type identification, the data value of materials classification type is shown, as 450.
Above-mentioned the second display mode, for example, in advance root node in tree-like goods and materials data classifying rules (goods and materials basic classification type) and corresponding data value (650) thereof are shown, in the time receiving the idsplay order that comprises goods and materials basic classification type identification, the data value that is materials classification type and device class type by the next stage classification type of goods and materials basic classification type shows respectively, if the data value of materials classification type is 450, the data value of device class type is 200.
It should be noted that, when described data value attribute is while being multiple, the data value showing in above-mentioned two kinds of display modes can comprise multiple.For example, the data value attribute of target data is value at cost attribute, described value at cost attribute comprises initial cost attribute, revenue and cost attribute, expenditure cost attribute and surplus cost nature, the described data value that described data value display unit 605 shows comprises the property value of above-mentioned four value at cost attributes, as the initial cost 350 of cement classification type, revenue and cost 380, expenditure cost 580 and surplus cost 150.
It should be noted that, described data value display unit 605 display packings are including but not limited to above-mentioned two kinds of modes.
From above technical scheme, the application provides a kind of data processing equipment, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, there is hierarchical relationship, this device passes through according to the type of foundation attribute of target data and default tree sort rule, by corresponding each target data child node that generates classification type node in this rule, according to this hierarchical relationship, the data value of each target data is gathered successively, the data value of the classification type node of level in generation, and according to the idsplay order receiving, the data value of the classification type corresponding with this idsplay order is shown, thereby realize the effect that the data value of classification type is gathered to demonstration, improve the application of the present embodiment.
It should be noted that, in above-described embodiment, can apply but not limit the displaying that gathers that is applied to goods and materials data.
It should be noted that, the implementation of said apparatus embodiment can be applied bivariate table, applies bivariate table and represents the relation between data element.Concrete:
Described tree sort rule can be stored with the form of the first bivariate table, and the row value of described the first bivariate table is classification type, the last layer level classification type that the train value of described the first bivariate table is this classification type.Certainly,, if when the classification type that the classification type of described row value is root node, the last layer level classification type of this root node is empty.
The relation of described target data and its type of foundation attribute and data value attribute can be stored with the form of the second bivariate table, the target data mark that the row value that is described the second bivariate table is described target data, as A model cement, the train value of described the second bivariate table is the property value of type of foundation attribute and the property value of data value attribute of this target data, as cement and 100.
Described child node generation unit 603, data value gather the implementation of unit 604 can apply the 3rd bivariate table.Concrete, setting in advance the 3rd bivariate table, the row value of described the 3rd bivariate table comprises the classification type of described tree sort rule, the train value of described the 3rd bivariate table comprises father node attribute, level sequence number attribute and data value attribute.The mode that described child node generation unit 603 generates child node is described each target data is generated to the row value of described the 3rd bivariate table, and the father node of each target data to be set to the property value of the type of foundation attribute of described target data.For example, A model cement is generated to the row value of described the 3rd bivariate table, the father node of A model cement is set to cement.The mode that described data value gathers unit 604 generated data values is, according to the data value of described each target data, to generate successively described data value corresponding to each classification type.
On the basis of above-described embodiment, can also comprise: the level serial number gencration unit being connected with child node generation unit 603, for the described hierarchical relationship of foundation, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
Preferably, refer to Fig. 7, it shows the part-structure schematic diagram of a kind of another embodiment of data processing equipment that the application provides, and described level serial number gencration unit can be realized in the following manner: root node is determined subelement 701 and level serial number gencration subelement 702.Wherein:
Described root node is determined subelement 701, for determining the classification type root node of described tree sort rule.
Described root node determines that subelement 701 deterministic processes can be, travels through each classification type of described tree sort rule, in the time that the father node property value of described classification type is sky, represents that this classification type node is classification type root node.
Described level serial number gencration subelement 702, for according to described hierarchical relationship, from described classification type root node, generates the level sequence number that each level node is corresponding successively; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
Wherein, the level sequence number of described root node can be set to 0, and described level serial number gencration subelement 702, from described root node, generates the level sequence number of described each level classification type node successively, and generating mode is for adding successively 1.Certainly, the numerical value that arranges of the level sequence number of described root node is not limited to aforesaid way.
For example, refer to Fig. 3, the first level node is goods and materials basic classification node, generating level sequence number is that 0, the second level node is materials classification type node and device class type node, and generating level sequence number is 1, the 3rd level node is cement classification type node, reinforcing bar classification type node and D model device, generating level sequence number is that 2, the four level nodes are A model cement, Type B cement, C model reinforcing bar, and generating level sequence number is 3.
It should be noted that, described level node comprises the child node that described target data generates.
Wherein, above-mentioned the 3rd bivariate table can be applied in described level serial number gencration unit, in described the 3rd bivariate table, generates described level sequence number corresponding to each classification type node.Concrete mode can be, the level sequence number of described root node is set to 0, and the level sequence number of next level node of described root node is set to 1, the like, until described target data.
Current a certain classification type node and the data value thereof of showing in advance.Refer to Fig. 8, it shows the part-structure schematic diagram of the another embodiment of a kind of data processing equipment that the application provides, on the basis of a upper embodiment, data value display unit 605 can be realized in the following manner: idsplay order receives subelement 801, target level sequence number and determines that subelement 802, destination node determine that subelement 803 and data value show subelement 804.Wherein:
Described idsplay order receives subelement 801, for receiving idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark.
Described idsplay order is the idsplay order that user sends.
Wherein, described present node is designated the mark of the classification type node of current demonstration, the level sequence number that described level sequence number is present node, i.e. the level sequence number of the classification type node of current demonstration.For example, the classification type node of described current demonstration is the basic type node of goods and materials data, and the level sequence number of this node is 0.
It should be noted that, if the classification type node of current demonstration is the node that target data generates, represent that the level of showing has been the data value of lowest hierarchical level node, can not have described idsplay order.
Described target level sequence number is determined subelement 802, is defined as target level sequence number for the level sequence number that described level sequence number is added after 1.
For example, the level sequence number comprising in described idsplay order is 0, and described target level sequence number is 1.
Described destination node is determined subelement 803, is defined as destination node for the child node that described present node is identified to corresponding present node.
For example, the described present node comprising in described idsplay order is designated goods and materials basic classification mark, present node is goods and materials basic classification, and the child node of present node is materials classification type and device class type, described materials classification type and device class type is defined as to destination node.
Described data value shows subelement 804, for the data value of the classification type node corresponding with described target level sequence number and destination node is shown.
For example, target level sequence number be 1 and destination node be that classification type node corresponding to materials classification type and device class type is materials classification type and device class type.The data value of described materials classification type and device class type is shown respectively.If the data value of materials classification type is 450, the data value of device class type is 200.
From above technical scheme, identify and determine the data value that needs the classification type node showing by level sequence number and present node, can improve the accuracy of demonstration.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
Above a kind of data processing method provided by the present invention and device are described in detail, to the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple modification of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. a data processing method, it is characterized in that, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, have hierarchical relationship, the method comprises:
Receive multiple target datas, described target data has type of foundation attribute and data value attribute;
According to described type of foundation attribute, determine the target classification type node of described each target data correspondence in described tree sort rule;
Described each target data is generated respectively to the child node of the target classification type node corresponding with described target data;
According to described hierarchical relationship, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generate the data value of upper strata level classification type node, until the root node of described tree sort rule;
According to the idsplay order receiving, the data value of the node corresponding with described idsplay order is shown.
2. method according to claim 1, is characterized in that, after the described child node that described each target data is generated respectively to the target classification type node corresponding with described target data, also comprises:
According to described hierarchical relationship, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
3. method according to claim 2, is characterized in that, the described hierarchical relationship of described foundation, for the classification type node of each level in described tree sort rule generates corresponding level sequence number, comprising:
Determine the classification type root node in described tree sort rule;
According to described hierarchical relationship, from described classification type root node, generate successively the level sequence number that each level node is corresponding; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
4. method according to claim 3, is characterized in that, the described idsplay order according to receiving, shows the data value of the node corresponding with described idsplay order, comprising:
Receive idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark;
The level sequence number that described level sequence number is added after 1 is defined as target level sequence number;
The child node that described present node is identified to corresponding present node is defined as destination node;
The data value of the classification type node corresponding with described target level sequence number and destination node is shown.
5. a data processing equipment, it is characterized in that, be applied to the multiple tree-like node with tree structure setting in advance, described multiple tree-like node forms tree sort rule, described tree sort rule comprises multiple classification type nodes, between described classification type node, have hierarchical relationship, this device comprises:
Target data receiving element, for receiving multiple target datas, described target data has type of foundation attribute and data value attribute;
Target classification type node determining unit, for according to described type of foundation attribute, determines the target classification type node of described each target data correspondence in described tree sort rule;
Child node generation unit, for generating described each target data respectively the child node of the target classification type node corresponding with described target data;
Data value gathers unit, for according to described hierarchical relationship, the son node number of described each target classification type node is gathered successively according to the property value of value attribute, generates the data value of upper strata level classification type node, until the root node of described tree sort rule;
Data value display unit, according to the idsplay order receiving, shows the data value of the node corresponding with described idsplay order.
6. device according to claim 5, is characterized in that, also comprises:
Level serial number gencration unit, for the described hierarchical relationship of foundation, for the classification type node of each level in described tree sort rule generates corresponding level sequence number.
7. device according to claim 6, is characterized in that, described level serial number gencration unit comprises:
Root node is determined subelement, for determining the classification type root node of described tree sort rule;
Level serial number gencration subelement, for according to described hierarchical relationship, from described classification type root node, generates the level sequence number that each level node is corresponding successively; Wherein, level sequence number of each lower level is that the level sequence number of last layer level adds 1.
8. device according to claim 7, is characterized in that, described data value display unit comprises:
Idsplay order receives subelement, for receiving idsplay order; Wherein, in described idsplay order, include level sequence number and present node mark;
Target level sequence number is determined subelement, is defined as target level sequence number for the level sequence number that described level sequence number is added after 1;
Destination node is determined subelement, is defined as destination node for the child node that described present node is identified to corresponding present node;
Data value shows subelement, for the data value of the classification type node corresponding with described target level sequence number and destination node is shown.
CN201310739732.8A 2013-12-27 2013-12-27 Data processing method and data processing device Pending CN103793349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310739732.8A CN103793349A (en) 2013-12-27 2013-12-27 Data processing method and data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310739732.8A CN103793349A (en) 2013-12-27 2013-12-27 Data processing method and data processing device

Publications (1)

Publication Number Publication Date
CN103793349A true CN103793349A (en) 2014-05-14

Family

ID=50669041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310739732.8A Pending CN103793349A (en) 2013-12-27 2013-12-27 Data processing method and data processing device

Country Status (1)

Country Link
CN (1) CN103793349A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021156A (en) * 2014-05-22 2014-09-03 武汉天量数据技术有限公司 Method for rapidly collecting multi-layer fact data based on SQL statements
CN104077652A (en) * 2014-06-20 2014-10-01 纵横壹旅游科技(成都)有限公司 Data center management method and system based on travel relevant data
CN106559278A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 data processing state monitoring method and device
CN107609755A (en) * 2017-08-25 2018-01-19 北京元心科技有限公司 Data processing method and device
CN109191103A (en) * 2018-07-27 2019-01-11 阿里巴巴集团控股有限公司 A kind of data carding method and device
CN109871357A (en) * 2018-12-14 2019-06-11 深圳壹账通智能科技有限公司 Project document display methods, device, electronic equipment and storage medium
CN111914010A (en) * 2020-08-04 2020-11-10 北京百度网讯科技有限公司 Service processing method, device, equipment and storage medium
CN112364090A (en) * 2020-11-03 2021-02-12 杭州数梦工场科技有限公司 Data attribute display method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060161485A1 (en) * 2005-01-18 2006-07-20 Meldahl Robert A Financial analysis tree software engine
CN101840395A (en) * 2010-04-02 2010-09-22 浪潮集团山东通用软件有限公司 Method for fluctuating statement filling and summarization based on standard code
CN102571413A (en) * 2011-12-02 2012-07-11 曙光信息产业(北京)有限公司 Method for resource management under cluster environment
CN103020410A (en) * 2011-09-22 2013-04-03 尚云飞 Method for calculating recovery rate of vehicles on basis of GB/T19515

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060161485A1 (en) * 2005-01-18 2006-07-20 Meldahl Robert A Financial analysis tree software engine
CN101840395A (en) * 2010-04-02 2010-09-22 浪潮集团山东通用软件有限公司 Method for fluctuating statement filling and summarization based on standard code
CN103020410A (en) * 2011-09-22 2013-04-03 尚云飞 Method for calculating recovery rate of vehicles on basis of GB/T19515
CN102571413A (en) * 2011-12-02 2012-07-11 曙光信息产业(北京)有限公司 Method for resource management under cluster environment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021156A (en) * 2014-05-22 2014-09-03 武汉天量数据技术有限公司 Method for rapidly collecting multi-layer fact data based on SQL statements
CN104021156B (en) * 2014-05-22 2017-03-15 武汉天量数据技术有限公司 A kind of method that multilamellar factual data is quickly collected based on SQL statement
CN104077652A (en) * 2014-06-20 2014-10-01 纵横壹旅游科技(成都)有限公司 Data center management method and system based on travel relevant data
CN106559278A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 data processing state monitoring method and device
CN106559278B (en) * 2015-09-25 2020-09-15 中兴通讯股份有限公司 Data processing state monitoring method and device
CN107609755A (en) * 2017-08-25 2018-01-19 北京元心科技有限公司 Data processing method and device
CN109191103A (en) * 2018-07-27 2019-01-11 阿里巴巴集团控股有限公司 A kind of data carding method and device
CN109871357A (en) * 2018-12-14 2019-06-11 深圳壹账通智能科技有限公司 Project document display methods, device, electronic equipment and storage medium
CN111914010A (en) * 2020-08-04 2020-11-10 北京百度网讯科技有限公司 Service processing method, device, equipment and storage medium
CN111914010B (en) * 2020-08-04 2024-02-20 北京百度网讯科技有限公司 Method, device, equipment and storage medium for processing business
CN112364090A (en) * 2020-11-03 2021-02-12 杭州数梦工场科技有限公司 Data attribute display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103793349A (en) Data processing method and data processing device
CN104820677B (en) A kind of subject level methods of exhibiting and system
CN106156082A (en) A kind of body alignment schemes and device
CN107563628A (en) The method for building up and system of BIM components and construction task incidence relation
CN105630803B (en) The method and apparatus that Document image analysis establishes index
CN105512265A (en) Method and device for displaying data through figure
CN105279089B (en) A kind of method and device for obtaining page elements
CN106919370A (en) The acquisition methods and device of a kind of object attribute values
WO2016141685A1 (en) Telecommunications engineering drawing generation method and drawing design client
CN104346405B (en) A kind of method and device of the Extracting Information from webpage
CN103473265A (en) Method and device for analyzing layout of flow chart
CN106484892A (en) Data manipulation method and device
TW201810093A (en) User background information collection method and device
TW201616377A (en) Reorganizing and presenting data fields with erroneous inputs
CN110362854B (en) Automatic processing method and device for fault tree graphical modeling node layout
CN103927325B (en) A kind of method and device classified to URL
CN104239212B (en) Query method and device of test case and establishment method and device of test case
CN104408057B (en) A kind of method and device of data summarization
CN106201655B (en) Virtual machine distribution method and virtual machine distribution system
CN106570026B (en) The creation method and device of bubble diagram
CN104750609B (en) Determine the method and device of interface layout compatibility
CN103729410A (en) Check-box-provided tree structure catalogue construction method and device based on Flash technology
CN103164230B (en) Requirement modeling method based on new characteristic model and model transformation method
CN106649318A (en) Information display method and device
CN104461577A (en) Flow chart display method based on HTML5 graph drawing program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140514