CN104699839A - File finding method and device - Google Patents

File finding method and device Download PDF

Info

Publication number
CN104699839A
CN104699839A CN201510149662.XA CN201510149662A CN104699839A CN 104699839 A CN104699839 A CN 104699839A CN 201510149662 A CN201510149662 A CN 201510149662A CN 104699839 A CN104699839 A CN 104699839A
Authority
CN
China
Prior art keywords
file
search
subregion
search criterion
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510149662.XA
Other languages
Chinese (zh)
Other versions
CN104699839B (en
Inventor
曹能华
陆骏
朱洲
柳佳斌
唐宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510149662.XA priority Critical patent/CN104699839B/en
Publication of CN104699839A publication Critical patent/CN104699839A/en
Application granted granted Critical
Publication of CN104699839B publication Critical patent/CN104699839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An embodiment of the invention discloses a file finding method and device applied to a smart mobile terminal device. The method includes: detecting whether or not a new device is connected the smart mobile terminal device; if yes, determining a number n of partitions of a device D connected with the smart mobile terminal device; according to first finding conditions user entered or preset, calling n threads to find files, meeting the first finding conditions, from the different partitions of the device D at the same time. According to the method, if the fact that the new device is connected to the smart mobile terminal is detected, the multiple threads are called to find the files from the partitions of the device at the same time, finding other devices before secondary finding is not required, finding the files in the (N-1)-th partition before finding the files in the N-th partition is not required either, and the time of finding the files in multiple devices or in multiple partitions of the device is shortened, and finding efficiency is improved.

Description

A kind of file search method and device
Technical field
The present invention relates to art file management technology field, particularly a kind of file search method and device.
Background technology
Based on the appearance of the intelligent mobile terminal equipment (such as smart mobile phone, panel computer, internet television Set Top Box etc.) of Android operation system, enrich the life of people.When user external to intelligent mobile terminal equipment other equipment (such as USB flash disk, portable hard drive etc.), exist and search certain class file in the equipment connected, the file found is carried out the situation of showing to user, such as: search the picture, video, audio frequency etc. that store in equipment.
At present, usual employing is single-threaded searches mode, locating file in the equipment be connected with the intelligent mobile terminal equipment based on Android operation system, such as start and search thread, search in the first equipment connected, when connecting the second equipment in the process of searching, need wait first equipment to search, then search in the second equipment; When the equipment connected exists multiple subregion, need to have searched the first subregion, more successively at the second subregion, the 3rd subregion ... search in N subregion.
Apply and above-mentioned search mode, search in the second equipment and need just can perform after the first equipment has been searched, search in N subregion after needs have been searched in N-1 subregion and just can perform, when therefore there is multiple subregion in the multiple equipment of connection or equipment, it is longer to search the spent time, and search efficiency is lower.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of file search method and device, to reduce the time of searching, improves search efficiency.
For achieving the above object, the embodiment of the invention discloses a kind of file search method, being applied to intelligent mobile terminal equipment, comprising:
Whether detect has new equipment to be connected with described intelligent mobile terminal equipment;
If had, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment;
According to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
According to a kind of specific implementation of the present invention, when finding the file not meeting described first search criterion, described method also comprises:
Determine the file type of the file not meeting described first search criterion;
According to the file type determined, will the file information storage of the file not meeting described first search criterion be found in the storage space corresponding with determined file type preset.
According to a kind of specific implementation of the present invention, described method also comprises:
Receive the second search criterion of user's input, described second search criterion comprises the file type of file to be found;
According to the file type of the file to be found that described second search criterion comprises, by file corresponding for the fileinfo that is stored in the storage space corresponding with this file type, be defined as lookup result.
According to a kind of specific implementation of the present invention, in subregion, search the file meeting described first search criterion, comprising:
Determine the storage directory progression M of subregion;
Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
According to a kind of specific implementation of the present invention, described method also comprises:
What receive user's input searches steering order, described in search steering order and comprise any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
Search steering order according to what receive, described in determining, search the kind of steering order and the subregion of pending control;
According to determined kind of searching steering order, the thread corresponding to the subregion of determined pending control is controlled.
For achieving the above object, the embodiment of the invention discloses a kind of ff device, being applied to intelligent mobile terminal equipment, comprising:
Detection module, the first determination module and search module, wherein,
Whether described detection module, have new equipment to be connected with described intelligent mobile terminal equipment for detecting;
Described first determination module, for detect at described detection module new equipment to be had be connected with described intelligent mobile terminal equipment, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment;
Describedly search module, for according to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
According to a kind of specific implementation of the present invention, in described module searches of searching to when not meeting the file of described first search criterion, described device also comprises: second determines to touch block and memory module, wherein,
Described second determination module, for determining the file type of the file not meeting described first search criterion;
Described memory module, for the file type determined according to described second determination module, will find the file information storage of the file not meeting described first search criterion in the storage space corresponding with determined file type preset.
According to a kind of specific implementation of the present invention, described device also comprises: search criterion receiver module and the 3rd determination module, wherein,
Described search criterion receiver module, for receiving the second search criterion of user's input, described second search criterion comprises the file type of file to be found;
Described 3rd determination module, for the file type of the file to be found that the second search criterion received according to described search criterion receiver module comprises, by file corresponding for the fileinfo be stored in the storage space corresponding with this file type, be defined as lookup result.
According to a kind of specific implementation of the present invention, in subregion, search the file meeting described first search criterion, comprising:
Determine the storage directory progression M of subregion;
Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
According to a kind of specific implementation of the present invention, described device also comprises: search steering order receiver module, the 4th determination module and control module, wherein,
Describedly search steering order receiver module, for receive user input search steering order, described steering order of searching comprises any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
Described 4th determination module, searches steering order for what search described in basis that steering order receiver module receives, searches the kind of steering order and the subregion of pending control described in determining;
Described control module, for the kind of searching steering order determined according to described 4th determination module, controls the thread corresponding to the subregion of the pending control that described 4th determination module is determined.
As seen from the above technical solutions, whether embodiments provide one and be applied to intelligent mobile terminal equipment file search method and device, method comprises: detect and have new equipment to be connected with described intelligent mobile terminal equipment; If had, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment; According to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.The technical scheme that the application embodiment of the present invention provides, when having detected that new equipment is connected with intelligent mobile terminal equipment, just call multiple thread locating file in each subregion of this equipment simultaneously, search again after having searched in other equipment, in N subregion, locating file also performs after completing without the need to locating file in N-1 subregion again, when therefore there is multiple subregion in the multiple equipment of connection or equipment, decrease the time of searching, improve search efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 3 provides for the embodiment of the present invention;
The 4th kind of schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 4 provides for the embodiment of the present invention;
The first structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 5 provides for the embodiment of the present invention;
The second structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 6 provides for the embodiment of the present invention;
The third structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 7 provides for the embodiment of the present invention;
The 4th kind of structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 8 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
It should be noted that, embodiments of the invention are preferably applicable to intelligent mobile terminal equipment, such as, the intelligent mobile terminal equipment of iOS operating system (iOS is the handheld equipment operating system developed by Apple) or Android operation system (android system is a kind of based on the freedom of Linux and the operating system of open source code) or WindowsPhone operating system (Windows Phone is the Mobile phone operating system that Microsoft issues) has been installed, certainly be also applicable to other intelligent mobile terminal equipment, the present invention is not construed as limiting this.
In actual applications, intelligent mobile terminal equipment can be mobile phone, also can be panel computer, can also be internet television Set Top Box.
The first schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 1 provides for the embodiment of the present invention, can comprise:
S101: detect and whether have new equipment to be connected with intelligent mobile terminal equipment; If so, S102 is performed;
S102: the subregion number n determining the equipment D be connected with intelligent mobile terminal equipment;
S103: according to user's input or the first search criterion of presetting, calls n thread and searches the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
Exemplary, suppose currently have the first equipment to be connected with internet television Set Top Box, just in the first equipment, carry out searching of file; After the second equipment is connected with internet television Set Top Box, systems inspection is connected to there being new equipment with network television-set top-set-box, then determine the subregion number n of the second equipment, according to user's input or the first default search criterion, call in the different subregions of n thread simultaneously respectively in the second equipment and search the file meeting the first search criterion.
Concrete, suppose that the first search criterion preset is: in the second equipment, search all picture files.
When the subregion number n of determined second equipment is 1, calls 1 thread and search all picture files in this subregion;
When the subregion number n>1 of determined second equipment, call in the different subregions of n thread simultaneously respectively in the second equipment and search all picture files, that is:
Call the first thread and search all picture files in the first subregion of the second equipment, simultaneously, call in second subregion of the second thread in the second equipment and search all picture files ... meanwhile, call in n-th subregion of the n-th thread in the second equipment and search all picture files.
Be described for certain portable hard drive below, this portable hard drive comprises 4 subregions, altogether store 18112 files, wherein, video file 1336, picture file 6085, audio file 2126, remaining 8565 files is file except video, picture, audio frequency, such as: text, word file etc.Time of the searching contrast of the single-threaded lookup method of prior art and the application's multithreading lookup method, as shown in table 1:
Table 1
Time The single-threaded lookup method of prior art The application's multithreading lookup method
Scanning portable hard drive T.T. 37 points 52 seconds 4 points 17 seconds
In actual applications, generally, file can not be stored in the catalogue of darker progression by user, therefore in subregion, search the file meeting described first search criterion, the application also provides a kind of preferred lookup method, adopt level (range is searched) method of searching to search, namely determine the storage directory progression M of subregion; Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
Be described for certain portable hard drive below, this portable hard drive comprises 4 subregions, altogether store 18112 files, wherein, video file 1336, picture file 6085, audio file 2126, remaining 8565 files is file except video, picture, audio frequency, such as: text, word file etc.Adopt degree of depth lookup method of the prior art and adopt level lookup method to find time of the searching contrast of first audio file, first picture file, first video file, as shown in table 2:
Table 2
Time Degree of depth lookup method Level lookup method
Find first audio file 4 points 21 seconds 1.2 second
Find first picture file 9 points 12 seconds 2.4 second
Find first video file 29 points 15 seconds 2.8 second
In actual applications, degree of depth lookup method compared to existing technology, adopt level lookup method may can not shorten the total scanning time of equipment subregion, but energy fast finding is to the file met, in time the required file found is fed back to user, avoid and use degree of depth lookup method, search less than qualified file for a long time, the phychology of user's anxiety, improves the experience effect of user.
It should be noted that, to be above-mentionedly described to search all picture files, be only an instantiation, do not form limitation of the invention.
Apply embodiment described in Fig. 1 of the present invention, when having detected that new equipment is connected with intelligent mobile terminal equipment, just call multiple thread locating file in each subregion of this equipment simultaneously, search again after having searched in other equipment, in N subregion, locating file also performs after completing without the need to locating file in N-1 subregion again, when therefore there is multiple subregion in the multiple equipment of connection or equipment, decrease the time of searching, improve search efficiency.And then when adopting level lookup method, all right fast finding to qualified first file, and is shown to user, improves the experience effect of user.
The second schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 2 provides for the embodiment of the present invention, when finding the file not meeting described first search criterion, the present invention embodiment illustrated in fig. 2 on basis embodiment illustrated in fig. 1 increase below two steps
S104: the file type determining the file not meeting described first search criterion;
S105: according to the file type determined, will find the file information storage of the file not meeting described first search criterion in the storage space corresponding with determined file type preset.
Concrete, search all picture files be described for above-mentioned.
In actual applications, when carrying out all picture file of scanning search to the subregion in equipment, when the file that can scan Current Scan is not picture file, suppose that Current Scan is to file A, judge that file A is not picture file, determine the file type of file A, suppose to determine that the file type of file A is video file, then by the file information storage of file A in the storage space that video file is corresponding.
The fileinfo of file A, can comprise: the file type of the filename of file A, the store path of file A and file A.
In actual applications, after the connection of off device and intelligent mobile terminal equipment, then can remove the fileinfo stored in storage space, after having new equipment to be connected with intelligent mobile terminal equipment, to the file information storage of the file not meeting search criterion be found in storage space, make the fileinfo storing the current equipment file be connected with intelligent mobile terminal equipment in storage space all the time.
The present invention is embodiment illustrated in fig. 2 in application, can will not meet the file information storage of the file of search criterion in the storage space such as buffer memory or hard disk, when user converts search criterion, again search, can first search in storage space, when storage file information meets the search criterion of user in storage space, then directly from storage space, obtain lookup result, without the need to again scanning the subregion of equipment, namely without the need to locating file in the subregion of equipment, improve search efficiency.
The third schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 3 provides for the embodiment of the present invention, the present invention embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 2 increase below two steps,
S106: the second search criterion receiving user's input;
Described second search criterion comprises the file type of file to be found;
S107: according to the file type of the file to be found that described second search criterion comprises, by file corresponding for the fileinfo that is stored in the storage space corresponding with this file type, is defined as lookup result.
Exemplary, in the second equipment, locating file is all or part of complete after, user can search the file of other types, supposes that second search criterion of the user received is: in the second equipment, search all video files; Then directly by All Files corresponding for the fileinfo of the video type stored in storage space, lookup result can be defined as.
The present invention is embodiment illustrated in fig. 3 in application, to the file information storage of the file of search criterion do not met in storage space, when user converts search criterion, again search, can first search in storage space, when storage file information meets the search criterion of user in storage space, then directly from storage space, obtain lookup result, without the need to again scanning the subregion of equipment, namely without the need to locating file in the subregion of equipment, improve search efficiency.
In the preferred embodiment of the present invention, buffer memory can be used preserve the fileinfo not meeting search criterion, thus accelerate search efficiency further.In addition, corresponding unloading condition can be set, relevant fileinfo is written back in hard disk, such as: after the end of scan, or the number of files found reaches certain threshold value (such as 5000,10000 etc.) preset, just all fileinfos are written back in hard disk, directly to call in follow-up search procedure.
In actual applications, there is multithreading simultaneously locating file in each subregion of many equipment or equipment, each thread can compete for system resources, when system resource deficiency, affects operating experience.In order to avoid the generation of above-mentioned situation, the embodiment of the present invention also provides a kind of file search method being applied to intelligent mobile terminal equipment, shown in Figure 4, the 4th kind of schematic flow sheet being applied to the file search method of intelligent mobile terminal equipment that Fig. 4 provides for the embodiment of the present invention, the present invention embodiment illustrated in fig. 4 on basis embodiment illustrated in fig. 1 increase below three steps
S108: what receive user's input searches steering order;
Described steering order of searching comprises any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
S109: search steering order according to what receive, searches the kind of steering order and the subregion of pending control described in determining;
S110: according to determined kind of searching steering order, controls the thread corresponding to the subregion of determined pending control.
Concrete, suppose current intelligent mobile terminal equipment and an equipment connection, this equipment comprises 3 subregions, then call the first thread and search at the first subregion of equipment; Call the second thread to search at the second subregion of equipment; Call the 3rd thread to search at the 3rd subregion of equipment.
Suppose that the steering order of searching that user inputs is: suspend searching of the second subregion, then determine that the kind of searching steering order is: suspend look-up command, the subregion of pending control is the second subregion, then suspend the second thread searching in the second subregion of equipment, discharge the resource that the second thread occupies, use for the first thread and the 3rd thread.
After time-out is searched, can also recover to search, namely receive the recovery look-up command of user's input, after receiving recovery look-up command, determine the subregion that pending recovery is searched, recover the second thread searching in the second subregion of equipment.
In actual applications, exist in the result found and include the situation meeting user's needs, now user can input the look-up command cancelling a certain subregion or all subregions, after receiving the defeated cancellation look-up command of user, determine to wait to cancel the subregion searched, that cancels determined subregion searches thread searching in a device.
Exemplary, suppose that user is for being set to background by a certain scenery picture stored in equipment, but user does not know the memory location of scenery picture, therefore user can only search the file of picture/mb-type in all subregions in a device, when finding scenery picture, user just can cancel a certain that search thread or cancel and allly search thread.
In actual applications, there is the situation that file is deposited according to certain rule by user, such as: by video file, audio file, in the first subregion that picture file is stored in equipment and the second subregion, the file of above-mentioned three types is not stored in 3rd subregion of equipment, after equipment is connected with intelligent mobile terminal equipment, call the first thread locating file in the first subregion of equipment, call the second thread locating file in the second subregion of equipment, call the 3rd thread locating file in the 3rd subregion of equipment, satisfactory file is there is not in the 3rd subregion due to user's now known device, therefore the operation of the 3rd thread locating file in the 3rd minute of equipment can be cancelled, discharge the system resource that the 3rd thread takies, thus minimizing multithreading causes system resource access competition, decrease the transmission of unnecessarily searching situation simultaneously, improve the experience effect of search efficiency and user.
It should be noted that, above-mentioned three step S108, S109 and S110 also can increase on Fig. 2 or basis embodiment illustrated in fig. 3.
The present invention is embodiment illustrated in fig. 4 in application, and avoid multithreading simultaneously locating file in each subregion of many equipment or equipment, each thread compete for system resources, affects operating experience.User also according to oneself actual demand, can control the object searched simultaneously, improves Consumer's Experience effect.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention additionally provides the ff device being applied to intelligent mobile terminal equipment.
The first structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 5 provides for the embodiment of the present invention; Can comprise: detection module 201, first determination module 202 and search module 203, wherein,
Whether detection module 201, have new equipment to be connected with described intelligent mobile terminal equipment for detecting;
First determination module 202, for detect at detection module 201 new equipment to be had be connected with described intelligent mobile terminal equipment, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment;
Search module 203, for according to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
In actual applications, in subregion, search the file meeting described first search criterion, the storage directory progression M of subregion can be determined; Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
The present invention is embodiment illustrated in fig. 5 in application, when having detected that new equipment is connected with intelligent mobile terminal equipment, just call multiple thread locating file in each subregion of this equipment simultaneously, search again after having searched in other equipment, in N subregion, locating file also performs after completing without the need to locating file in N-1 subregion again, when therefore there is multiple subregion in the multiple equipment of connection or equipment, decrease the time of searching, improve search efficiency.And then when adopting level lookup method, all right fast finding to qualified first file, and is shown to user, improves the experience effect of user.
The second structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 6 provides for the embodiment of the present invention; When searching module 203 and finding the file not meeting described first search criterion, the present invention is embodiment illustrated in fig. 6 to be increased on basis embodiment illustrated in fig. 5: second determines to touch block 204 and memory module 205, wherein,
Second determination module 204, for determining the file type of the file not meeting described first search criterion;
Memory module 205, for the file type determined according to the second determination module 204, will find the file information storage of the file not meeting described first search criterion in the storage space corresponding with determined file type preset.
The present invention is embodiment illustrated in fig. 6 in application, can will not meet the file information storage of the file of search criterion in the store storage such as buffer memory or hard disk space, when user converts search criterion, again search, can first search in storage space, when in storage space, storage file information meets the search criterion of user, then directly from storage space, obtain lookup result, without the need to again scanning the subregion of equipment, namely without the need to locating file in the subregion of equipment, improve search efficiency.
The third structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 7 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 7 to be increased on basis embodiment illustrated in fig. 6: search criterion receiver module 206 and the 3rd determination module 207, wherein,
Search criterion receiver module 206, for receiving the second search criterion of user's input, described second search criterion comprises the file type of file to be found;
3rd determination module 207, for the file type of the file to be found that the second search criterion received according to search criterion receiver module 206 comprises, by file corresponding for the fileinfo be stored in the storage space corresponding with this file type, be defined as lookup result.
The present invention is embodiment illustrated in fig. 7 in application, to the file information storage of the file of search criterion do not met in storage space, when user converts search criterion, again search, can first search in storage space, when storage file information meets the search criterion of user in storage space, then directly from storage space, obtain lookup result, without the need to again scanning the subregion of equipment, namely without the need to locating file in the subregion of equipment, improve search efficiency.
In the preferred embodiment of the present invention, buffer memory can be used preserve the fileinfo not meeting search criterion, thus accelerate search efficiency further.In addition, corresponding unloading condition can be set, relevant fileinfo is written back in hard disk, such as: after the end of scan, or the number of files found reaches certain threshold value (such as 5000,10000 etc.) preset, just all fileinfos are written back in hard disk, directly to call in follow-up search procedure.
The 4th kind of structural representation being applied to the ff device of intelligent mobile terminal equipment that Fig. 8 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 8 to be increased on basis embodiment illustrated in fig. 5: search steering order receiver module 208, the 4th determination module 209 and control module 210, wherein,
Search steering order receiver module 208, for receive user input search steering order, described steering order of searching comprises any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
4th determination module 209, for searching steering order according to what search that steering order receiver module 208 receives, searches the kind of steering order and the subregion of pending control described in determining;
Control module 210, for the kind of searching steering order determined according to the 4th determination module 209, controls the thread corresponding to the subregion of the pending control that the 4th determination module 209 is determined.
It should be noted that, above-mentionedly search steering order receiver module 208, the 4th determination module 209 and control module 210, also can increase on Fig. 4 or basis embodiment illustrated in fig. 5.
The present invention is embodiment illustrated in fig. 8 in application, avoids multithreading simultaneously locating file in each subregion of many equipment or equipment, each thread compete for system resources.User also according to oneself actual demand, can control the object searched simultaneously, improves Consumer's Experience effect.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a file search method, is applied to intelligent mobile terminal equipment, it is characterized in that, comprising:
Whether detect has new equipment to be connected with described intelligent mobile terminal equipment;
If had, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment;
According to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
2. method according to claim 1, is characterized in that, when finding the file not meeting described first search criterion, described method also comprises:
Determine the file type of the file not meeting described first search criterion;
According to the file type determined, will the file information storage of the file not meeting described first search criterion be found in the storage space corresponding with determined file type preset.
3. method according to claim 2, is characterized in that, described method also comprises:
Receive the second search criterion of user's input, described second search criterion comprises the file type of file to be found;
According to the file type of the file to be found that described second search criterion comprises, by file corresponding for the fileinfo that is stored in the storage space corresponding with this file type, be defined as lookup result.
4. the method according to claims 1 to 3 any one, is characterized in that, searches the file meeting described first search criterion, comprising in subregion:
Determine the storage directory progression M of subregion;
Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
5. the method according to claims 1 to 3 any one, is characterized in that, described method also comprises:
What receive user's input searches steering order, described in search steering order and comprise any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
Search steering order according to what receive, described in determining, search the kind of steering order and the subregion of pending control;
According to determined kind of searching steering order, the thread corresponding to the subregion of determined pending control is controlled.
6. a ff device, is applied to intelligent mobile terminal equipment, it is characterized in that, comprising: detection module, the first determination module and search module, wherein,
Whether described detection module, have new equipment to be connected with described intelligent mobile terminal equipment for detecting;
Described first determination module, for detect at described detection module new equipment to be had be connected with described intelligent mobile terminal equipment, determine the subregion number n of the equipment D be connected with described intelligent mobile terminal equipment;
Describedly search module, for according to user's input or the first search criterion of presetting, call n thread and search the file meeting described first search criterion in different subregions in a deviced respectively simultaneously.
7. device according to claim 6, is characterized in that, in described module searches of searching to when not meeting the file of described first search criterion, described device also comprises: second determines to touch block and memory module, wherein,
Described second determination module, for determining the file type of the file not meeting described first search criterion;
Described memory module, for the file type determined according to described second determination module, will find the file information storage of the file not meeting described first search criterion in the storage space corresponding with determined file type preset.
8. device according to claim 7, is characterized in that, described device also comprises: search criterion receiver module and the 3rd determination module, wherein,
Described search criterion receiver module, for receiving the second search criterion of user's input, described second search criterion comprises the file type of file to be found;
Described 3rd determination module, for the file type of the file to be found that the second search criterion received according to described search criterion receiver module comprises, by file corresponding for the fileinfo be stored in the storage space corresponding with this file type, be defined as lookup result.
9. the device according to claim 6 to 8 any one, is characterized in that, searches the file meeting described first search criterion, comprising in subregion:
Determine the storage directory progression M of subregion;
Successively in the root directory of subregion, all first order catalogues, all second level catalogues ... the file meeting described first search criterion is searched in all M level catalogues.
10. the device according to claim 6 to 8 any one, is characterized in that, described device also comprises: search steering order receiver module, the 4th determination module and control module, wherein,
Describedly search steering order receiver module, for receive user input search steering order, described steering order of searching comprises any one that suspend look-up command, recover look-up command and cancel in look-up command, described in search the information that steering order comprises the subregion of pending control;
Described 4th determination module, searches steering order for what search described in basis that steering order receiver module receives, searches the kind of steering order and the subregion of pending control described in determining;
Described control module, for the kind of searching steering order determined according to described 4th determination module, controls the thread corresponding to the subregion of the pending control that described 4th determination module is determined.
CN201510149662.XA 2015-03-31 2015-03-31 File searching method and device Active CN104699839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510149662.XA CN104699839B (en) 2015-03-31 2015-03-31 File searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510149662.XA CN104699839B (en) 2015-03-31 2015-03-31 File searching method and device

Publications (2)

Publication Number Publication Date
CN104699839A true CN104699839A (en) 2015-06-10
CN104699839B CN104699839B (en) 2021-03-02

Family

ID=53346959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510149662.XA Active CN104699839B (en) 2015-03-31 2015-03-31 File searching method and device

Country Status (1)

Country Link
CN (1) CN104699839B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321172A (en) * 2019-06-03 2019-10-11 平安科技(深圳)有限公司 Subregion recognition methods, device, equipment and the storage medium of network control techology

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525283A (en) * 2003-05-11 2004-09-01 北京中星微电子有限公司 Portable hard disk capable of recording video
CN1949218A (en) * 2005-10-12 2007-04-18 索尼株式会社 Data management device and method for managing recording medium
US20090222293A1 (en) * 2008-02-28 2009-09-03 Daniel Wong Method and System of Using Commodity Databases in Internet Search Advertising
CN101777077A (en) * 2010-02-26 2010-07-14 四川长虹电器股份有限公司 Method for implementing file system of embedded device
CN101795211A (en) * 2010-01-13 2010-08-04 北京中创信测科技股份有限公司 Data storage method and system
CN101833559A (en) * 2009-11-05 2010-09-15 北京炬力北方微电子有限公司 Method and device for reading FAT ( disk files
CN101916164A (en) * 2010-08-11 2010-12-15 中兴通讯股份有限公司 Mobile terminal and file browsing method implemented by same
CN102387422A (en) * 2010-08-31 2012-03-21 青岛海信电器股份有限公司 Digital media player, file searching method thereof and television
CN102999637A (en) * 2012-12-29 2013-03-27 珠海金山办公软件有限公司 Method and system for automatically adding file tab to file according to file feature code
CN103646051A (en) * 2013-11-27 2014-03-19 武汉邮电科学研究院 Big-data parallel processing system and method based on column storage
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN103823899A (en) * 2014-03-17 2014-05-28 广东欧珀移动通信有限公司 Method for automatically collating files and mobile terminal
CN103902618A (en) * 2012-12-28 2014-07-02 华为技术有限公司 File search method and device
US20140236960A1 (en) * 2013-02-19 2014-08-21 Futurewei Technologies, Inc. System and Method for Database Searching
CN104199863A (en) * 2014-08-15 2014-12-10 小米科技有限责任公司 Method and device for searching for files on storage device and router

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525283A (en) * 2003-05-11 2004-09-01 北京中星微电子有限公司 Portable hard disk capable of recording video
CN1949218A (en) * 2005-10-12 2007-04-18 索尼株式会社 Data management device and method for managing recording medium
US20090222293A1 (en) * 2008-02-28 2009-09-03 Daniel Wong Method and System of Using Commodity Databases in Internet Search Advertising
CN101833559A (en) * 2009-11-05 2010-09-15 北京炬力北方微电子有限公司 Method and device for reading FAT ( disk files
CN101795211A (en) * 2010-01-13 2010-08-04 北京中创信测科技股份有限公司 Data storage method and system
CN101777077A (en) * 2010-02-26 2010-07-14 四川长虹电器股份有限公司 Method for implementing file system of embedded device
CN101916164A (en) * 2010-08-11 2010-12-15 中兴通讯股份有限公司 Mobile terminal and file browsing method implemented by same
CN102387422A (en) * 2010-08-31 2012-03-21 青岛海信电器股份有限公司 Digital media player, file searching method thereof and television
CN103902618A (en) * 2012-12-28 2014-07-02 华为技术有限公司 File search method and device
CN102999637A (en) * 2012-12-29 2013-03-27 珠海金山办公软件有限公司 Method and system for automatically adding file tab to file according to file feature code
US20140236960A1 (en) * 2013-02-19 2014-08-21 Futurewei Technologies, Inc. System and Method for Database Searching
CN103646051A (en) * 2013-11-27 2014-03-19 武汉邮电科学研究院 Big-data parallel processing system and method based on column storage
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN103823899A (en) * 2014-03-17 2014-05-28 广东欧珀移动通信有限公司 Method for automatically collating files and mobile terminal
CN104199863A (en) * 2014-08-15 2014-12-10 小米科技有限责任公司 Method and device for searching for files on storage device and router

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A.MACFARLANE等: "Parallel search using partitioned inverted files", 《PROCEEDINGS SEVENTH INTERNATIONAL SYMPOSIUM ON STRING PROCESSING AND INFORMATION RETRIEVAL. SPIRE 2000》 *
WESLEY: "Sort My Files-文件自动分类", 《HTTPS://WWW.APPINN.COM/SORT-MY-FILES》 *
YUNG-CHENG MA等: "Load and storage balanced posting file partitioning for parallel information retrieval", 《JOURNAL OF SYSTEMS AND SOFTWARE》 *
王海涛: "数据挖掘中分类算法的并行化研究与应用", 《万方数据库》 *
龚燕等: "基于分区和分层搜索的并行粒子群算法", 《计算机应用研究》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321172A (en) * 2019-06-03 2019-10-11 平安科技(深圳)有限公司 Subregion recognition methods, device, equipment and the storage medium of network control techology

Also Published As

Publication number Publication date
CN104699839B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN107360536B (en) Method for controlling terminal device, terminal device and computer readable storage medium
CN104636339A (en) Meeting room booking method and device
US20120078435A1 (en) Battery management system and method of dynamically allocating charging current
CN103050097B (en) Method and device for regulating brightness of backlight lamp
US20140270258A1 (en) Apparatus and method for executing object using voice command
CN103778007A (en) Application managing method and device
CN105760199A (en) Method and equipment for loading application resource
CN106293803A (en) A kind of application control method and device
US20210407505A1 (en) Device control method and apparatus
CN103500191A (en) Flow table configuration, query and table item deleting method and device
CN103761036A (en) Method and device for running application
CN110874358B (en) Multi-attribute column storage and retrieval method and device and electronic equipment
CN102929981A (en) Media scanned file indexing method and device
CN103986773A (en) Data request response method and device
CN104166730A (en) Method and device for displaying search result
CN105574211A (en) File querying system and method based on time axis
CN106598926B (en) Operation revocation method and device
CN106201175B (en) Location regulation method, device and the terminal of application icon
CN105975306A (en) Application program starting management method and application program starting management apparatus for electronic device
CN104699839A (en) File finding method and device
US9456412B2 (en) Electronic device and method for selecting access point name
CN111641954B (en) Frequency point configuration method, device, equipment and storage medium
CN104780234A (en) Method, device and system for inquiring Internet protocol (IP) address location
CN104244092A (en) Method, system and device for starting application through set top box
US8281091B2 (en) Automatic selection of storage volumes in a data storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant