CN111221781A - Data searching method and device, electronic equipment and system - Google Patents

Data searching method and device, electronic equipment and system Download PDF

Info

Publication number
CN111221781A
CN111221781A CN201811425288.1A CN201811425288A CN111221781A CN 111221781 A CN111221781 A CN 111221781A CN 201811425288 A CN201811425288 A CN 201811425288A CN 111221781 A CN111221781 A CN 111221781A
Authority
CN
China
Prior art keywords
directory
level
name
attribute
file name
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
CN201811425288.1A
Other languages
Chinese (zh)
Other versions
CN111221781B (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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201811425288.1A priority Critical patent/CN111221781B/en
Publication of CN111221781A publication Critical patent/CN111221781A/en
Application granted granted Critical
Publication of CN111221781B publication Critical patent/CN111221781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a data searching method, a data searching device, electronic equipment and a data searching system, wherein the method comprises the following steps: receiving a request for inquiring the next-level directory of the current directory, judging that the next-level directory of the inquired current directory is a file name directory, acquiring attribute information in the path information of the current directory, forming the file name directory and sending the file name directory to the client for displaying. By applying the embodiment of the invention, the user can directly search the required data through the file name directory displayed by the client. Therefore, the required data can be simply and conveniently found from the data searching system, and the user experience is improved.

Description

Data searching method and device, electronic equipment and system
Technical Field
The invention relates to the technical field of data searching of cloud storage systems, in particular to a data searching method, a data searching device, electronic equipment and a data searching system.
Background
The cloud storage system is a large-scale distributed storage system, videos, pictures and the like shot by the camera can be stored in the cloud storage system, however, the capacity of the cloud storage system is huge, so that the data volume stored in the cloud storage system is huge.
Currently, the data search system structure, as shown in fig. 1, includes: a client 101 and a cloud storage server 102. When a user needs to search data in the cloud storage server, a search request containing the query condition is sent to the cloud storage server through the client, and the cloud storage server searches corresponding data according to the query condition and returns the corresponding data to the client. For example: when a user needs to search a needed picture in video pictures captured by a video monitoring camera stored in a cloud storage server, a search request containing a query condition such as shooting time is sent to the cloud storage server through a client, and the cloud storage server searches a corresponding picture according to the query condition and returns the picture to the client. The data searching mode in the prior art needs a user to input the query conditions at the client, and the operation is not simple and convenient enough.
Disclosure of Invention
The embodiment of the invention aims to provide a data searching method, a data searching device, electronic equipment and a data searching system, so that required data can be simply and conveniently searched from a cloud storage system, and user experience is improved.
In order to achieve the above object, an embodiment of the present invention discloses a data search method, which is applied to a network file system server in a data search system, the network file system server being in communication connection with a client and a cloud storage server, and the method includes:
receiving a request for inquiring a next-level directory of a current directory, which is sent by a client; the request comprises path information of the current directory;
determining the directory level of the next-level directory according to the path information of the current directory, and judging whether the next-level directory is a file name directory or not;
if the next-level directory is a file name directory, sending a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server;
according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
respectively generating corresponding path information aiming at each file name to form a file name directory;
and sending the formed file name directory to a client for display.
Optionally, after the step of determining the directory level of the next-level directory according to the path information of the current directory and determining that the next-level directory is not the file name directory, the method further includes:
determining a next-level attribute name corresponding to a next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data;
sending an attribute information query request aiming at the next-level attribute name to a cloud storage server;
acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server;
respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and sending the formed next-level catalog to a client for display.
In order to achieve the above object, an embodiment of the present invention further discloses a data searching method, which is applied to a client communicatively connected to a network file system server in a data searching system, and includes:
sending a request for inquiring a next-level directory of a current directory to a network file system server;
receiving a file name directory returned by a network file system server; the file name directory is as follows: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
and displaying the file name directory.
Optionally, after the step of sending a request for querying a directory next to the current directory to the network file system server, the method further includes:
receiving a next-level directory of a non-file name directory returned by a network file system server; the next-level directory of the non-file name is as follows: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and displaying the next level directory of the non-file name directory.
In order to achieve the above object, an embodiment of the present invention further discloses a data search method, which is applied to a cloud storage server in a data search system, where the cloud storage server is in communication connection with a network file system server, and the method includes:
receiving a request for acquiring attribute information of a specified attribute name, which is sent by the network file system server; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
searching attribute information corresponding to the specified attribute name;
returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
Optionally, the method further includes:
receiving an attribute information query request aiming at the next-level attribute name and sent by a network file system server; the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data;
searching each next-level attribute information corresponding to the next-level attribute name;
returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
In order to achieve the above object, an embodiment of the present invention discloses a data search device, which is applied to a network file system server in a data search system, the network file system server being in communication connection with a client and a cloud storage server, and the data search device includes:
the first receiving module is used for receiving a request for inquiring the next-level catalog of the current catalog, which is sent by the client; the request comprises path information of the current directory;
the first judgment module is used for determining the directory level of the next-level directory according to the path information of the current directory and judging whether the next-level directory is a file name directory or not;
the first acquisition request sending module is used for sending a request for acquiring attribute information of a specified attribute name to the cloud storage server according to the attribute information corresponding to each level of directory in the path information of the current directory when the next level of directory is judged to be the file name directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
the first obtaining module is used for obtaining attribute information corresponding to the specified attribute name returned by the cloud storage server;
the first generation module is used for generating the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset generation rule for generating the file name;
the first forming module is used for respectively generating corresponding path information aiming at each file name to form a file name directory;
and the first directory sending module is used for sending the formed file name directory to the client for display.
Optionally, the apparatus further includes:
the first determining module is used for determining a next-level attribute name corresponding to a next-level directory according to a preset corresponding relation between each directory level above the file name directory level and an attribute name of data when the next-level directory is judged not to be a file name directory;
the first query request sending module is used for sending an attribute information query request aiming at the next-level attribute name to a cloud storage server;
the second obtaining module is used for obtaining each next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server;
the second forming module is used for respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and the second catalog sending module is used for sending the formed next-level catalog to the client for display.
In order to achieve the above object, an embodiment of the present invention further discloses a data searching apparatus, which is applied to a client communicatively connected to a network file system server in a data searching system, and the apparatus includes:
the third inquiry request sending module is used for sending a request for inquiring the next-level directory of the current directory to the network file system server;
the fourth receiving module is used for receiving the file name directory returned by the network file system server; the file name directory is as follows: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
and the first directory display module is used for displaying the file name directory.
Optionally, the apparatus further includes:
the fifth receiving module is used for receiving the next-level directory of the non-file name directory returned by the network file system server after sending a request for inquiring the next-level directory of the current directory to the network file system server; the next-level directory of the non-file name is as follows: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and the second directory display module is used for displaying the next-level directory of the non-file name directory.
In order to achieve the above object, an embodiment of the present invention further discloses a data search device, which is applied to a cloud storage server in a data search system, the cloud storage server being in communication connection with a network file system server, and the device includes:
a sixth receiving module, configured to receive a request for obtaining attribute information of a specified attribute name, where the request is sent by the network file system server; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
the first searching module is used for searching attribute information corresponding to the specified attribute name;
the second returning module is used for returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generating rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
Optionally, the apparatus further includes:
a seventh receiving module, configured to receive an attribute information query request for the next-level attribute name sent by a network file system server; the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data;
the second searching module is used for searching each next-level attribute information corresponding to the next-level attribute name;
a third returning module, configured to return, to the network file system server, each piece of next-level attribute information corresponding to the found next-level attribute name; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
In order to achieve the above object, an embodiment of the present invention further discloses a data searching system, including:
the system comprises a network file system server, client equipment and a cloud storage server;
the network file system server is in communication connection with the client and the cloud storage server respectively and is used for receiving a request sent by the client for inquiring a next-level directory of the current directory, determining the directory level of the next-level directory according to the path information of the current directory, judging whether the next-level directory is a file name directory or not, and if the next-level directory is the file name directory, sending a request for acquiring attribute information of a specified attribute name to the cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory; sending the formed file name directory to a client for display;
the client is in communication connection with the network file system server and is used for sending a request for inquiring the next-level directory of the current directory to the network file system server; receiving a file name directory returned by a network file system server; displaying the file name directory;
the cloud storage server is in communication connection with the network file system server and is used for receiving a request for acquiring attribute information of a specified attribute name, which is sent by the network file system server; searching attribute information corresponding to the specified attribute name; returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
Optionally, the network file system server is further configured to determine, after determining a directory level of a next-level directory according to the path information of the current directory and determining that the next-level directory is not a file name directory, a next-level attribute name corresponding to the next-level directory according to a preset corresponding relationship between each directory level above the file name directory level and an attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; sending the formed next-level catalog to a client for display;
the client is also used for receiving the next-level directory of the non-file name directory returned by the network file system server after sending a request for inquiring the next-level directory of the current directory to the network file system server; displaying a next-level directory of the non-filename directory;
the cloud storage server is further used for receiving an attribute information query request aiming at the next-level attribute name and sent by a network file system server; searching each next-level attribute information corresponding to the next-level attribute name; returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
According to the data searching method, the data searching device, the electronic equipment and the data searching system, the request for inquiring the next-level directory of the current directory is received, when the next-level directory of the inquired current directory is judged to be the file name directory, the attribute information in the path information of the current directory is obtained, and the file name directory is formed and sent to the client side for displaying. The user can directly search the needed data through the file name directory displayed by the client. Therefore, required data can be simply found out from the cloud storage system, and user experience is improved.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a diagram illustrating a data search system according to the prior art;
fig. 2 is a schematic structural diagram of a data search system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a data searching method applied to a network file system server according to an embodiment of the present invention;
FIGS. 4a and 4b are schematic diagrams of a formed file name directory according to an embodiment of the present invention;
FIGS. 5a and 5b are schematic diagrams of a formed non-filename directory provided by an embodiment of the present invention;
FIG. 6 is another flowchart illustrating a data searching method applied to a network file system server according to an embodiment of the present invention;
FIG. 7 is a flowchart of a network file system server for implementing data download according to an embodiment of the present invention;
FIG. 8 is a flowchart of a network file system server implementing a directory update in an embodiment of the present invention;
fig. 9 is a flowchart of a data searching method applied to a client according to an embodiment of the present invention;
fig. 10 is a flowchart of a data searching method applied to a cloud storage server according to an embodiment of the present invention;
FIGS. 11 a-g are interaction illustrations of processes for forming various levels of directories and implementing data downloading according to an embodiment of the present invention;
FIG. 12 is a block diagram of an apparatus for searching data in a network file system server according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an apparatus for data search applied to a client according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus for data search applied to a cloud storage server according to an embodiment of the present invention;
FIG. 15 is a diagram illustrating a network file system server according to an embodiment of the present invention;
fig. 16 is a schematic diagram of a client device according to an embodiment of the present invention;
fig. 17 is a schematic diagram of a cloud storage server according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a data searching method, apparatus, electronic device and system. First, a data searching method provided by an embodiment of the present invention is described below.
As shown in fig. 2, fig. 2 is a data searching system provided in an embodiment of the present invention, where the system includes: the data search system comprises clients 201, a cloud storage server 202 and a network file system server 203, wherein the clients and the cloud storage server are respectively in communication connection with the network file system server, each client in the data search system can be connected with a network file system server 1 and/or a network file system server 2, and the network file system server 1 and the network file system server 2 can obtain data from the cloud storage server.
The network file system server may be a gateway node. One or more network file system servers may be included in the data lookup system. More than one network file system server works in a cluster mode, each network file system server has the same function, and if the network file system server of the current node has a fault, the network file system server is automatically switched to other network file system servers to work. The client side does not look like the difference, and the phenomenon that the whole system is unavailable due to single-point failure can be avoided.
As shown in fig. 3, fig. 3 is a schematic flow chart of the data search method applied to a network file system server in a data search system, where the network file system server is in communication connection with a client and a cloud storage server respectively, and the method may include:
s301: receiving a request for inquiring a next-level directory of a current directory, which is sent by a client; the request comprises path information of the current directory;
in practical application, before receiving a request for querying a next-level directory of a current directory sent by a client, a communication connection may be established with the client, and a preset root directory is sent to the client. The communication connection with the client is established, and the user may input a user name and a password at the client, and log in to a Network File System server through a third party Protocol CIFS (Common internet File System)/NFS (Network File System)/FTP (File transfer Protocol); and after the login is successful, the network file system server sends the preset root directory to the client.
S302: determining the directory level of the next-level directory according to the path information of the current directory, and judging whether the next-level directory is a file name directory or not; if the next-level directory is the file name directory, executing the step S303;
in practical application, the directory level of the next-level directory is determined according to the path information of the current directory, and whether the next-level directory is a file name directory is determined.
S303: sending a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
s304: acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server;
in practical application, if the data is a monitoring picture captured by a road monitoring camera, the specified attribute name may be metadata information of the picture such as URL information, a timestamp, a license plate number, a license plate color, or a picture type.
S305: according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
in practical applications, a characteristic value may be calculated for the obtained attribute information corresponding to the specified attribute name, for example, an MD5 (message-Digest Algorithm 5) value may be calculated for the obtained attribute information corresponding to the specified attribute name URL (Uniform Resource Locator) information.
According to a preset file name generation rule, sequentially using an MD5 value, a timestamp, a license plate number, a license plate color and picture type information to generate file names of all data; since the URL information of each picture is unique, the picture corresponding to each MD5 value is unique. And often contain the special symbol in the URL information, is not suitable for in the file name, and does not contain the special symbol in MD5 value, MD5 value calculated through URL information is used for producing the file name, has also guaranteed the uniqueness of the file name.
The preset file name generation rule may be: so as to: MD5 value _ timestamp _ license plate number _ license plate color picture type, such file name format generates a file name. The license plate number and the color of the license plate can be replaced by other attribute names, such as the height of a pedestrian; the picture type can be in jpg, bmp or png format.
S306: respectively generating corresponding path information aiming at each file name to form a file name directory;
s307: and sending the formed file name directory to a client for display.
In practical applications, the file name directory displayed on the client may be as shown in fig. 4a, when the selected directory "/video pool 1/encoder 1/201810/15/0800-0900" is selected, two file name directories included under the currently selected directory are displayed, one of the file name directories "sadfsadf 1_201810150830_ jaw a505U8_ blue. jpg" is selected, and specific picture data of a picture named "sadfsadf 1_201810150830_ jaw a505U8_ blue. jpg" may be viewed.
The file name directory displayed on the client can also be as shown in fig. 4b, and similar to the principle of fig. 4a, the click directory "/video pool 1/encoder 1/201810/15/0800-0900/sadfsadf1_201810150830_ a505U8_ blue. jpg" displays specific picture data.
By applying the embodiment shown in fig. 3, for a directory in which the next-level directory is a file name directory, file names of respective data are generated according to the file name generation rule, thereby forming a file name directory. When a user needs to search the data information, the file name directory is selected to search the data information, and the user does not need to input a query condition at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
In an embodiment, if the next-level directory is not a file name directory, after determining that the next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to a corresponding relationship between each directory level above a preset file name directory level and an attribute name of data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; and sending the formed next-level catalog to a client for display.
For example, if the data is a monitoring picture captured by a road monitoring camera, the corresponding relationship between each preset file name directory level and the attribute name of the data may be: the attribute name of the data corresponding to the primary directory is: a video pool identifier, such as video pool 1, video pool 2; the attribute name of the data corresponding to the secondary directory is: encoder identification, such as encoder 1, encoder 2; the attribute names of the data corresponding to the third-level directory are as follows: a year and month attribute such as 201808, representing 2018, 08, 201809, representing 2018, 09; the attribute names of the data corresponding to the four-level directory are: a day attribute, such as 15, representing 15 days, 16 days of a month; the attribute names of the data corresponding to the five-level directory are: the time period attributes, such as 0800-; the attribute names of the data corresponding to the six-level directory are: file name attributes such as sadfsadf1_201810150830_ jaw a505U8_ blue. jpg, sadfgadf1_201810150830_ shan a402D6_ black. jpg.
The obtaining of each piece of next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server may be obtaining of each piece of next-level attribute information corresponding to the video pool ID returned by the cloud storage server, for example: the method includes the following steps that a video pool 1, a video pool 2, a video pool 3 and the like are obtained, or each next-level attribute information corresponding to an encoder ID returned by a cloud storage server is obtained, for example: encoder 1, encoder 2, encoder 3, etc.
The non-filename directory displayed at the client may be as shown in fig. 5a, with the root directory "/" selected and the client displaying: the system comprises a video pool 1, a video pool 2 and a video pool 3; selecting the directory "/video pool 1", the client displays: encoder 1, encoder 2 and encoder 3; selecting directory "/video pool 1/encoder 1", client displays: 201808, 201809, and 201810; selecting directory "/video pool 1/encoder 1/201808", the client displays: 0800-0900, 0900-1000 and 1000-1100.
The non-file name directory displayed on the client may also be as shown in fig. 5b, which is similar to the principle of fig. 5a and will not be described herein again.
In this embodiment, for a directory whose next-level directory is not a file name directory, attribute information for forming the next-level directory is obtained according to path information corresponding to the next-level folder, and the next-level directory is formed and sent to the client for display. When a user needs to search the data information, the corresponding hierarchical directory is selected to search the data information, and the user does not need to input query conditions at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
Further, another flowchart of the data search method applied to a network file system server in a data search system, where the network file system server is in communication connection with a client and a cloud storage server, is provided in an embodiment of the present invention, as shown in fig. 6, after a next-level directory or a file name directory is formed each time, the next-level directory or the file name directory may be stored, and a directory displayed at the client is determined by determining whether the next-level directory of a current directory to be queried is a directory already stored. Specifically, the method may include:
s601: receiving a request for inquiring a next-level directory of a current directory, which is sent by a client;
s602: determining the directory level of the next-level directory according to the path information of the current directory, and judging whether the next-level directory is a file name directory or not; if the next-level directory is not the file name directory, executing step S603; if the next level directory is the file name directory, executing step S605;
in practical application, when a request for inquiring a next-level directory of a root directory or a directory selected by a user in a current directory sent by a client is received, whether the next-level directory to be inquired is a file name directory is judged, and if the next-level directory to be inquired is not the file name directory, whether the next-level directory to be inquired is stored is judged; if the directory is the file name directory, whether the directory of the file name to be inquired is stored is judged.
S603: judging whether the next-level directory of the query is stored or not; if the next-level directory of the query has already been saved, executing S604; if the inquired next-level directory is not stored, executing the step of forming the next-level directory;
in practical application, if the next-level directory to be inquired is judged not to be stored, executing the step of forming the next-level directory, namely determining the next-level attribute name corresponding to the next-level directory according to the corresponding relation between each directory level above the preset file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; and sending the formed next-level catalog to a client for display.
S604: sending the stored next-level catalog as the current catalog to the client for display;
s605: judging whether the inquired file name directory is stored or not; if the queried file name directory has already been saved, executing S606; if the inquired file name directory is not saved, executing steps S303-S307 in FIG. 3;
in practical application, if it is determined that the directory of the filename to be queried is not stored, the directory of the filename is formed according to steps S303 to S307 in fig. 3, and is sent to the client for display.
S606: and sending the stored file name directory to the client for display.
By applying the embodiment shown in fig. 6, after the next-level directory or the file name directory is formed each time, the next-level directory or the file name directory is saved, and when a request for querying the next-level directory or the file name directory of the current directory is received again, the saved next-level directory or the file name directory is sent to the client as the current directory to be displayed. Since the directory to be searched does not need to be reformed every time, the search time is saved when the user needs to search for data. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
Furthermore, an embodiment of the present invention provides a flowchart of a network file system server for implementing data downloading, where on the basis of forming a directory and displaying the directory to a client, a data downloading request sent by the client is received, data to be downloaded is acquired from a cloud storage server at one time and stored in a built-in cache module, and the data is sequentially called back to the client according to a rule of calling back a data volume by a fuse file system. Specifically, as shown in fig. 7, the method may include:
s701: receiving a data downloading request sent by a client; the data download request comprises: a file name selected by a user in the file name directory;
s702: judging whether target data content information corresponding to the file name contained in the data downloading request is stored or not; if the target data content information corresponding to the file name contained in the data downloading request is stored, executing S706; if the target data content information corresponding to the file name contained in the data downloading request is not saved, executing the steps of S703-S706;
in practical application, the target data content information corresponding to the file name included in the stored data download may be the target data content information stored in the cache module when the target data content information is downloaded last time; the data content information returned by the cloud storage server can also be obtained while the attribute information corresponding to the specified attribute name returned by the cloud storage server is obtained.
S703: acquiring attribute information corresponding to a specified attribute name corresponding to the file name from the file name according to a preset file name generation rule;
s704: sending a request for acquiring data to a cloud storage server; the request for obtaining data includes: attribute information corresponding to the specified attribute name corresponding to the file name;
s705: receiving target data content information corresponding to the file name returned by the cloud storage server, and storing the target data content information in a built-in cache module;
s706: and splitting the stored target data content information into a plurality of target data blocks according to the rule of the network file system for calling back the data volume, and calling back the target data blocks to the client side in sequence.
In practical application, the network file system is a fuse file system; the callback data size may be 32KB of data of each callback of the fuse file system.
By applying the embodiment shown in fig. 7, when a data download request is received, it is determined whether the data content information is stored, and if the data content information is stored, the data content information is sequentially called back to the client according to the rule of calling back the data volume by the fuse file system; and if the data content information is not stored, acquiring the data content information from the cloud storage server, storing the data content information into a built-in cache module, and then sequentially calling back to the client according to the rule of calling back the data volume of the fuse file system. Therefore, the data is prevented from being read from the cloud storage server once every callback when the user downloads the data, the file reading speed is increased, and the downloading efficiency after the user finds the data is improved.
In an embodiment, the data to be downloaded may be acquired from the cloud storage server each time when the data download request sent by the client is received, and the acquired data is returned to the client. Specifically, the method may include:
receiving a data downloading request sent by a client; the data downloading request comprises: a file name selected by a user in the file name directory; acquiring attribute information corresponding to a specified attribute name corresponding to the file name from the file name according to the preset file name generation rule; sending a data acquisition request to the cloud storage server; the data acquisition request includes: attribute information corresponding to the specified attribute name corresponding to the file name; and receiving target data content information corresponding to the file name returned by the cloud storage server, and returning the target data content information to the client.
In practical application, the data downloading request sent by the client is received, the data downloading request is sent after the client selects the file name directory on the basis that the file name directory is displayed on the client, and the data downloading request cannot be received if the client does not select the file name directory.
In the embodiment, when a data downloading request sent by a client is received, data to be downloaded is acquired from a cloud storage server and returned to the client. Since the data download is performed only when the file name is selected, the data download is not performed for the directory level directory above the selected file name. Therefore, the file reading speed is improved, and the experience of a user for searching data is also improved.
Furthermore, the embodiment of the present invention provides a flowchart of a network file system server when updating a directory, after a client displays a formed directory, when a user needs to refresh the directory, the client may select a file name corresponding to data to be refreshed for refreshing. Specifically, as shown in fig. 8, the method may include:
s801: receiving a directory refreshing request aiming at a current directory sent by a client;
s802: judging whether the current directory is a file name directory or not; if the current directory is not the file name directory, executing S803-S807; if the current directory is a file name directory, executing S808-S812;
s803: determining a target attribute name corresponding to the current directory according to the corresponding relation between each directory level above a preset file name directory level and the attribute name of the data;
s804: sending an attribute information query request aiming at a target attribute name to a cloud storage server;
s805: acquiring target attribute information corresponding to the target attribute name returned by the cloud storage server;
s806: respectively updating the corresponding target directory and the path information of each target directory aiming at each target attribute information to form an updated directory of the current directory;
s807: sending the formed updated directory as the current directory to the client for display;
s808: sending a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
s809: acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server;
s810: according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
s811: respectively generating corresponding path information aiming at each file name to form an updated file name directory;
s812: and sending the formed updated file name directory to the client for display.
By applying the embodiment shown in fig. 8, the directory is refreshed, and the data corresponding to the directory is updated, so that the user can find the updated data, and thus, the required data can be simply found from the cloud storage system, and the user experience is improved.
Further, an embodiment of the present invention provides a flowchart of a data searching method applied to a client communicatively connected to a network file system server in a data searching system, as shown in fig. 9, where the method may include:
s901: sending a request for inquiring a next-level directory of a current directory to a network file system server;
in practical application, before sending a request for querying a next-level directory of a current directory to a network file system server, a communication connection may be established with the network file system server, and a preset root directory sent by the network file system server is received and displayed; then, whether the directory name in the root directory or the current directory is selected by the user is judged. If the directory name in the root directory or the current directory is selected by the user, a request for querying the next level directory of the currently selected directory is sent to the network file system server.
S902: receiving a file name directory returned by a network file system server;
in practical application, the file name directory is: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
s903: and displaying the file name directory.
By applying the embodiment shown in fig. 9, a request for querying the next-level directory of the current directory is sent to the network file system server, and the file name directory returned by the network file system server is received and displayed. When a user needs to search the data information, the displayed file name directory is selected to search the data information, and the user does not need to input query conditions at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
In one embodiment, after sending a request to a network file system server to query a next level directory of a current directory, receiving a next level directory of a non-filename directory returned by the network file system server; and displaying the next level directory of the non-file name directory.
Wherein, the next-level directory of the non-file name is: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; and respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory.
In this embodiment, a non-filename directory returned by the network file system server is received and displayed. When a user needs to search the data information, the displayed hierarchical directory is selected to search the data information, and the user does not need to input query conditions at a client, so that the data searching operation is simpler and more convenient, and the user experience is improved.
Further, as shown in fig. 10, fig. 10 is a schematic flow chart of the data searching method applied to a cloud storage server in communication connection with a network file system server in a data searching system according to the embodiment of the present invention, and the method may include:
s1001: receiving a request for acquiring attribute information of a specified attribute name sent by a network file system server;
in practical applications, the attribute names are specified as: and one or more preset attribute names of file names used for generating data.
S1002: searching attribute information corresponding to the specified attribute name;
in practical application, a corresponding function module of an SDK (Software Development Kit) interface may be called to search for attribute information corresponding to a specified attribute name.
S1003: and returning the attribute information corresponding to the searched specified attribute name to the network file system server.
In practical application, returning the found attribute information corresponding to the specified attribute name to the network file system server, so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
By applying the embodiment shown in fig. 10, the request for querying the attribute information sent by the network file system server is received, and the found attribute information is returned to the network file system server, so that the network file system server forms the file name directory and sends the file name directory to the client for display. When a user needs to search data, the data can be searched according to the file name directory displayed by the current client, and the search of query conditions does not need to be input at the client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
In an embodiment, an attribute information query request for the next-level attribute name sent by a network file system server may also be received; searching each next-level attribute information corresponding to the next-level attribute name; and returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server.
In one case, the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data.
Returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server so that the network file system server respectively generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; and sending the formed next-level catalog to a client for display.
In this embodiment, a request for querying attribute information of a next-level attribute name, which is sent by a network file system server, is received, and each piece of next-level attribute information corresponding to the found next-level attribute name is returned to the network file system server, so that the network file system server forms a next-level directory and sends the next-level directory to a client for display. When a user needs to search data, the data can be searched according to the hierarchy directory displayed by the current client, and the search of query conditions does not need to be input at the client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
The following describes the data searching method according to the embodiment of the present invention in detail by taking the monitoring picture data captured by the road monitoring camera as an example.
The data search non-filename directory structure provided by this embodiment is shown in fig. 5a or 5b, and the filename directory is shown in fig. 4a or 4 b. Wherein the content of the first and second substances,
the process of forming the video pool directory is shown in fig. 11a, and includes:
step 1, a root directory displayed by a client is selected by a user, and a request for inquiring the next level directory (video pool ID directory) of the root directory is sent to a gateway node, wherein the request comprises the path information of the root directory; step 2, the gateway node, namely the network file system server, receives the request and analyzes the path information of the root directory contained in the request; step 3, the gateway node sends a request for acquiring the ID information of the video pool to a cloud storage server, wherein the request comprises the path information of the root directory obtained by analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire the ID information of the video pool contained in all the root directories, and returns the ID information to the gateway node; step 5, the gateway node receives the returned ID information of all the video pools; step 6, the gateway node respectively generates a video pool directory name and a corresponding video pool path for each received video pool ID information to form a video pool directory; and 7, returning the formed video pool directory to the client.
The process of forming the encoder directory is shown in fig. 11b, and includes:
step 1, a certain video pool directory displayed by a client is selected by a user, and a request for inquiring the next-level directory (encoder ID directory) of the video pool directory is sent to a gateway node, wherein the request comprises path information of the video pool directory; step 2, the gateway node receives the request and analyzes the path information of the video pool directory contained in the request; step 3, the gateway node sends a request for acquiring encoder ID information to a cloud storage server, wherein the request comprises the path information of the video pool directory obtained by analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire all encoder ID information contained in the video pool directory, and returns the encoder ID information to the gateway node; step 5, the gateway node receives all returned encoder ID information; step 6, the gateway node respectively generates an encoder directory name and a corresponding encoder path for each received encoder ID information to form an encoder directory; and 7, returning the formed encoder directory to the client.
The process of forming the year and month table of contents is shown in FIG. 11c, and includes:
step 1, a certain encoder directory displayed by a client is selected by a user, and a request for inquiring a next-level directory (a year-month directory) of the encoder directory is sent to a gateway node, wherein the request comprises path information of the encoder directory; step 2, the gateway node receives the request and analyzes the path information of the encoder directory contained in the request; step 3, the gateway node sends a request for acquiring year and month information to a cloud storage server, wherein the request comprises the path information of the encoder directory obtained by analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire the year and month information contained in all the encoder catalogs, and returns the year and month information to the gateway node; step 5, the gateway node receives all returned information of the year and the month; step 6, the gateway node respectively generates a month directory name and a corresponding month path for each received month information to form a month directory; and 7, returning the formed year and month catalog to the client.
The process of forming the day directory is shown in FIG. 11d, and includes:
step 1, a certain month and year catalog displayed by a client is selected by a user, and a request for inquiring a next-level catalog (a day catalog) of the month and year catalog is sent to a gateway node, wherein the request comprises path information of the month and year catalog; step 2, the gateway node receives the request and analyzes the path information of the year and month catalog contained in the request; step 3, the gateway node sends a request for acquiring day information to a cloud storage server, wherein the request comprises the analyzed path information of the year and month catalog; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire all the day information contained in the year and month catalog, and returns the day information to the gateway node; step 5, the gateway node receives the returned all-day information; step 6, the gateway node respectively generates a day directory name and a corresponding day path for each piece of received day information to form a day directory; and 7, returning the formed skatechome records to the client.
The process of forming the time period list is shown in fig. 11e, and includes:
step 1, a certain day directory displayed by a client is selected by a user, and a request for inquiring a next-level directory (time period directory) of the day directory is sent to a gateway node, wherein the request comprises path information of the day directory; step 2, the gateway node receives the request and analyzes the path information of the day directory contained in the request; step 3, the gateway node sends a request for acquiring time period information to a cloud storage server, wherein the request comprises the path information of the day directory obtained through analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire time period information contained in all the day directories, and returns the time period information to the gateway node; step 5, the gateway node receives all returned time period information; step 6, the gateway node respectively generates a time period directory name and a corresponding time period path for each received time period information to form a time period directory; and 7, returning the formed time slot catalog to the client.
The process of forming the file name directory is shown in fig. 11f, and includes:
step 1, a certain time period directory displayed by a client is selected by a user, and a request for inquiring a next-level directory (file name directory) of the time period directory is sent to a gateway node, wherein the request comprises path information of the time period directory; step 2, the gateway node receives the request and analyzes the path information of the time period directory contained in the request; step 3, the gateway node sends a request for acquiring attribute information used for generating a file name to a cloud storage server, wherein the request comprises the path information of the time period directory obtained through analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire attribute information for all generated file names contained in the time slot directory, and returns the attribute information to the gateway node; step 5, the gateway node receives all returned attribute information used for generating the file names; step 6, the gateway node generates file names of all data by using the received attribute information according to a preset file name generation rule, and generates corresponding path information aiming at each file name to form a file name directory; and 7, returning the formed file name directory to the client.
The process of implementing downloading data is shown in fig. 11g, and includes:
step 1, a certain file name directory displayed by a client is selected by a user, and a data downloading request is sent to a gateway node, wherein the request comprises the file name selected by the user in the file name directory; step 2, the gateway node receives the request and analyzes the file name information contained in the request; step 3, the gateway node sends a request for acquiring data to the cloud storage server, wherein the request comprises attribute information corresponding to the file name information obtained through analysis; step 4, the cloud storage server receives the request sent by the gateway node, calls an SDK interface to inquire target data content information corresponding to all the file name information, and returns the target data content information to the gateway node; step 5, the gateway node receives the returned target data content information; step 6, the gateway node stores the content information of the target data into a built-in cache module; and 7, the gateway node divides the stored target data content information into a plurality of target data blocks according to the rule of the network file system for calling back the data volume, and returns the target data blocks to the client in sequence.
Corresponding to the method embodiment shown in fig. 3, an embodiment of the present invention further provides a data search apparatus, which is applied to a network file system server in a data search system, where the network file system server is in communication connection with a client and a cloud storage server, and as shown in fig. 12, the apparatus may include:
a first receiving module 1201, configured to receive a request for querying a next-level directory of a current directory, where the request is sent by a client; the request comprises path information of the current directory;
a first determining module 1202, configured to determine a directory level of a next-level directory according to path information of a current directory, and determine whether the next-level directory is a file name directory;
a first obtaining request sending module 1203, configured to send, when it is determined that the next-level directory is the file name directory, a request for obtaining attribute information of a specified attribute name to the cloud storage server according to attribute information corresponding to each level of directories in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
a first obtaining module 1204, configured to obtain attribute information corresponding to the specified attribute name returned by the cloud storage server;
a first generating module 1205, configured to generate, according to a preset generating rule for generating a file name, a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
a first forming module 1206, configured to generate corresponding path information for each file name, and form a file name directory;
a first directory sending module 1207, configured to send the formed file name directory to the client for display.
Specifically, in this embodiment, the apparatus may further include:
a first determining module (not shown in the figure), configured to determine, when it is determined that the next-level directory is not the filename directory, a next-level attribute name corresponding to the next-level directory according to a preset correspondence between each directory level above the filename directory level and an attribute name of the data;
a first query request sending module (not shown in the figure) configured to send an attribute information query request for the next-level attribute name to a cloud storage server;
a second obtaining module (not shown in the figure) for obtaining each next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server;
a second forming module (not shown in the figure) for respectively generating a corresponding next-level directory name and path information of each next-level directory name for each next-level attribute information to form a next-level directory;
and a second directory sending module (not shown) for sending the formed next-level directory to the client for display.
By applying the embodiment shown in fig. 12, for a directory in which the next-level directory is a file name directory, file names of respective data are generated according to a preset file name generation rule, thereby forming a file name directory. When a user needs to search the data information, the file name directory is selected to search the data information, and the user does not need to input a query condition at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
Corresponding to the method embodiment shown in fig. 9, an embodiment of the present invention further provides a data searching apparatus, which is applied to a client communicatively connected to a network file system server in a data searching system, and as shown in fig. 13, the apparatus may include:
a third query request sending module 1301, configured to send a request for querying a next-level directory of the current directory to the network file system server;
a fourth receiving module 1302, configured to receive a file name directory returned by the network file system server; the file name directory is as follows: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
the first directory displaying module 1303 is configured to display the file name directory.
Specifically, in this embodiment, the apparatus may further include:
a fifth receiving module (not shown in the figure), configured to receive a next-level directory, which is not a file name directory, returned by the network file system server after sending a request for querying a next-level directory of the current directory to the network file system server; the next-level directory of the non-file name is as follows: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and a second directory display module (not shown) for displaying the next level directory of the non-filename directory.
By applying the embodiment shown in fig. 13, a request for querying the next-level directory of the current directory is sent to the network file system server, and the next-level directory returned by the network file system server is received and displayed. When a user needs to search the data information, the displayed file name directory is selected to search the data information, and the user does not need to input query conditions at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
Corresponding to the method embodiment shown in fig. 10, an embodiment of the present invention further provides a data search apparatus, which is applied to a cloud storage server in a data search system, where the cloud storage server is in communication connection with a network file system server, and as shown in fig. 14, the apparatus may include:
a sixth receiving module 1401, configured to receive a request for obtaining attribute information of a specified attribute name, where the request is sent by the network file system server; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
a first searching module 1402, configured to search for attribute information corresponding to a specified attribute name;
a second returning module 1403, configured to return the found attribute information corresponding to the specified attribute name to the network file system server, so that the network file system server generates a file name of each data according to a preset file name generation rule and using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
Specifically, in this embodiment, the apparatus may further include:
a seventh receiving module (not shown in the figure), configured to receive an attribute information query request for the next-level attribute name, where the attribute information query request is sent by a network file system server; the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data;
the second searching module (not marked in the figure) is used for searching each next-level attribute information corresponding to the next-level attribute name;
a third returning module (not shown in the figure) for returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
By applying the embodiment shown in fig. 14, the request for querying the attribute information sent by the network file system server is received, and the found attribute information is returned to the network file system server, so that the network file system server forms the file name directory and sends the file name directory to the client for display. When a user needs to search data, the data can be directly searched according to the directory displayed by the current client, and the user does not need to input query conditions to search. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
The embodiment of the present invention further provides a network file system server, as shown in fig. 15, which includes a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504, wherein the processor 1501, the communication interface 1502, and the memory 1503 complete communication with each other through the communication bus 1504,
a memory 1503 for storing a computer program;
a communication interface 1502, configured to be in communication connection with a client and a cloud storage server in the data search system respectively;
the processor 1501 is configured to implement a data search method applied to a network file system server in a data search system, where the network file system server is in communication connection with a client and a cloud storage server, respectively, when executing a program stored in the memory 1503.
As can be seen, in the scheme provided in the embodiment of the present invention, for a directory in which the next-level directory is a file name directory, the file name of each data is generated according to the preset file name generation rule, so as to form a file name directory. When a user needs to search the data information, the file name directory is selected to search the data information, and the user does not need to input a query condition at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
An embodiment of the present invention further provides a client device, as shown in fig. 16, including a processor 1601, a communication interface 1602, a memory 1603, and a communication bus 1604, where the processor 1601, the communication interface 1602, and the memory 1603 complete communication with each other via the communication bus 1604,
a memory 1603 for storing a computer program;
a communication interface 1602 for communicative connection with a network file system server;
the processor 1601 is configured to implement a data search method applied to a client communicatively connected to a network file system server in a data search system when executing a program stored in the memory 1603.
Therefore, in the scheme provided by the embodiment of the invention, the file name directory returned by the network file system server is received and displayed by sending the request for inquiring the next-level directory of the current directory to the network file system server. When a user needs to search the data information, the displayed file name directory is selected to search the data information, and the user does not need to input query conditions at a client. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
The embodiment of the present invention further provides a cloud storage server, as shown in fig. 17, including a processor 1701, a communication interface 1702, a memory 1703 and a communication bus 1704, where the processor 1701, the communication interface 1702 and the memory 1703 complete communication with each other through the communication bus 1704,
a memory 1703 for storing a computer program;
a communication interface 1702 for communicatively coupling with a network file system server;
the processor 1701 is configured to implement a data search method applied to a cloud storage server communicatively connected to a network file system server in the data search system when executing a program stored in the memory 1703.
Therefore, in the scheme provided by the embodiment of the invention, the request for inquiring the attribute information sent by the network file system server is received, and the searched attribute information is returned to the network file system server, so that the network file system server forms the file name directory and sends the file name directory to the client for displaying. When a user needs to search data, the data can be directly searched according to the directory displayed by the current client, and the user does not need to input query conditions to search. Therefore, the data searching operation is simpler and more convenient, and the user experience is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The present invention also provides a data search system, as shown in fig. 2, the system includes: the system comprises a network file system server, client equipment and a cloud storage server.
The network file system server can be used for receiving a request sent by a client for inquiring a next-level directory of a current directory, determining the directory level of the next-level directory according to the path information of the current directory, judging whether the next-level directory is a file name directory, and if the next-level directory is the file name directory, sending a request for acquiring attribute information of a specified attribute name to the cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory; sending the formed file name directory to a client for display;
the method can also be used for determining the directory level of the next-level directory according to the path information of the current directory, determining the next-level attribute name corresponding to the next-level directory according to the corresponding relation between each directory level above the preset file name directory level and the attribute name of the data after judging that the next-level directory is not the file name directory; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; sending the formed next-level catalog to a client for display;
the client is used for sending a request for inquiring the next-level directory of the current directory to the network file system server; receiving a file name directory returned by a network file system server; displaying a file name directory;
the method can also be used for receiving the next-level directory of the non-file name directory returned by the network file system server after sending a request for inquiring the next-level directory of the current directory to the network file system server; displaying a next-level directory other than the file name directory;
the cloud storage server is used for receiving a request for acquiring the attribute information of the specified attribute name, which is sent by the network file system server; searching attribute information corresponding to the specified attribute name; returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; sending the formed file name directory to a client for display;
the system is also used for receiving an attribute information query request aiming at the next-level attribute name and sent by a network file system server; searching each next-level attribute information corresponding to the next-level attribute name; returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
In another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the data searching method in any one of the above embodiments.
In yet another embodiment, the present invention further provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the data lookup method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (22)

1. A data searching method is applied to a network file system server which is respectively in communication connection with a client and a cloud storage server in a data searching system, and comprises the following steps:
receiving a request for inquiring a next-level directory of a current directory, which is sent by a client; the request comprises path information of the current directory;
determining the directory level of the next-level directory according to the path information of the current directory, and judging whether the next-level directory is a file name directory or not;
if the next-level directory is a file name directory, sending a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server;
according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
respectively generating corresponding path information aiming at each file name to form a file name directory;
and sending the formed file name directory to a client for display.
2. The method according to claim 1, wherein after the step of determining the directory level of the next-level directory according to the path information of the current directory and determining that the next-level directory is not the file name directory, the method further comprises:
determining a next-level attribute name corresponding to a next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data;
sending an attribute information query request aiming at the next-level attribute name to a cloud storage server;
acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server;
respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and sending the formed next-level catalog to a client for display.
3. The method of claim 2,
before the step of receiving a request for querying a next-level directory of a current directory sent by a client, the method further includes:
after communication connection is established with the client, sending a preset root directory to the client;
the step of receiving a request for querying a next-level directory of a current directory, which is sent by a client, includes:
receiving a request sent by a client for inquiring a next-level directory of the root directory after the root directory is selected by a user; or the like, or, alternatively,
and receiving a request for inquiring the next-level directory sent by the client after the directory name in the current directory is selected by the user.
4. The method of claim 1,
the step of determining the directory level of the next-level directory according to the path information of the current directory and judging whether the next-level directory is a file name directory or not comprises the following steps:
and determining whether the next-level directory is a file name directory or not according to the path information of the current directory and preset directory level information.
5. The method of claim 2, wherein the next level directory is saved after each time the next level directory is formed; after a file name directory is formed each time, the generated file name directory is saved;
before the step of sending the attribute information query request for the next-level attribute name to the cloud storage server, the method further includes:
judging whether the next-level directory of the query is stored or not;
if the inquired next-level directory is stored, the stored next-level directory is used as a current directory and sent to the client side to be displayed;
if the inquired next-level directory is not stored, executing the step of sending an attribute information inquiry request aiming at the next-level attribute name to a cloud storage server;
before the step of sending a request for obtaining attribute information of a specified attribute name to the cloud storage server according to the attribute information corresponding to each level of directory in the path information of the current directory, the method further includes:
judging whether the inquired file name directory is stored or not;
if the inquired file name directory is stored, sending the stored file name directory to a client for displaying;
and if the inquired file name directory is not stored, executing the attribute information corresponding to each level of directory in the path information of the current directory, and sending a request for acquiring the attribute information of the specified attribute name to the cloud storage server.
6. The method of claim 1, further comprising:
receiving a data downloading request sent by a client; the data downloading request comprises: a file name selected by a user in the file name directory;
acquiring attribute information of the appointed attribute name of the data corresponding to the file name from the file name according to the preset file name generation rule;
sending a data acquisition request to the cloud storage server; the data acquisition request includes: attribute information corresponding to the specified attribute name corresponding to the file name;
and receiving target data content information corresponding to the file name returned by the cloud storage server, and returning the target data content information to the client.
7. The method of claim 6,
the step of obtaining the attribute information corresponding to the specified attribute name returned by the cloud storage server includes:
receiving attribute information corresponding to the specified attribute name returned by the cloud storage server and all data content information with the attribute information;
after the file name of each data is generated, the file name and the corresponding data content information are correspondingly stored;
before the step of obtaining the attribute information of the specified attribute name of the data corresponding to the file name from the file name according to the preset file name generation rule, the method further includes:
judging whether target data content information corresponding to the file name contained in the data downloading request is stored or not;
if the target data content information corresponding to the file name contained in the data downloading request is stored, returning the stored target data content information to the client;
and if the target data content information corresponding to the file name contained in the data downloading request is not stored, executing the step of obtaining the attribute information of the appointed attribute name of the data corresponding to the file name from the file name according to the preset file name generation rule.
8. The method of claim 7,
the network file system is a fuse file system;
the step of returning the stored target data content information to the client comprises the following steps:
splitting the target data content information into a plurality of target data blocks according to the rule of the data volume callback of the fuse file system;
and sequentially calling back each target data block to the client.
9. The method of claim 1,
the specified attribute name comprises: a timestamp, a license plate number, a license plate color, or a picture type;
the step of generating the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to the preset file name generation rule includes:
calculating a characteristic value of the attribute information corresponding to the obtained specified attribute name;
and generating a file name containing characteristic values, timestamps, license plate numbers, license plate colors and picture type information for each data according to a preset file name generation rule.
10. The method of claim 1, further comprising:
receiving a directory refreshing request aiming at a current directory sent by a client;
judging whether the current directory is a file name directory or not;
if the current directory is not a file name directory, determining a target attribute name corresponding to the current directory according to a preset corresponding relation between each directory level above the file name directory level and the attribute name of the data;
sending an attribute information query request aiming at the target attribute name to a cloud storage server;
acquiring each target attribute information corresponding to the target attribute name returned by the cloud storage server;
respectively updating the corresponding target directory and the path information of each target directory aiming at each target attribute information to form an updated directory corresponding to the current directory;
sending the formed updated directory corresponding to the current directory as the current directory to the client for displaying;
if the current directory is a file name directory, sending a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server;
according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name;
respectively generating corresponding path information aiming at each file name to form an updated file name directory;
and sending the formed updated file name directory to the client for display.
11. A data searching method is applied to a client end which is in communication connection with a network file system server in a data searching system, and comprises the following steps:
sending a request for inquiring a next-level directory of a current directory to a network file system server;
receiving a file name directory returned by a network file system server; the file name directory is as follows: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
and displaying the file name directory.
12. The method of claim 11,
after the step of sending a request for querying a next-level directory of the current directory to the network file system server, the method further includes:
receiving a next-level directory of a non-file name directory returned by a network file system server; the next-level directory of the non-file name is as follows: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and displaying the next level directory of the non-file name directory.
13. A data searching method is applied to a cloud storage server which is in communication connection with a network file system server in a data searching system, and comprises the following steps:
receiving a request for acquiring attribute information of a specified attribute name, which is sent by the network file system server; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
searching attribute information corresponding to the specified attribute name;
returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
14. The method of claim 13,
the method further comprises the following steps:
receiving an attribute information query request aiming at the next-level attribute name and sent by a network file system server; the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data;
searching each next-level attribute information corresponding to the next-level attribute name;
returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
15. A data searching device is applied to a network file system server which is respectively in communication connection with a client and a cloud storage server in a data searching system, and comprises:
the first receiving module is used for receiving a request for inquiring the next-level catalog of the current catalog, which is sent by the client; the request comprises path information of the current directory;
the first judgment module is used for determining the directory level of the next-level directory according to the path information of the current directory and judging whether the next-level directory is a file name directory or not;
the first acquisition request sending module is used for sending a request for acquiring attribute information of a specified attribute name to the cloud storage server according to the attribute information corresponding to each level of directory in the path information of the current directory when the next level of directory is judged to be the file name directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
the first obtaining module is used for obtaining attribute information corresponding to the specified attribute name returned by the cloud storage server;
the first generation module is used for generating the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset generation rule for generating the file name;
the first forming module is used for respectively generating corresponding path information aiming at each file name to form a file name directory;
and the first directory sending module is used for sending the formed file name directory to the client for display.
16. The apparatus of claim 15, further comprising:
the first determining module is used for determining a next-level attribute name corresponding to a next-level directory according to a preset corresponding relation between each directory level above the file name directory level and an attribute name of data when the next-level directory is judged not to be a file name directory;
the first query request sending module is used for sending an attribute information query request aiming at the next-level attribute name to a cloud storage server;
the second obtaining module is used for obtaining each next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server;
the second forming module is used for respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and the second catalog sending module is used for sending the formed next-level catalog to the client for display.
17. A data search apparatus, for use in a client communicatively coupled to a network file system server in a data search system, the apparatus comprising:
the third inquiry request sending module is used for sending a request for inquiring the next-level directory of the current directory to the network file system server;
the fourth receiving module is used for receiving the file name directory returned by the network file system server; the file name directory is as follows: after judging that the next-level directory of the query is a file name directory, the network file system server sends a request for acquiring attribute information of a specified attribute name to a cloud storage server according to attribute information corresponding to each level of directory in path information of the current directory; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory;
and the first directory display module is used for displaying the file name directory.
18. The apparatus of claim 17, further comprising:
the fifth receiving module is used for receiving the next-level directory of the non-file name directory returned by the network file system server after sending a request for inquiring the next-level directory of the current directory to the network file system server; the next-level directory of the non-file name is as follows: after the network file system server judges that the inquired next-level directory is not a file name directory, determining a next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of the data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory;
and the second directory display module is used for displaying the next-level directory of the non-file name directory.
19. A data searching device is applied to a cloud storage server which is in communication connection with a network file system server in a data searching system, and comprises the following components:
a sixth receiving module, configured to receive a request for obtaining attribute information of a specified attribute name, where the request is sent by the network file system server; wherein, the specified attribute name is: one or more preset attribute names of file names used for generating data;
the first searching module is used for searching attribute information corresponding to the specified attribute name;
the second returning module is used for returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generating rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
20. The apparatus of claim 19, further comprising:
a seventh receiving module, configured to receive an attribute information query request for the next-level attribute name sent by a network file system server; the attribute information query request for the next-level attribute name is: the network file system server receives a request for inquiring a next-level directory sent by a client, determines that the next-level directory is not a file name directory, and determines an attribute information inquiry request of the next-level attribute name corresponding to the next-level directory according to the preset corresponding relation between each directory level above the file name directory level and the attribute name of data;
the second searching module is used for searching each next-level attribute information corresponding to the next-level attribute name;
a third returning module, configured to return, to the network file system server, each piece of next-level attribute information corresponding to the found next-level attribute name; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
21. A data lookup system, comprising:
the system comprises a network file system server, client equipment and a cloud storage server;
the network file system server is in communication connection with the client and the cloud storage server respectively and is used for receiving a request sent by the client for inquiring a next-level directory of the current directory, determining the directory level of the next-level directory according to the path information of the current directory, judging whether the next-level directory is a file name directory or not, and if the next-level directory is the file name directory, sending a request for acquiring attribute information of a specified attribute name to the cloud storage server according to attribute information corresponding to each level of directory in the path information of the current directory; acquiring attribute information corresponding to the specified attribute name returned by the cloud storage server; according to a preset file name generation rule, generating a file name of each data by using the obtained attribute information corresponding to the specified attribute name; respectively generating corresponding path information aiming at each file name to form a file name directory; sending the formed file name directory to a client for display;
the client is in communication connection with the network file system server and is used for sending a request for inquiring the next-level directory of the current directory to the network file system server; receiving a file name directory returned by a network file system server; displaying the file name directory;
the cloud storage server is in communication connection with the network file system server and is used for receiving a request for acquiring attribute information of a specified attribute name, which is sent by the network file system server; searching attribute information corresponding to the specified attribute name; returning the attribute information corresponding to the searched specified attribute name to the network file system server so that the network file system server generates the file name of each data by using the obtained attribute information corresponding to the specified attribute name according to a preset file name generation rule; respectively generating corresponding path information aiming at each file name to form a file name directory; and sending the formed file name directory to a client for display.
22. The system of claim 20,
the network file system server is further configured to determine a directory level of a next-level directory according to the path information of the current directory, determine that the next-level directory is not a file name directory, and determine a next-level attribute name corresponding to the next-level directory according to a preset corresponding relationship between each directory level above the file name directory level and an attribute name of data; sending an attribute information query request aiming at the next-level attribute name to a cloud storage server; acquiring next-level attribute information corresponding to the next-level attribute name returned by the cloud storage server; respectively generating a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information to form a next-level directory; sending the formed next-level catalog to a client for display;
the client is also used for receiving the next-level directory of the non-file name directory returned by the network file system server after sending a request for inquiring the next-level directory of the current directory to the network file system server; displaying a next-level directory of the non-filename directory;
the cloud storage server is further used for receiving an attribute information query request aiming at the next-level attribute name and sent by a network file system server; searching each next-level attribute information corresponding to the next-level attribute name; returning each next-level attribute information corresponding to the searched next-level attribute name to the network file system server; the network file system server generates a corresponding next-level directory name and path information of each next-level directory name aiming at each next-level attribute information respectively to form a next-level directory; and sending the formed next-level catalog to a client for display.
CN201811425288.1A 2018-11-27 2018-11-27 Data searching method, device, electronic equipment and system Active CN111221781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811425288.1A CN111221781B (en) 2018-11-27 2018-11-27 Data searching method, device, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811425288.1A CN111221781B (en) 2018-11-27 2018-11-27 Data searching method, device, electronic equipment and system

Publications (2)

Publication Number Publication Date
CN111221781A true CN111221781A (en) 2020-06-02
CN111221781B CN111221781B (en) 2023-05-02

Family

ID=70827958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811425288.1A Active CN111221781B (en) 2018-11-27 2018-11-27 Data searching method, device, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN111221781B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131200A (en) * 2020-09-15 2020-12-25 北京精一强远科技有限公司 Distributed mass file query system and method based on cifs sharing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077199A (en) * 2012-12-26 2013-05-01 北京思特奇信息技术股份有限公司 File resource searching and locating method and device
CN103605758A (en) * 2013-11-22 2014-02-26 中国科学院深圳先进技术研究院 Method and device for searching files of mobile terminal
US20160140141A1 (en) * 2014-11-17 2016-05-19 Red Hat, Inc. File lookup in a distributed file system
CN106850710A (en) * 2015-12-03 2017-06-13 杭州海康威视数字技术股份有限公司 A kind of safe data cloud storage system, client terminal, storage server and application process
CN106980697A (en) * 2017-04-07 2017-07-25 广东浪潮大数据研究有限公司 A kind of catalogue distribution querying method and device
CN107766377A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of monitoring data querying method and device
US20180239783A1 (en) * 2015-08-18 2018-08-23 Beijing Qihoo Technology Company Limited Method, terminal and system for searching on-the-way target picture

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077199A (en) * 2012-12-26 2013-05-01 北京思特奇信息技术股份有限公司 File resource searching and locating method and device
CN103605758A (en) * 2013-11-22 2014-02-26 中国科学院深圳先进技术研究院 Method and device for searching files of mobile terminal
US20160140141A1 (en) * 2014-11-17 2016-05-19 Red Hat, Inc. File lookup in a distributed file system
US20180239783A1 (en) * 2015-08-18 2018-08-23 Beijing Qihoo Technology Company Limited Method, terminal and system for searching on-the-way target picture
CN106850710A (en) * 2015-12-03 2017-06-13 杭州海康威视数字技术股份有限公司 A kind of safe data cloud storage system, client terminal, storage server and application process
CN107766377A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of monitoring data querying method and device
CN106980697A (en) * 2017-04-07 2017-07-25 广东浪潮大数据研究有限公司 A kind of catalogue distribution querying method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131200A (en) * 2020-09-15 2020-12-25 北京精一强远科技有限公司 Distributed mass file query system and method based on cifs sharing

Also Published As

Publication number Publication date
CN111221781B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN107003877B (en) Contextual deep links for applications
US8176061B2 (en) Tracking digital assets on a distributed network
US9400800B2 (en) Data transport by named content synchronization
CN111399756B (en) Data storage method, data downloading method and device
CN110569213A (en) File access method, device and equipment
CN111385316B (en) Resource refreshing method, access method and device
KR20090039405A (en) Processing method of tagged information and the client-server system for the same
EP3170091A1 (en) Method and server of remote information query
CN108900547B (en) Source returning control method and device
CN108154024B (en) Data retrieval method and device and electronic equipment
CN111563199A (en) Data processing method and device
WO2022057525A1 (en) Method and device for data retrieval, electronic device, and storage medium
CN111221781B (en) Data searching method, device, electronic equipment and system
CN110413684B (en) Database synchronization method, device and system
CN113411364B (en) Resource acquisition method and device and server
CN115129789A (en) Bucket index storage method, device and medium of distributed object storage system
CN107357557B (en) Information updating method and device
US20150227534A1 (en) Method for processing data query using information-centric network
CN109960695B (en) Management method and device for database in cloud computing system
JP2007200271A (en) Retrieval method and system for retrieving multimedia content in content network
CN114301872A (en) Domain name based access method and device, electronic equipment and storage medium
CN112783842A (en) Log collection method and device
CN116305288B (en) Method, device, equipment and storage medium for isolating database resources
CN115905120B (en) Archive file management method, archive file management device, archive file management computer device and archive file management storage medium
CN111090804B (en) Data filtering method, device and computer storage 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
GR01 Patent grant
GR01 Patent grant