A non-transitory tangible machine-readable medium, being stored with a computer program, the computer program comprising a plurality of codes, the codes being able to execute a large-scale data processing method when the computer program is loaded into an electronic apparatus, the codes comprising:
- code A for enabling the electronic apparatus to access a multi-dimensional data model stored in a storage device, wherein the multi-dimensional data model comprises a plurality of dimensions, the dimensions form a multi-dimensional space of measures, each of the dimensions is a single space consisting of a plurality of members with a common set of attributes, and each measure is a data element organized and accessible through the multi-dimensional space of the cross-product of all dimensions;
- code B for enabling the electronic apparatus to build at least one Tree Object (TO) by converting the multi-dimensional data model into an N-level tree data structure according to a level order of N attributes, each tree node in the TO meets all conditions of attributes for all ancestor nodes, and N is a positive integer;
- and
- code C for enabling the electronic apparatus to perform a Transform operation, comprising:
- code C1 for enabling the electronic apparatus to generate a transformed TO by rearranging the structure of the TO according to a new level order, wherein the new level order is a subset of the level order of the TO, and the transformed TO meets the following condition:
- ∀leaf node nεTO2, S(n)=[x|xεTO1, XPath(x)containsXPath(n)], Measuresof n=sum(S(n)),
- wherein the variable TO1 represents TO, the variable TO2 represents the transformed TO, the function sum( ) is a summarization function that takes the content of the set of nodes and produces a data element;
- and
- code C2 for enabling the electronic apparatus to calculate a new data element for each node in the transformed TO by aggregating child nodes of each the nodes in the transformed TO.