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

Method for storing and accessing file set under tree directory structure in database

A directory structure and tree-shaped directory technology, applied in the fields of electrical digital data processing, special data processing applications, instruments, etc.

Inactive Publication Date: 2011-04-13
THE PLA INFORMATION ENG UNIV
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] In view of the above situation, in order to overcome the defects of the prior art, the object of the present invention is to provide a method for storing and accessing files under a tree directory structure in a database , can effectively solve the problem of accessing file sets in existing database systems, and support the overall storage and random access of file sets. On the other hand, storage and retrieval are interrelated. The storage (storage) of the file set refers to saving the file set as a whole in the database; the retrieval refers to random access when the user accesses the files stored in the database When a certain file is collected, it is not necessary to read the entire file set, but only the data corresponding to the file. The said file set contains three types of information: the directory structure of the file set, the file data of the file set, and the File attributes. The directory structure of a file set refers to the relationship between all files and directories in the file set. When only one root directory is considered, it is a tree structure. The file data of the file set refers to the relationship between the files of the file set. The data of all files, the data of each file is basically a set of byte sequences, which constitute the content of the file, and the file attributes of the file set refer to the name, type, size, and creation date of all files in the file set Therefore, in the process of storing the file set in the database, in order to ensure the integrity of the file set information, the directory structure, file data and file attributes of the file set must be stored in the database at the same time. From the perspective of informatics, the file set is stored in the database, which is the process of transferring the relevant information of the file set from the file system of the user host to the database of the server through the network.

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 for storing and accessing file set under tree directory structure in database
  • Method for storing and accessing file set under tree directory structure in database
  • Method for storing and accessing file set under tree directory structure in database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The specific implementation manners of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0034] Depend on Figure 4 , Figure 5 As shown, the present invention includes two parts: the database storage of the file set and the random access of the file set in the database. The file set is composed of three types of information: the directory structure of the file set, the file data of the file set, and the file attributes of the file set , the directory structure of the file set refers to the relationship between all files and directories in the file set. In the case of only one root directory, it is a tree structure. The file data of the file set refers to all the files in the file set The data of each file, in which the data of each file is fundamentally a set of byte sequences, which constitute the content of the file, the file attribute of the file set refers to the description of all files in the file set such a...

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 relates to a method for storing and accessing file sets under a tree directory structure in a database, which can effectively solve the problems of overall storage and random access when file sets are stored in and extracted from a database system. The technical scheme is as follows: the overall storage extracts the directory structure, file data and attributes of the file sets froma file system to a local memory; organization structure object is serialized; data blocks are stored in the database; the random access recovers the directory structure of the file sets; corresponding files in the database are accessed according to user selection to read out the directory structure data blocks stored in the database; the directory structure data blocks are recovered to data structure objects by reverse serialization; and the information of the directory structure objects are shown to users in the forms of visible file node data structure, directory node data structure and file set directory structure objects. The invention solves the difficult technical problem that files are not supported to be directly stored and randomly accessed in the database in the prior art, thereby having enormous economic and social benefits.

Description

1. Technical field [0001] The invention relates to computer application technology, in particular to a method for storing and accessing a file set under a tree directory structure in a database. 2. Background technology [0002] With the development of computer science and multimedia technology, in the development of practical products with database systems such as computer networks, mobile computers, mobile phones, and satellite navigators, databases must not only deal with simple structured data, but also often deal with a large number of complex ones. Unstructured data, such as graphics, sound files, or large text files, etc. These complex unstructured data are often accessed in the database in units of files. In addition to the database access of a single file, in an application, a collection of multiple files organized according to a certain directory structure in the file system (called a file set) needs to be stored in the database as a whole. [0003] For the access...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 吕志平李昌贵赵冬青李健张西光陈正生
Owner THE PLA INFORMATION ENG UNIV
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