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

A method and device for searching and locating file resources

A file resource and positioning method technology, applied in the computer field, can solve the problems of positioning failure, end of retrieval operation, etc., to achieve the effects of fast search and positioning, improved search performance, and improved search performance

Active Publication Date: 2016-07-13
北京思特奇信息技术股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If ccc is located, ccc will be used as the starting directory for the next search; if ccc is not located, then the entire search operation ends and the positioning fails

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
  • A method and device for searching and locating file resources
  • A method and device for searching and locating file resources
  • A method and device for searching and locating file resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061]The present invention proposes a method for searching and locating file resources. The method includes: receiving a search request, the search request includes file name information and file path information of the target file to be searched; according to the file name information and file path information of the target file Determine the starting directory of the search and the name of the search target; search for the target file in the node hash list and the name hash list according to the preset hash algorithm. Wherein, the node hash list stores the node information of the file, and the name hash list stores the relationship information between the name space information of the file and the node information.

[0062] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention...

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 file resource searching and locating method and a file resource searching and locating device. The file resource searching and locating method comprises the following steps of: receiving a locating request, wherein the locating request comprises file name information and file path information of a target file to be located; determining a home directory and a retrieval object name of retrieval according to the file name information and file path information of the target file; and searching a target file in a node Hash linked list and a name Hash linked list according to a preset Hash algorithm, wherein node information of files is stored in the node Hash linked list; and name space information of files is stored in the name Hash linked list. According to the file resource searching and locating method and the file resource searching and locating device disclosed by the invention, file resources can be searched and located rapidly, and the search performance of a distributed file system is improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for searching and locating file resources. Background technique [0002] Existing file resource search and positioning scheme: first determine whether the target file to be retrieved uses an absolute path or a relative path. If it is an absolute path, set the starting path of the search to the root directory and start searching from the root directory (the root directory means the first directory at the top of the file system). If the target file to retrieve uses a relative path, set the starting path of the search to the current directory. [0003] Existing solutions use directory separators ("\" or " / ") to separate the target to be located according to the directory hierarchy, and locate the target directory of each layer hierarchically. After the first-level directory target is located, the first-level directory is used as the starting directory for the next sear...

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 北京思特奇信息技术股份有限公司
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