The Computation and Query of XCube
- Author
- XueZhongBin
- Advisor
- LiShengEn
- School
- Shandong Institute of Architecture
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 9
- Citations
- 1
Abstract
With the development of B2B and other commercial applications, more and more data are represented in the form of XML. How to analyze the data in XML documents raises great concern for the researchers. Transforming XML data into relation tuples, and then calculated on the tuple is the traditional operation. In this article, we directly operate the XML documents, avoiding the data conversion process and improving the operations efficiently. XCube is a Cube structure for the XML. When the amount of input data is too large to beyond the memory constraints, XCube will be unable to complete the operation. If the input data operation in batches, it will produce many duplicate intermediate results. In order to forming the final results, it has to read intermediate results from the hard drive and to do a lot of consolidation work in memory. Because it involves the read operation from the hard disk and a large number of combined operations, so the computation times will be very long. Analyzing the XCube algorithm carefully, and based on a large number of experiments, we propose a new method which use divide and conquer strategy to computing XCube. We divide tree by the value of the first dimension into sub-trees. For each sub-tree, we only generate the final branch and don’t calculate the intermediate results, thus avoiding the merger operation of certain branches in intermediate results. To get the remaining branches, we input and calculate on sub-tree many times. Because the operation does not involve reading from the hard drive and merging the branch, so the computation of XCube is efficient.Bloom Filter is proposed by Bloom in 1970, which uses hash table to map element into a cell of an array. Whether the searched element is in a set can be certain by checking whether the corresponding cell is set to one or zero.To increase the accuracy, multiple hash functions can be used in Bloom Filter. After researching on related search algorithms, we found that a point query in XCube is a matching process from the root to a leaf node in the path. According to the Bloom Filter, we propose a new query and compression algorithm named BXCube. The path generated by XCube from the root to a leaf node as a whole is calculated in multiple (two or three) hash function, and producing multiple hash value. We only store the hash values, the measure and a tag as a Bloom tuple. Comparing to store the whole path, storing the Bloom tuple can save the storage space and provide some extent security for the data. The longer the path, the more the space will be saved. When data is too large the hash collision will appear inevitable. In order to eliminate the wrong query results raised by the hash collision, we use a data structure called filter table. In calculation process, all paths of a sub-tree will be operated and sorted in filter table. If the adjacent Bloom tuple with same hash values, but different measure, then hash collision take place. We use a new hash function to re-hash. When the generated hash values can be distinguished, the hash value, the measure and the hash function are put into a conflict table. One collision tuples is deleted from filter table, the other’s tag field is set to a special value to indicate how to solve collision. If collision take place among three or more tuplues, the probability of this case is very small, we employ path table to settle collision. When finished collision detection,the tuples in filter table are put into query table in sequence. The position of the first tuple in the query table is put into index table. To answer a query, firstly, the value of the first dimension is used as a key to search in the index table to get a range in the search table, which the answer may lay. Then, the query is hashed to generate a hash value. Finally, the hash value is as a key to locate the answer in the search table by binary search. We conduct a series of experiments to compare BXcube with Dwarf, which employ tree to represent data cube. The experiment shows that BXCube outperform Dwarf in storage space and query time.
Table of contents
Abstract 4-6
ABSTRACT 6-9
first chapter 9-11
1.1 topics background 9 <br / > 1.2 and the significance 9-10
1.3 thesis organization 10-11
Chapter OLAP and XML 11-22
2.1 online Analytical 11-12
2.2 data cube 12-14
2.3 XML 14-20
2.4 XOLAP 20-22
Chapter algorithm analysis and design 22-39
3.1 XCube algorithm and implementation 22-29
3.2 BXCube algorithm 29-39 <br / > Chapter experimental analysis 39-45
4.1 experimental data sets 39-41
4.2 XCube algorithm 41-42
4.3 BXCube algorithm 42-45
Chapter Summary and Outlook 45-47
5.1 this article summarizes 45
5.2 job Outlook 45-47
References 47-50
Thanks 50-51
master's degree and research papers published during the case 51
Related dissertations
- Research and Implementation of Construction and Query Techniques of Histogram Data Cube Based on Hadoop
- Research on XML Data Cube Based on Tree Structure
- Research of OLAP and Data Mining Technology Based on Water Supply Data Cube of Quantity and Charge
- Research of Online Analytical Mining Technology Based on Data Warehouse
- Research and Application of OLAP on macroeconomic Intelligent Decision Support System
- Research and Application of Audience Data in Broadcast&TV Based on Data Warehouse
- Zhongshang Supermarket Based on OLAP Technology Management System Research and Implementation
- With the implementation of OLAP cache based on quotient cube
- Study on the Construction of Data Cubes Supporting Efficient Queries
- Key Technology Research of light OLAP system for Web Applications
- Data Cube Investigation in the OLAP
- The Application Research of OLAP in the Education Resources Library of the Middle and Primary Schools
- Research on Technology of Date Cube Generation
- Research on the Optimizing Methods of Data Cube
- Efficient Data-Cube Computation and Application in OLAP MINING
- The Research and Application on the Electron Traffic Police Management System Base on the Data Warehouse and OLAP
- Design and Implementation of the XProc Processor Based on.NET
- Design and Implementation of the XML Document Processing System Based on Xproc
- Research of Web Information Extraction Based on XML
- Research of Information Extraction from Web Documents Based on Tree Automaton