Realization method of fully distributed file index and cooperative editing mechanism
A file indexing and fully distributed technology, applied in the Internet field, can solve problems such as no atomicity of folder batch operations, poor user experience, and difficulty in storing metadata files
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0079] An implementation of updating the distributed line segment tree is as follows:
[0080] S105.1. Due to the update of the No. 0 internal patch, a certain node starts the distributed line segment tree update thread.
[0081] S105.2. The thread uses the formula i=(n<<1)+1 to calculate the node number of the distributed line segment tree corresponding to the middle layer node. and make it the current node.
[0082] S105.3. Use the formula parent(i)=(i^(i&-i))|((i&-i)<<1) to calculate the parent node of the current node, and update the patch data of the node. The specific method is as follows :
[0083] S105.3.1, collect the patch corresponding to the left and right child nodes of the node, if the child node is a leaf node, it means that it corresponds to an intermediate layer node, then take the No. 0 patch (total patch) of the intermediate layer node as its content; Otherwise take the patch corresponding to the tree node.
[0084]S105.3.2. If there is no patch in the l...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 