Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for accessing tree-structured data

A tree structure and access method technology, applied in the information field, can solve problems such as low access efficiency and long waiting time, and achieve the effects of reducing resource consumption, improving efficiency, and avoiding resource exhaustion

Active Publication Date: 2013-07-03
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, the number of loop traversals is unpredictable, and it takes a long time to display the tree structure data in the interface, and the access efficiency is low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for accessing tree-structured data
  • Method and system for accessing tree-structured data
  • Method and system for accessing tree-structured data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In one embodiment, as figure 1 As shown, a method for accessing tree-structured data includes the following steps:

[0046] Step S110, cyclically read the corresponding relationship between the node and its parent node, and construct a node object including the node ID and the parent node ID according to the corresponding relationship.

[0047] In this embodiment, the corresponding relationship includes the parent node identifier of the node, which is used to indicate to any node which node is the parent node, that is, it indicates that there is a hierarchy of child nodes and parent nodes between this node and which node relation. In addition, each node has its corresponding attribute information, which includes text content such as the node name and the code of the node.

[0048] Since each node has a corresponding corresponding relationship, it is necessary to read multiple corresponding relationships in a loop, and then construct a node object according to the read...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for accessing three-structured data. The method comprises the following steps of: circularly reading the corresponding relationship between each node and the parent node thereof, and constructing node objects which comprise node identifiers and parent node identifiers according to the corresponding relationship; judging whether each node object has a parent node; if the node object has the parent node, acquiring a parent node identifier from the node object, and associating the node object and the node object of the parent node according to the parent node identifier; and accessing the associated node object. In the method and the system for accessing the tree-structured data, the node objects are constructed by circularly reading; then each node is circulated again, namely the node objects are judged one by one, the node objects and the node objects of the parent nodes are associated, and the link between each parent node and each child node is established; only two cycles are required to be performed in an accessing process, so that the method is simpler; the problem of resource depletion caused by circulating for a plurality of times can be avoided thoroughly; the resource consumption is reduced effectively; and the efficiency is improved.

Description

【Technical field】 [0001] The invention relates to information technology, in particular to an access method and system for tree structure data. 【Background technique】 [0002] In order to make data browsing clearer, tree structure data is often used to reflect the hierarchical relationship between data. For example, when displaying the organizational structure of large and medium-sized enterprises, the tree structure data is displayed to clearly show the relationship between departments and departments in the enterprise. The affiliation relationship between departments and between subsidiaries and groups; in the folder, the tree structure data of the directory tree on the interface can also be used to show the hierarchical relationship between the subfolders in the folder . However, with the wide application of tree-structured data, there are more and more nodes in the tree-structured data, and the levels are becoming more and more complex. When accessing, it is necessary t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 魏向阳
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products