The Research and Improvement on Structural Join Algorithm and Encryption Management Mechanism of eXist Native Database
- Author
- RenHan
- Advisor
- PanYinRong
- School
- East China Normal University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 66
- Citations
- 0
Abstract
With the development and popularity of Web technology, the strong points of XML data as web information exchanging and storage media have been deeply rooted in people’s mind. The native XML database specializing in XML data has drawn more and more attention with a promising future. The eXist database, which is regarded as the most popular open-source native XML database, has been running on almost all the platforms including embedded systems, and processing large quantities of real business data. Compared with other native databases, eXist database has higher efficiency in query, more integrated architecture as well as more affluent APIs. But when compared with mature rational databases, eXist database still has a gap in data query efficiency, data encryption management, and so on.This paper provides a detailed research on structural join algorithm in data query mechanism and encryption mechanism in data management of eXist database. In structural join algorithm, research has been done to address two problems: how to avoid the repeated traversal of node lists in structural join process, and how to decrease the unnecessary computing times to get matched results with current node encodings. In encryption mechanism, this paper mainly researches on how to provide an extensible mechanism for users to add new encryption conveniently without changing the database’s current design. On the basis of the research above, this paper design and implement a fast locating structural join algorithm based on stack, which is called as FLStack, and a modularized encryption management mechanism featuring plug-in.Structural join operation is the core step of data query. This paper learns from another existing structural join algorithm called stack tree, which is more an algorithm rather than an application designed for a special database and has never been used in real databases. Based on the stack idea from stack tree algorithm and the current design of eXist database, this paper proposes a new structural join algorithm called Base_Stack to solve the problem of repeated traversal.However, in BaseStack algorithm, it still needs to compute the nodes’ relations one by one before moving to the next potential ancestor or descendent node. As a result, this paper proposes another structural join algorithm featuring fast locating and stack, which is named as FL_Stack. By making use of the features from the current node encodings, FL_Stack defines the term of least differentiated prefix. By using the least differentiated prefix and the ancestor node as locating criteria, FL_Stack algorithm can skip the obviously non-matching ancestors and descendants, resulting in time saving in structural join operation. Meanwhile, FL_Stack algorithm is not only used in eXist database, but also can be applied to the applications with structural join operation.Then, this paper uses mathematics methods to prove the correctness from stack and fast locating points. Besides, it also implements lots of all directional experiments on synthetic data and real XML data collections. It is proved that FL_Stack algorithm has higher efficiency than the current structural join algorithm in eXist database.For the encryption mechanism in data security management, eXist database only provides MD5 encryption algorithm in its current version and doesn’t support other encryption extensions. By defining a common interface for encryption algorithm and a respective encryption algorithm management module, this paper designs and implements an encryption management mechanism to add new encryption algorithm by modularization as a plug-in. This mechanism has improved the extensibility for encryption management in eXist database. At last, by adding a new encryption algorithm as an example, this paper describes the usage of this encryption management mechanism. Compared the encryption result with eXist database’s current encryption algorithm, this encryption management mechanism is proved to function well in eXist database.
Table of contents
Abstract 7-9
ABSTRACT 9-13
Chapter 1 Introduction 13-22
1.1 XML Introduction 13 <br / > 1.2 XML database Overview 13-17
1.2.1 XML-enabled database 14-15
1.2.2 native XML database 15-17 <br / > 1.3 research status 17-18
1.4 the main research work 18-19
1.5 the paper is organized 19-22
Chapter 2 eXist database and its related technologies analysis 22-33
2.1 eXist database Introduction 22-23
2.2 eXist data storage strategy analysis 23 - 27
2.2.1 database underlying data storage mechanism 24-25
2.2.2 database node coding strategy 25-27
2.3 eXist database file analysis 27-29
2.3.1 as a storage database files 27-28
2.3.2 used as an index of the database file 28-29 <br / > 2.4 eXist database query language and structure of the join operation describes 29-31
2.5 eXist database plug -in modular design application 31
2.6 Summary 31 -33
Chapter 3, the improved structural join algorithm eXist database design 33-50
3.1 eXist database of existing structural join algorithm analysis 33-37
3.1.1 The existing path expression query strategy outlined 33-34
3.1.2 existing structural join algorithm analysis 34-37
3.1.3 existing structures join algorithm shortcomings 37
3.2 stack-based structural join algorithm design 37-40
3.2.1 Base_Stack algorithm pseudo-code description 38-39
3.2.2 Base_Stack algorithm is an example of the process of structural connections 39-40
3.3 stack-based structural join algorithm to quickly locate the design 40-44
3.3.1 not solve the problem for Base_Stack algorithm further analysis 40-42
3.3.1.1 consecutive mismatches ancestor 40-41
3.3.1.2 consecutive mismatches descendant nodes 41-42
3.3.2 FL_Stack algorithm design 42-44
3.4 stack-based structural join algorithm to quickly locate the correctness proof 44-48 < br /> 3.4.1 FL_Stack stack algorithm design correctness proof 45-47
3.4.2 FL_Stack algorithm to quickly locate the correctness proof 47-48
3.5 Summary 48-50
Chapter 4 stack-based structural join algorithm to quickly locate the realization 50-72
4.1 algorithm 50-62
4.1.1 NativeElementIndex class presentation 50-52
4.1.2 implementation of the method of this paper findDescendantsByFLstack 52-62
4.1.2.1 findDescendantsByFLstack method implementation process 52-55
4.1.2.2 within the same document structure connecting block flow 55-57
4.1.2.3 a, d matching algorithm implementation 57 - 59
4.1.2.4 a, d does not match and a 59-61
4.1.2.5 a> d the algorithm 61-62
4.2 and eXist existing structural join algorithm time complexity contrast 62
4.3 eXist existing structural join algorithm and experimental comparison 62-70
4.3.1 XML data on the synthesis experimental comparison 63-69
4.3.1.1 experimental design 64-65
4.3.1.2 in the same XML document query efficiency experimental comparison 65-66 < br /> 4.3.1.3 at different levels of complexity of queries on XML documents efficiently experimental comparison 66-69
4.3.2 real XML data sets experimental comparison 69-70 < br /> 4.4 Summary 70-72
Chapter 5 eXist database encryption management system design and implementation 72-89
5.1 eXist database plug-in modular implementation of existing 72-75
5.1.1 conf.xml configuration file 73
5.1.2 Introduction modular configuration process 73-75
5.2 encryption management mechanism design and Implementation 75-88
5.2.1 Overview of encryption management mechanisms 75-76
5.2.2 encryption composition and configuration management mechanism methods 76-77
5.2.3 encryption management mechanism to achieve 77-82
5.2.3.1 Encryption Interface 77-78
5.2.3.2 AbstractEncryption virtual class 78
5.2.3.3 EncryptionManager class 78-80
5.2.3.4 EncryptionModuleConfig class 80-81
5.2.3.5 modify existing classes on eXist 81-82
5.2.4 encryption management system application examples 82-88
5.2.4.1 Configuring a new RSA encryption algorithm 82-86
5.2.4.2 with the new RSA encryption algorithm to encrypt data results 86-88
5.3 Summary 88-89
Chapter 6 Summary and Outlook 89 - 91
6.1 Summary 89-90
6.2 further work 90-91
References 91-95
Appendix 95-96
papers published during the master's degree and participate in the project directory 96-97
Thanks 97
Related dissertations
- Research on the Operation Model of China Buyout Funds
- 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
- Research and Application of Information Retrieval Based on XML Document
- Research of Keyword Query Processing on XML Data
- Research on Subtree Results Generation of XML Keyword Search
- Results Diversification for XML Keyword Search Based on Semantics
- Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
- Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
- Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
- Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
- The Design and Implementation of WebDAV Service in XML Database
- Research of Heterogeneous Database Integration Based on Web Service and XML
- Research on Encoding and Query Process Technology for Continuous Uncertain
- Research on XML Data Cube Based on Tree Structure
- XQuery Query Processor Design and Implementation
- Research and implementation of group production information integration management
- Research on XML Conceptual Model and Internal Transformation Method