Parallel XPath query method of XML document, terminal equipment and storage medium
A query method and document technology, applied in the field of XML document query, can solve problems such as load imbalance, lack of thread work benefit evaluation mechanism, and difficulty in accurately reflecting the amount of calculation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] Embodiments of the present invention provide a parallel XPath query method for XML documents, such as figure 1 As shown, the method includes the following steps:
[0052] S1: Get an input XML document.
[0053] The schematic diagram of the XML document in this embodiment is as follows figure 2 shown.
[0054] S2: Parse the XML document, and calculate the XML statistical information required for cost estimation based on index creation according to the parsing result.
[0055] In this embodiment, the parsing result of the XML document is expressed in the form of the interval code of the XML node, and the parsing result of the XML document is logically a tree of an XML Document Object Model (DOM), such as image 3 shown.
[0056]Specifically, the interval encoding of an XML node is represented by a 6-tuple, and the interval encoding of node u is ε u , where id is the node id value; nodeType is the node type, considering the most commonly used elements and attributes ...
Embodiment 2
[0128] The present invention also provides a parallel XPath query terminal device for XML documents, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps in the above method embodiment of Embodiment 1 of the present invention are implemented.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


