CN111914105A - File query method and device and electronic equipment - Google Patents

File query method and device and electronic equipment Download PDF

Info

Publication number
CN111914105A
CN111914105A CN201910380902.5A CN201910380902A CN111914105A CN 111914105 A CN111914105 A CN 111914105A CN 201910380902 A CN201910380902 A CN 201910380902A CN 111914105 A CN111914105 A CN 111914105A
Authority
CN
China
Prior art keywords
file
query
preset set
files
displaying
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.)
Pending
Application number
CN201910380902.5A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910380902.5A priority Critical patent/CN111914105A/en
Publication of CN111914105A publication Critical patent/CN111914105A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • 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

Abstract

The embodiment of the invention provides a file query method, a file query device and electronic equipment, wherein the method comprises the following steps: at an electronic device having one or more processors, a memory, an input unit, and a display unit: acquiring a file query instruction, wherein the file query instruction comprises query keywords; according to the query instruction, querying a first file corresponding to the query keyword in a media database, wherein the file name of the first file comprises the query keyword; the first file is displayed. The file query efficiency is improved.

Description

File query method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a file query method and device and electronic equipment.
Background
A plurality of files can be stored in an electronic device (e.g., a mobile phone, a tablet computer, etc.), and a user can query the electronic device for a desired file by querying keywords.
In the prior art, after a user inputs a query keyword, an electronic device may obtain a file name of each file in a file system, match the file name of each file with the query keyword, and display one file in the electronic device if the file name of the file in the file system includes the query keyword. However, in the above process, it takes a long time to acquire the file name of each file in the file system and match each file name with the query keyword, which results in low efficiency of file query.
Disclosure of Invention
The embodiment of the invention provides a file query method, a file query device and electronic equipment, and improves file query efficiency.
In a first aspect, an embodiment of the present invention provides a file query method, including: at an electronic device having one or more processors, a memory, an input unit, and a display unit:
acquiring a file query instruction, wherein the file query instruction comprises query keywords;
according to the query instruction, querying a first file corresponding to the query keyword in a media database, wherein the file name of the first file comprises the query keyword;
and displaying the first file.
In a possible implementation manner, after the obtaining the file query instruction, the method further includes:
traversing a second file corresponding to the query keyword in a file system according to the query instruction;
and if the second file is not repeated with the displayed first file, displaying the second file.
In one possible embodiment, the displaying the first file includes:
and if the first file is not repeated with the displayed second file, displaying the first file.
In one possible embodiment, the displaying the first file includes:
if the first file is not in a preset set, adding the first file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the first file is different from the file information of all files in a preset set, the first file is not in the preset set; wherein the file information includes a file name and a path.
In a possible implementation manner, if the second file is not duplicated with the displayed first file, displaying the second file includes:
if the second file is not in the preset set, adding the second file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the second file is different from the file information of all files in a preset set, the second file is not in the preset set; wherein the file information includes a file name and a path.
In a second aspect, an embodiment of the present invention provides a file querying device, including: an acquisition module, a query module, and a display module, wherein,
the acquisition module is used for acquiring a file query instruction, and the file query instruction comprises query keywords;
the query module is used for querying a first file corresponding to the query keyword in a media database according to the query instruction, wherein the file name of the first file comprises the query keyword;
the display module is used for displaying the first file.
In a possible implementation manner, the query module is further configured to, after the obtaining module obtains a file query instruction, traverse a second file corresponding to the query keyword in a file system according to the query instruction;
the display module is further configured to display the second file if the second file is not duplicated with the displayed first file.
In a possible implementation, the display module is specifically configured to:
and if the first file is not repeated with the displayed second file, displaying the first file.
In a possible implementation, the display module is specifically configured to:
if the first file is not in a preset set, adding the first file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the first file is different from the file information of all files in a preset set, the first file is not in the preset set; wherein the file information includes a file name and a path.
In a possible implementation, the display module is specifically configured to:
if the second file is not in the preset set, adding the second file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the second file is different from the file information of all files in a preset set, the second file is not in the preset set; wherein the file information includes a file name and a path.
In a third aspect, an embodiment of the present invention provides an electronic device, including one or more processors, a memory, an input unit, and a display unit; the memory includes program instructions, and the processor executes the program instructions in the memory to implement the file query method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium is used to store a computer program, and the computer program is used to implement the file query method according to any one of the first aspect.
According to the file query method, the file query device and the electronic equipment provided by the embodiment of the invention, after the electronic equipment receives the file query instruction comprising the query keyword, the first file corresponding to the query keyword can be queried in the media database according to the query instruction, and the first file is displayed in the electronic equipment. In the process, the files matched with the query key can be queried in the media database in a database query mode, the database query efficiency is high, and the file query efficiency is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a file in an electronic device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a file query method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another file query method according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a file query process according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a file query apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of a file in an electronic device according to an embodiment of the present invention. Referring to fig. 1, a media database and a file system are included in an electronic device. Files of an electronic device are typically stored in a file system. One or more folders may be included under a root directory of the file system, one or more files may be included under the root directory, and folders and/or files may be included in folders of the root directory, that is, folders and/or files may be included under each folder in the file system.
After the electronic device is powered on, the electronic device may copy the data in the file system to the media database so that the data in the media database is the same as the data in the file system. During the operation of the electronic device, the files in the file system may be updated, for example, files are added to the file system, files are deleted, file names are modified, and the like. After an update to a file in the file system, the updated file is typically synchronized to the media database so that the data in the media database is the same as the data in the file system.
In the application, when the file needs to be inquired in the electronic equipment, a user can input the inquiry keyword, the electronic equipment inquires the file matched with the inquiry keyword in the media database according to the inquiry keyword, and the file is displayed in the electronic equipment. In the process, the files matched with the query key can be queried in the media database in a database query mode, the database query efficiency is high, and the file query efficiency is further improved.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 2 is a schematic flowchart of a file query method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, obtaining a file query instruction, wherein the file query instruction comprises query keywords.
The execution subject of the embodiment of the invention can be an electronic device, and can also be a file query device arranged in the electronic device. Alternatively, the file querying device may be implemented by software, or may be implemented by a combination of software and hardware.
Alternatively, the electronic device may have one or more processors, memories, an input unit, and a display unit. For example, the electronic device may be a mobile phone, a tablet computer, or the like.
Optionally, the electronic device may display a file query page, where the file query page includes a query input box and a query icon, a user may input a query keyword in the query input box and click the query icon, and the electronic device may generate a file query instruction according to an operation input by the user, so that the electronic device obtains the file query instruction.
For example, when the system of the electronic device is an Android system, an event listener onquerytextchange of the Android system may listen to whether information input in the query input box is changed and whether information input in the query input box is empty. The event listener onQueryTextSubmit may listen for whether the query icon is clicked. When onQuertyTextChange monitors that the information in the query input box changes and is not empty, and onQuertyTextSubmit monitors that the query icon is clicked, a file query instruction is generated. In this way, when the information in the query input box is not changed or the information in the query input box is queried, even if the onQueryTextSubmit monitors that the query icon is clicked, a file query instruction is not generated, and unnecessary file queries can be avoided.
Optionally, the query keyword may be a file name of the file to be queried, or the query keyword may be a partial character in the file name of the file to be queried, where the partial character may be a partial continuous character in the file name of the file to be queried.
For example, when the user needs to query a file with a file name of 123abcd, the user may input a query keyword 123abcd, or the user may input query keywords 123, 23ab, abcd, and the like.
S202, according to the query instruction, querying a first file corresponding to the query keyword in the media database.
The file name of the first file comprises a query keyword.
Optionally, the number of the first files may be one or more.
Optionally, the file name of the first file is the same as the query keyword, or the query keyword is a part of the file name of the first file.
Optionally, the first file corresponding to the query keyword may be queried in the media database through the following feasible implementation manners: and determining a query statement corresponding to the query keyword, and executing a first query operation in the media database according to the query statement to acquire a first file.
For example, when the media database is a Structured Query Language (SQL) database, then the Query statement is an SQL Query statement.
Optionally, after the file query is completed in the media database, the media database may return a cursor, where the cursor includes the first file.
S203, displaying the first file in the electronic equipment.
Optionally, the file information of the first file may also be acquired, and the file information of the first file is displayed.
Optionally, the file information may include path information of the file, a last modification time of the file, a size of the file, a type of the file, and the like.
Optionally, after the electronic device completes querying all the files in the media database, the electronic device may determine to obtain the first file. That is, after the electronic device queries all the first files, the first files are displayed.
According to the file query method provided by the embodiment of the invention, after the electronic equipment receives the file query instruction comprising the query keyword, the first file corresponding to the query keyword can be queried in the media database according to the query instruction, and the first file is displayed in the electronic equipment. In the process, the files matched with the query key can be queried in the media database in a database query mode, the database query efficiency is high, and the file query efficiency is further improved.
In an actual application process, after the electronic device is started, the electronic device copies data in the file system to the media database, so that the data in the media database is the same as the data in the file system. However, during the operation of the electronic device, the files in the file system may be updated (e.g., files are added, deleted, modified, etc.), and after the files in the file system are updated, the updated files may not be synchronized to the media database, so that the files in the media database are not identical to the files in the file system. Even if the files in the media database and the files in the file system have different parts, the files in the media database and the files in the file system are mostly identical, for example, the files in the media database and the files in the file system have 99.9% of the same files, and have 0.1% of the same files.
For example, when a user uses an application installed in an electronic device, the application generates a new file, the new file is stored in a file system, and if the application does not trigger synchronization of the new file to a media database, the files in the media database and the files in the file system are not identical.
In order to return a correct file query result to a user when the files in the media database are not identical to the files in the file system, the file query can be performed in the media database and the file system at the same time. This file query method is explained below by the embodiment shown in fig. 3.
Fig. 3 is a schematic flowchart of another file query method according to an embodiment of the present application. Referring to fig. 3, the method may include:
s301, a file query instruction is obtained, and the file query instruction comprises query keywords.
It should be noted that the execution process of S301 may refer to the execution process of S201, and is not described herein again.
S302, according to the query instruction, querying a first file corresponding to the query keyword in the media database.
It should be noted that the execution process of S301 may refer to the execution process of S201, and is not described herein again.
It should be noted that the first file may not be queried in S302, in which case S303 may not be executed.
And S303, if the first file and the displayed second file are not overlapped, displaying the first file.
Optionally, if the first file is not in the preset set, adding the first file to the preset set; and displaying the files in the preset set. If the file information of the first file is different from the file information of all the files in the preset set, the first file is not in the preset set; wherein the file information includes a file name and a path.
Wherein the file information includes path information and a file name. Of course, the file information may also include other content, for example, the file information may also include the last modification time of the file, the size of the file, the type of the file, and the like.
Initially, the preset set is empty. In the file query process, the first file and the second file may be added to a preset set. Thus, in performing S303, one or more second files may already exist in the preset set.
The files in the preset set are file query results, that is, the files in the preset set are files that have been currently displayed in the electronic device.
Optionally, the file information of the first file may be compared with the file information of each file in the preset set, and if the file information of the first file is different from the file information of each file in the preset set, the first file is added to the preset set.
Optionally, after the first file is added to the preset set, the preset set is updated. After the preset set is updated, the displayed file is updated in the electronic equipment. That is, after the preset set is updated, the files in the updated preset set are displayed in the electronic device.
Optionally, when the electronic device displays the files in the preset set, file information of the files may also be displayed.
S304, traversing the second file corresponding to the query keyword in the file system according to the query instruction.
Optionally, all the files in the file system may be obtained first, and whether the file name of each file includes the query keyword is judged respectively, and if yes, the file is determined as the second file.
Optionally, because the file system includes a plurality of files, when the electronic device determines that the file name of one file includes the query keyword, the file is determined as a second file. That is, in the process of querying a file in the file system, the number of second files obtained by querying may be increased continuously.
For example, in the 1 st second of the file query, a file with a file name including the query keyword may be queried, and the file is determined to be a second file, where the number of the second files obtained by the query is 1. In the 5 th second of file query, a file with a file name including the query keyword may be queried, and the file is also determined as a second file, at this time, the number of the second files obtained by query is 2.
For example, when the system of the electronic device is an Android system, all folders and files under one folder can be acquired by a file. After a folder is obtained from the folder, the file and/or the folder can be obtained from the folder through the listFile operation, and the above process is repeated until all the files in the file system are obtained.
S305, if the second file is not overlapped with the displayed first file, displaying the second file.
In the process of file query, since the queried second file may be updated, in order to improve the file query efficiency, after a new second file is obtained by query, it is determined whether the new second file is overlapped with the displayed first file. That is, S304 and S305 may be executed in parallel.
It should be noted that, in the process of querying the file, the queried second file may be updated, so that a new second file may be queried at different times, and in order to improve the efficiency of returning the query result to the user, each time a new second file is determined to be obtained, the new second file is displayed in the electronic device.
For example, in the process of file query, a second file may be obtained in 2 seconds, and the second file may be displayed in 2 seconds. If a second file is queried again at the 10 th second, the second file can be displayed at the 10 th second.
Optionally, if the second file is not in the preset set, adding the second file to the preset set; and displaying the files in the preset set. If the file information of the second file is different from the file information of all the files in the preset set, the second file is not in the preset set; wherein the file information includes a file name and a path.
Initially, the preset set is empty. In the file query process, the first file and the second file may be added to a preset set. Thus, in executing S305, one or more first files may already exist in the preset set.
Optionally, the file information of the second file may be compared with the file information of each file in the preset set, and if the file information of the second file is different from the file information of each file in the preset set, the second file is added to the preset set.
Optionally, after the second file is added to the preset set, the preset set is updated. After the update of the pre-assembly set occurs, the displayed file is updated in the electronic equipment. That is, after the preset set is updated, the files in the updated preset set are displayed in the electronic device.
Optionally, when the electronic device displays the files in the preset set, file information of the files may also be displayed.
Optionally, after the file query instruction is obtained, the first thread and the second thread may be started, and the first thread and the second thread may be executed in parallel by executing S302 to S303 through the first thread and executing S304 to S305 through the second thread.
In the embodiment shown in fig. 3, after the file query instruction is obtained, file query is performed in the media database and the file system at the same time, and the file matched with the query keyword can be quickly queried and obtained in the media database, and the file matched with the query keyword is displayed to the user. Meanwhile, file query is carried out in the file system, so that the problem that all files matched with the query keywords cannot be obtained through query when the data in the media database is not identical to the data in the file system can be prevented. That is, with the embodiment shown in fig. 3, not only the efficiency of returning the file query result (the file matched with the query keyword) to the user can be improved, but also the correct file query result can be ensured to be returned to the user.
The method shown in the embodiment of fig. 3 will be described in detail by specific examples with reference to fig. 4.
Fig. 4 is a schematic diagram of a file query process according to an embodiment of the present invention. See fig. 4, including interface 401-interface 403.
At time 1, please refer to interface 401, when a user needs to query a file in an electronic device, the user may open a file query interface of the electronic device. The file query interface comprises an input box, a query icon and a queried file list. Initially, the queried file list is empty. The user may enter a query keyword (abc) in the search box and click on the "query" icon. At this time, the preset set is empty, and the first file and the second file are obtained without inquiry.
After the user clicks the query icon, the electronic equipment obtains a file query instruction, and the file query instruction comprises query keywords (abc). After the file query instruction is obtained, the electronic equipment starts a first thread and a second thread, the first thread and the second thread are executed in parallel, the electronic equipment queries files in the media database through the first thread and queries files in the file system through the second thread.
At time 2, please refer to the interface 402, the electronic device queries the media database through the first thread to obtain three files, and queries the file system through the second thread to obtain one file. Assuming that one file queried in the file system is the same as one of the three files queried in the media database, the three files queried in the media database are displayed in the file list. At this time, the first file is obtained by querying the media database through the first thread, the second file is obtained by querying the file system through the second thread, and the preset set includes three files obtained by querying the media database through the first thread.
At time 3, please refer to the interface 403, the electronic device queries three files in the system file through the second thread, the file names and the path information of the files are as shown in fig. 4, and since three of the four files obtained by querying in the file system are the same as the three files obtained by querying in the media database, one of the different files is added to the preset set and additionally displayed in the file list. At this time, the first file is obtained by querying the media database through the first thread. The second file is inquired in the file system through a second thread to obtain four files, and the preset set comprises the four files inquired in the media database through the second thread.
In the embodiment shown in fig. 4, not only the efficiency of returning the file query result (target file) to the user can be improved, but also the correct file query result can be ensured to be returned to the user.
Fig. 5 is a schematic structural diagram of a file query apparatus according to an embodiment of the present invention, please refer to fig. 5, the apparatus may include an obtaining module 11, a query module 12, and a display module 13, wherein,
the obtaining module 11 is configured to obtain a file query instruction, where the file query instruction includes a query keyword;
the query module 12 is configured to query, according to the query instruction, a first file corresponding to the query keyword in a media database, where a file name of the first file includes the query keyword;
the display module 13 is configured to display the first file.
The file query device provided by the embodiment of the present invention can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In a possible implementation manner, the query module 12 is further configured to, after the obtaining module 11 obtains a file query instruction, traverse a second file corresponding to the query keyword in a file system according to the query instruction;
the display module 13 is further configured to display the second file if the second file is not overlapped with the displayed first file.
In a possible implementation, the display module 13 is specifically configured to:
and if the first file is not repeated with the displayed second file, displaying the first file.
In a possible implementation, the display module 13 is specifically configured to:
if the first file is not in a preset set, adding the first file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the first file is different from the file information of all files in a preset set, the first file is not in the preset set; wherein the file information includes a file name and a path.
In a possible implementation, the display module 13 is specifically configured to:
if the second file is not in the preset set, adding the second file to the preset set;
and displaying the files in the preset set.
In a possible implementation manner, if the file information of the second file is different from the file information of all files in a preset set, the second file is not in the preset set; wherein the file information includes a file name and a path.
The file query device provided by the embodiment of the present invention can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. Referring to fig. 6, the electronic device includes: a memory 21 and a processor 22, wherein the memory 21 and the processor 22 are in communication; illustratively, the memory 21 and the processor 22 communicate via a communication bus 23, the memory 21 being configured to store a computer program, the processor 22 executing the computer program to implement the method shown in the above embodiments.
Optionally, the Processor may be a Central Processing Unit (CPU), or may be another general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
The present application provides a storage medium for storing a computer program for implementing the file query method according to any of the above method embodiments.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.
In the present application, the terms "include" and variations thereof may refer to non-limiting inclusions; the term "or" and variations thereof may mean "and/or". The terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. In the present application, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

Claims (10)

1. A file query method is characterized by comprising the following steps: at an electronic device having one or more processors, a memory, an input unit, and a display unit:
acquiring a file query instruction, wherein the file query instruction comprises query keywords;
according to the query instruction, querying a first file corresponding to the query keyword in a media database, wherein the file name of the first file comprises the query keyword;
and displaying the first file.
2. The method of claim 1, wherein after the obtaining the file query instruction, further comprising:
traversing a second file corresponding to the query keyword in a file system according to the query instruction;
and if the second file is not repeated with the displayed first file, displaying the second file.
3. The method of claim 2, wherein the displaying the first file comprises:
and if the first file is not repeated with the displayed second file, displaying the first file.
4. The method of claim 1, wherein the displaying the first file comprises:
if the first file is not in a preset set, adding the first file to the preset set;
and displaying the files in the preset set.
5. The method according to claim 4, wherein if the file information of the first file is different from the file information of all files in a preset set, the first file is not in the preset set; wherein the file information includes a file name and a path.
6. The method of claim 2, wherein displaying the second file if the second file is not duplicated with the first file displayed comprises:
if the second file is not in a preset set, adding the second file to the preset set;
and displaying the files in the preset set.
7. The method according to claim 6, wherein if the file information of the second file is different from the file information of all files in the preset set, the second file is not in the preset set; wherein the file information includes a file name and a path.
8. A file inquiry apparatus, comprising: an acquisition module, a query module, and a display module, wherein,
the acquisition module is used for acquiring a file query instruction, and the file query instruction comprises query keywords;
the query module is used for querying a first file corresponding to the query keyword in a media database according to the query instruction, wherein the file name of the first file comprises the query keyword;
the display module is used for displaying the first file.
9. An electronic device comprising one or more processors, a memory, an input unit, and a display unit; the memory includes program instructions therein, and the processor executes the program instructions in the memory to implement the file query method of any one of claims 1-7.
10. A storage medium for storing a computer program for implementing the file query method according to any one of claims 1 to 7.
CN201910380902.5A 2019-05-08 2019-05-08 File query method and device and electronic equipment Pending CN111914105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380902.5A CN111914105A (en) 2019-05-08 2019-05-08 File query method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380902.5A CN111914105A (en) 2019-05-08 2019-05-08 File query method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111914105A true CN111914105A (en) 2020-11-10

Family

ID=73241834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380902.5A Pending CN111914105A (en) 2019-05-08 2019-05-08 File query method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111914105A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937406A (en) * 1997-01-31 1999-08-10 Informix Software, Inc. File system interface to a database
CN102609453A (en) * 2012-01-11 2012-07-25 中国农业大学 Embedded file searching method and embedded file searching system
CN105243086A (en) * 2015-09-08 2016-01-13 北京北大千方科技有限公司 Vehicle information query method and device
US20160299913A1 (en) * 2013-12-06 2016-10-13 Hewlett-Packard Development Company, L.P. File lookup in a file system
CN106557555A (en) * 2016-10-31 2017-04-05 努比亚技术有限公司 media playing method and device
CN107330033A (en) * 2017-06-26 2017-11-07 广东欧珀移动通信有限公司 A kind of searching method of file, device, storage medium and electronic equipment
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937406A (en) * 1997-01-31 1999-08-10 Informix Software, Inc. File system interface to a database
CN102609453A (en) * 2012-01-11 2012-07-25 中国农业大学 Embedded file searching method and embedded file searching system
US20160299913A1 (en) * 2013-12-06 2016-10-13 Hewlett-Packard Development Company, L.P. File lookup in a file system
CN105243086A (en) * 2015-09-08 2016-01-13 北京北大千方科技有限公司 Vehicle information query method and device
CN106557555A (en) * 2016-10-31 2017-04-05 努比亚技术有限公司 media playing method and device
CN107330033A (en) * 2017-06-26 2017-11-07 广东欧珀移动通信有限公司 A kind of searching method of file, device, storage medium and electronic equipment
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
尚成国: "山西科技文献资源整合与数据挖掘技术研究", 31 December 2016, 技术文献出版社, pages: 74 *
王艳芬: "数据库系统与应用", 31 January 2012, 中国矿业大学出版社, pages: 238 - 239 *

Similar Documents

Publication Publication Date Title
US9292347B2 (en) Status tool to expose metadata read and write queues
RU2608668C2 (en) System and method for control and organisation of web-browser cache for offline browsing
US10922743B1 (en) Adaptive performance of actions associated with custom user interface controls
US8078628B2 (en) Streaming faceted search
US20110093478A1 (en) Filter hints for result sets
US11048736B2 (en) Filtering search results using smart tags
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
EP3825865A2 (en) Method and apparatus for processing data
WO2019161620A1 (en) Application dependency update method, terminal and device, and storage medium
US20190197123A1 (en) Metadata storage method, device and server
CN112765104A (en) File saving method, device, equipment and storage medium
WO2019114158A1 (en) Real-time animation display method and device, electronic terminal, and readable storage medium
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
US20110219384A1 (en) Dynamic listener lookup and implementation
CN111125156B (en) Data query method and device and electronic equipment
CN109408265B (en) IOS abnormal operation protection method and device, terminal equipment and storage medium
CN111858581A (en) Page query method and device, storage medium and electronic equipment
CN111914105A (en) File query method and device and electronic equipment
CN108446144B (en) Application program starting method and device, terminal and storage medium
CN110955460A (en) Service process starting method and device, electronic equipment and storage medium
CN110888840A (en) File query method, device, equipment and medium in distributed file system
CN115858668A (en) Distributed transaction processing method, device, electronic device and storage medium
CN113157716B (en) Data processing method, device, equipment and medium
CN116954704A (en) Code branch merging method, device, computer equipment and storage medium
CN112988277A (en) Rule file loading method, device, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination