摘要:
A method for storing multiple versions of a structured document includes receiving a first version of a document comprising objects hierarchically related to one another, and generating versioned nodes (vNodes) representing each of the objects. In an embodiment, each vNode includes versioning information associated with the first version of the document and is stored in a data store. When a next version of the document including a modification to a first object of the first version is received, a sharable object is identified based on a hierarchical relationship between the sharable object and an ancestor of the modified first object. A vNode representing the identified sharable object is updated to include versioning information associated with the next version of the document so that the updated vNode is shared between the first and the next versions of the structured document.
摘要:
A method for processing a query for a versioned structured document includes providing vNodes representing objects of at least one version of a structured document. Each vNode includes versioning information associated with a version(s) of the structured document. A query for a version(s) of the structured document is received. The query includes a vFunction having an argument(s) relating to versioning information associated with versions of the structured document. In response to receiving the query, a first vNode is identified that represents a first object in at least one version of the structured document and that includes versioning information satisfying the query. The first vNode is then used to determine a version(s) of the structured document that satisfies the query.
摘要:
A method for providing a query for searching over versions of a structured document includes providing a plurality of versioned nodes (vNodes) representing a plurality of objects of at least one version of a structured document. Each vNode includes versioning information associated with at least one version of the structured document and collectively, the vNodes graphically represent the version(s) of the structured document in a versioned document object model (“vDOM”) node tree. In an embodiment, a query for at least one version of the structured document is received. The query includes a versioned function (vFunction) having at least one argument relating to versioning information associated with one or more versions of the structured document. The vFunction is processed to identify a version of the structured document that includes an object represented by a vNode having versioning information satisfying the query.
摘要:
A method for processing a query for a versioned structured document includes providing vNodes representing objects of at least one version of a structured document. Each vNode includes versioning information associated with a version(s) of the structured document. A vIndex including vIndex keys is also provided. Each vIndex key is associated with a vNode and includes index information based on the versioning information of the associated vNode. A query for a version(s) of the structured document is received. The query includes a vFunction having an argument(s) relating to versioning information associated with versions of the structured document. In response to receiving the query, the vIndex is scanned to identify a first vIndex key that satisfies the query, which is used to determine a first vNode associated with the first vIndex key. The first vNode is then used to identify a version(s) of the structured document that satisfies the query.
摘要:
A method for providing an index for a searching a versioned structured document includes providing a first plurality of vNodes representing a plurality of objects of a first version of a structured document. Each vNode includes versioning information associated with the first version of the structured document and collectively, the vNodes graphically represent the first version of the structured document in a vDOM node tree. In an embodiment, a vIndex key associated with a first vNode of the first plurality of vNodes is generated. The vIndex key includes index information based on at least a portion of the versioning information of the first vNode. Once generated, the vIndex key associated with the first vNode is stored in a vIndex associated with the structured document.