Mass file data storing and reading method

A file data, large-scale technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of wasting system resources, waste, adverse application system security, etc., and achieve the effect of saving system resources

Inactive Publication Date: 2009-06-10
AUTONAVI
View PDF0 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] First of all, if the application system wants to access a certain file, it needs to create a new file IO interface for the file, which will waste a lot of time on the creation and destruction of the IO interface and waste a lot of system resources;
[0006] Secondly, the scattered files on the hard disk are not conducive to the security of the application system, because these scattered files m...

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
  • Mass file data storing and reading method
  • Mass file data storing and reading method
  • Mass file data storing and reading method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Such as figure 1 As shown, the large batch file data access method of the present invention comprises:

[0029] Step 1) merge the data of all small files into one large file;

[0030] Step 2) establish the one-to-one correspondence between the file name of each small file and its file number;

[0031] Step 3) Establish a corresponding relationship between each of the file numbers and the file information of the small file, and the file information includes the position of the small file in the large file.

[0032] Wherein, the file information also includes: the file size of the small file.

[0033] As can be seen from the above, the method for accessing large batches of file data of the present invention is to merge the data of all small files into a large file, that is, to merge into an independent file, so that when storing and reading this large file, only need The data in the large file can be stored and read by establishing an IO interface for storing and readi...

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 large-batch file data access method, which comprises: merging data of all the small files into a large file; establishing one-to-one corresponding relation between a file name and a file number of each small file; and establishing a corresponding relation between each file number and file information of the small file, wherein the file information comprises the position of the small file in the large file. Correspondingly, the invention also discloses a large-batch file data read method, which is used for reading file data accessed according to the access method. The method comprises the following steps: acquiring the file number of the small file according to the file name of the small file; acquiring the file information of the small file according to the file number; acquiring the position of the small file in the large file according to the file information; and realizing read of data of the small file through an IO interface of the large file according to the position of the small file in the large file. The technical proposal of the invention can save system resources.

Description

technical field [0001] The invention relates to the field of software technology, in particular to a method for storing and reading large batches of file data. Background technique [0002] With the popularization and application of computers, more and more file data need to be accessed. The file data generally refers to all data files that can be stored on the computer hard disk. The access refers to saving the data in the computer memory to the file and reading the data on the file to the computer memory. The access of a small amount of file data has little impact on system resources, but the way of accessing a large number of data files directly affects the utilization of system resources. The quantity of the large batch index exceeds 10 or more. [0003] Such as figure 1 As shown, generally speaking, for the access of large batches of file data, the large batches of file data are usually stored on the hard disk of the computer, and then a file IO (InputOutput, input ...

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 AUTONAVI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products