Small file storing method and system
A technology of small files and files, which is applied in the field of computer distributed storage, can solve the problems of not considering the relationship between files, and the reading efficiency of small files without giving a merge strategy, so as to achieve the effect of improving the reading efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] Embodiment 1 of the present invention discloses a small file storage method, refer to figure 1 , the small file storage method may include the following steps:
[0054] S101: Obtain semantic description information of multiple small files to be stored.
[0055] Most of the small files stored in the cloud platform are related to each other and are logically related to each other. In view of this connection, this application proposes a semantic-based file merging strategy to merge small files that are more closely related. , and at the same time control the size of the large file formed after merging to ensure that the large file obtained after merging does not exceed the default storage object size of the distributed framework, so as to avoid cross-block (block refers to large file) storage of small files.
[0056] refer to figure 2 The typical application scenario of distributed file storage shown in this embodiment is specifically based on figure 2The method of th...
Embodiment 2
[0097] This embodiment continues to supplement the scheme of embodiment one, refer to image 3 , in this embodiment, the following steps may also be included before the step S104:
[0098] S105: Using the keywords of each of the small files, establish an inverted index for each of the small files; determine the mapping relationship between each of the small files and the corresponding large file and each The location information of the small file in the corresponding large file.
[0099] File retrieval is indispensable for any platform. While storing files, it is necessary to provide support for the file retrieval function at the same time, that is to say, it is necessary to be able to locate the desired file according to the search terms entered by the user. Based on this, in order to To provide support for file retrieval, the present embodiment utilizes the keywords of each small file to set up an inverted index for the small file, thereby forming the mapping of keywords→sm...
Embodiment 3
[0113] On the basis of embodiment two scheme, refer to Figure 4 , in this embodiment, the small file storage method may also include the following steps:
[0114] S106: Read the required small files based on the inverted index, the mapping relationship between the small files and the corresponding large files, and the position information of each of the small files in the corresponding large files.
[0115] On the basis of the above embodiments, this embodiment provides a solution for reading small files. The reading of small files can be divided into two steps: file retrieval and file download. Specifically, the file retrieval can be performed after receiving the search words input by the user. , use Lucene to search the created inverted index, so as to obtain a list of results that match the search terms, the list includes one or more small file IDs, and then continue to use the small file IDs obtained after retrieval to query the database to obtain small files The merged ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com