A method of data processing and related apparatus
By generating target directory information and indicating the first and second subdirectories, the user device only makes requests to directories with subdirectories, which solves the problem of excessive interaction time in recursive enumeration and improves data processing efficiency.
Patent Information
- Application Number
- CN202111538199.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In public cloud big data services, when user devices recursively list the directories of storage devices, they need to send HTTP list requests frequently, resulting in excessively long interaction times, especially when there are many subdirectories, making the processing flow cumbersome.
The storage device generates target directory information, indicating a first subdirectory and a second subdirectory. The first subdirectory includes the next-level subdirectory, while the second subdirectory does not. Based on this information, the user device only initiates subsequent statistical requests to the first subdirectory, reducing unnecessary interactions.
By reducing unnecessary statistical requests, data processing efficiency is improved, and the interaction process between user devices and storage devices is reduced.
Smart Images

Figure CN116263757B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more particularly to a data processing method and related apparatus. Background Technology
[0002] For public cloud big data services, user devices can send HTTP list requests to the storage devices of the big data service through the REST API interface to perform read, write, or enumeration operations.
[0003] When a user device (User Device) processes a specified directory on a storage device by sending an HTTP list request, the User Device needs to recursively list the responses returned by the storage device. See also... Figure 1 , Figure 1 This is a flowchart illustrating the process of recursively listing a specified directory for a user device. For example... Figure 1 As shown, if the statistical results returned by the storage device indicate that the current specified directory includes a subdirectory, then the user device needs to send an HTTP list request for that subdirectory to the storage device until the final statistical results do not contain any subdirectories, at which point the process converges. Then, the user device adds the returned subdirectories and files to the statistical results.
[0004] User devices need to send HTTP list requests to each directory, making the process cumbersome. If there are many subdirectories, the interaction time between the user device and the storage device will be too long. Summary of the Invention
[0005] This application provides a data processing method and related apparatus to improve the efficiency of data processing.
[0006] Firstly, embodiments of this application provide a data processing method. In big data service scenarios, user devices can update business data stored in storage devices through the business layer, such as creating, deleting, or modifying files. Correspondingly, after updating a file in the storage device, the storage device also needs to obtain the update status of the parent directory where the file is located (i.e., the target directory in this application). This update status records the changes that occurred during the update (including the increment of the number of files and the increment of data), for example, +1 for created files and -1 for deleted files. This update status is used for subsequent synchronous updates of the metadata of the target directory in the metadata index layer.
[0007] In storage devices, each file or directory typically has its own owner node. When a file in the storage device is updated—for example, by creating, deleting, or appending to a file, resulting in a change in file size—the file's owner node sends a message to the owner node of the directory containing that file (its parent directory). This message carries the path of the parent directory, the file size increment, and the file count increment. Similarly, when a subdirectory is created or deleted, a message is sent to the owner node of the directory containing that subdirectory (its parent directory). The directory's owner node reads the directory's update status from the metadata index layer, and then updates the metadata in the metadata index layer based on this update status.
[0008] After a file in the storage file is updated, the storage device obtains the update status (including the increment of the number of files and the increment of data) of the parent directory (target directory) where the file is located, and then generates target directory information based on the update status. In this application, the target directory information is used to indicate the first and second subdirectories of the target directory. The first and second subdirectories defined in this application represent the types of subdirectories of the target directory. The first subdirectory includes subdirectories at the next level, while the second subdirectory does not. For example, the first subdirectory further includes subdirectories at the next level (the third and fourth subdirectories), while the second subdirectory only includes file data or is an empty directory. That is, the first subdirectory is the parent directory of the third and fourth subdirectories, and the third and fourth subdirectories are the grandchild directories of the target directory. In other words, the target directory information in this application indicates which subdirectories in the target directory have subdirectories at the next level, and also indicates which subdirectories in the target directory do not have subdirectories at the next level.
[0009] For example, taking directory A as the target directory of this application, directory A includes directories B, C, and D, and file A. Moving down one level, directory B includes directory E, directory C includes file B, and directory D is an empty directory. Since directory B includes the next-level subdirectory (directory E), directory B is the first subdirectory; while since directories C and D do not include any next-level subdirectories, both directories C and D are second subdirectories.
[0010] It should be understood that the number of the first subdirectory and the second subdirectory is not limited in this application. In practical applications, the target directory may not include the first subdirectory or the second subdirectory, that is, the number of the first subdirectory is 0; or the number of the second subdirectory is 0; or the number of both the first subdirectory and the second subdirectory is 0; or the number of the first subdirectory or the second subdirectory is at least one. The specific number is not limited here.
[0011] After the storage device generates the target directory information corresponding to the target directory, the user device can send a first statistical request to the storage device for the target directory to perform recursive statistics. The storage device then sends the target directory information to the user device. Since the target directory information indicates the first and second subdirectories of the target directory, where the first subdirectory includes next-level subdirectories but the second subdirectory does not, the user device, upon receiving the target directory information, can determine whether the target directory's subdirectories include next-level subdirectories. In other words, the user device can determine whether the target directory has grandchild directories.
[0012] Furthermore, the user equipment can continue to send a second statistical request to the storage device for the first subdirectory, thereby facilitating the continued statistical analysis of the next-level subdirectories of the first subdirectory. On the other hand, since the second subdirectory does not have a next-level subdirectory, and the user equipment can already determine the file information under the second subdirectory through the target directory information, the user equipment does not need to send a statistical request to the second subdirectory again. If the first subdirectory does not exist in the target directory, the recursive statistical process can converge, and the user equipment does not need to send a statistical request to the storage device again.
[0013] In this application, the user equipment can initiate subsequent statistical requests only for the first subdirectory that includes a next-level subdirectory, based on the indication of the target directory information, while not needing to initiate statistical requests for the second subdirectory that does not include a next-level subdirectory. This reduces the interaction process between the user equipment and the storage device and improves the efficiency of data processing.
[0014] Based on the first aspect, in an optional implementation, taking the third and fourth subdirectories as examples of the first subdirectory's next-level subdirectories, after the storage device receives a second statistical request from the user device for the first subdirectory, the storage device sends the first subdirectory information corresponding to the first subdirectory to the user device. The first subdirectory information indicates the third and fourth subdirectories of the first subdirectory; the third subdirectory includes next-level subdirectories, while the fourth subdirectory does not. Therefore, after receiving the first subdirectory information, the user device can perceive whether the subdirectories of the first subdirectory include next-level subdirectories; in other words, the user device can perceive whether the first subdirectory has grandchildren. Thus, the user device can continue to send a third statistical request to the storage device for the third subdirectory, facilitating further statistical analysis of the next-level subdirectories of the third subdirectory. On the other hand, since the fourth subdirectory does not have next-level subdirectories, and the user device can already determine the file information under the fourth subdirectory through the first subdirectory information, the user device does not need to send a statistical request to the fourth subdirectory. If no third subdirectory exists in the target directory, the recursive statistics process can converge, and the user device no longer needs to send statistics requests to the storage device.
[0015] Based on the first aspect, in an optional implementation, the target directory information may also indicate the statistical information of the target directory, wherein the statistical information specifically refers to the number of directories, the number of files, and the total file size in the target directory. For example, the statistical information of the parent directory A indicates that there are 5 directories (i.e., parent directory A, subdirectory B, subdirectory C, subdirectory D, and grandchild directory E), 2 files (i.e., file A and file B), and the total file size is 10MB (assuming that file A and file B are both 5MB).
[0016] Based on the first aspect, in an optional implementation, the content recorded in the target directory information (including the aforementioned statistical information) can be carried in the metadata of the target directory.
[0017] Secondly, embodiments of this application provide a data processing apparatus, including:
[0018] The acquisition unit is used to obtain the update status of the target directory;
[0019] The generation unit is used to generate target directory information according to the update status. The target directory information is used to indicate the first subdirectory and the second subdirectory of the target directory. The first subdirectory includes the next level of subdirectories, and the second subdirectory does not include the next level of subdirectories.
[0020] When the sending unit receives a first statistical request for a target directory from the user equipment, it sends target directory information to the data processing device according to the first statistical request, so that the user equipment can send a second statistical request for a first subdirectory to the data processing device according to the target directory information.
[0021] The information interaction and execution process of the embodiments shown in this aspect are based on the same concept as the embodiments shown in the first aspect. Therefore, for a detailed explanation of the beneficial effects shown in this aspect, please refer to the first aspect above, and will not be repeated here.
[0022] Based on the second aspect, in an optional implementation, the transmitting unit is further configured to:
[0023] When a second statistical request is received from a user equipment, a first subdirectory information is sent to the user equipment according to the second statistical request, so that the user equipment can send a third statistical request for a third subdirectory to the data processing device according to the first subdirectory information. The first subdirectory information is used to indicate the third and fourth subdirectories of the first subdirectory. The third subdirectory includes the next level subdirectory, and the fourth subdirectory does not include the next level subdirectory.
[0024] Based on the second aspect, in one optional implementation, the target directory information is carried in the metadata of the target directory.
[0025] Based on the second aspect, in an optional implementation, the target directory information is also used to indicate statistical information of the target directory.
[0026] Thirdly, embodiments of the present invention provide a computer device, including a memory, a communication interface, and a processor coupled to the memory and the communication interface; the memory is used to store instructions, the processor is used to execute the instructions, and the communication interface is used to communicate with other devices under the control of the processor; wherein, when the processor executes the instructions, it performs the data processing method described in any of the preceding aspects.
[0027] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the data processing method described in any of the preceding aspects.
[0028] Fifthly, embodiments of this application provide a computer program product or computer program that includes computer instructions that, when run on a computer, cause the computer to perform the data processing method described in any of the preceding aspects.
[0029] Sixthly, embodiments of this application provide a chip system including a processor for implementing the functions involved in the foregoing aspects, such as transmitting or processing data and / or information involved in the foregoing methods. In one possible design, the chip system further includes a memory for storing program instructions and data necessary for a server or communication device. This chip system may be composed of chips or may include chips and other discrete devices.
[0030] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0031] This application discloses a data processing method and related apparatus. A storage device acquires the update status of a target directory; the storage device generates target directory information based on the update status, wherein the target directory information indicates a first subdirectory and a second subdirectory of the target directory, the first subdirectory including a next-level subdirectory, and the second subdirectory not including a next-level subdirectory; in response to the storage device receiving a first statistical request from a user device for the target directory, the storage device sends the target directory information to the user device based on the first statistical request, so that the user device can send a second statistical request for the first subdirectory to the storage device based on the target directory information. In this application, the user device can initiate subsequent statistical requests only for the first subdirectory that includes a next-level subdirectory, as indicated by the target directory information, while not needing to initiate statistical requests for the second subdirectory that does not include a next-level subdirectory, reducing the interaction process between the user device and the storage device and improving data processing efficiency. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0033] Figure 1 A flowchart illustrating the process of recursively listing a specified directory for a user device;
[0034] Figure 2 A schematic diagram illustrating the process of a user device initiating an HTTP list request to a storage device;
[0035] Figure 3 This is a schematic diagram of the directory structure where the files are located in an embodiment of this application;
[0036] Figure 4 This is a flowchart illustrating the data processing method in an embodiment of this application;
[0037] Figure 5 This is a schematic diagram of the architecture of the storage device in the embodiments of this application;
[0038] Figure 6 This is a schematic diagram illustrating the process of a storage device obtaining the update status of a target directory in an embodiment of this application.
[0039] Figure 7 This is a schematic diagram of the structure of the first subdirectory and the second subdirectory in an embodiment of this application;
[0040] Figure 8 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application;
[0041] Figure 9 This is a schematic diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0042] This application provides a data processing method and related apparatus to improve the efficiency of data processing.
[0043] The embodiments of the present invention will now be described with reference to the accompanying drawings. The terminology used in the embodiments section is for illustrative purposes only and is not intended to limit the scope of the invention. As will be apparent to those skilled in the art, with technological advancements and the emergence of new scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.
[0044] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0045] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0046] Please see Figure 2 , Figure 2 This is a schematic diagram illustrating the process of a user device initiating an HTTP list request to a storage device. For example... Figure 2 As shown, for public cloud big data services, user devices can send HTTP list requests to the storage devices of big data services through the REST API interface to perform read, write, or enumeration operations.
[0047] When a user device (User Device) processes a specified directory on a storage device by sending an HTTP list request, the User Device needs to recursively enumerate the responses from the storage device. If the statistics from the storage device indicate that the specified directory contains subdirectories, the User Device needs to send further HTTP list requests for those subdirectories until the final statistics show no subdirectories. The process then converges, and the User Device adds the returned subdirectories and files to the overall statistics.
[0048] For easier understanding, please refer to Figure 3 , Figure 3 This is a schematic diagram of the directory structure where the files are located in an embodiment of this application. For example... Figure 3 As shown, the parent directory (Dir1) includes the subdirectories Dir1_1 and Dir1_2, and the file File1_2. The subdirectory Dir1_1 further includes the next-level file File1_1. In the traditional recursive enumeration process, the user device needs to enumerate each directory (i.e., ... Figure 3 The process involves sending HTTP list requests to the parent directory Dir1, subdirectories Dir1_1 and Dir1_2, making the process quite cumbersome. If there are many subdirectories, the interaction time between the user device and the storage device will be excessively long.
[0049] In view of this, embodiments of this application provide a data processing method and related apparatus to improve data processing efficiency. The data processing method of this application embodiment will now be described in conjunction with the accompanying drawings. Please refer to... Figure 4 , Figure 4 This is a flowchart illustrating the data processing method in an embodiment of this application, as shown below. Figure 4 As shown, the data processing method in this embodiment includes:
[0050] 101. The storage device obtains the update status of the target directory.
[0051] For easier understanding, please refer to Figure 5 , Figure 5 This is a schematic diagram of the storage device architecture in an embodiment of this application. In this application, the storage device can be divided into three modules: a business layer, a persistence layer, and a metadata indexing layer. These three modules are described below.
[0052] Persistence Layer: Used to store data updated by the user device;
[0053] Metadata Index Layer: Used to store and manage file and directory metadata, recording the data layout of data in the file metadata on the persistence layer;
[0054] Service Layer: Handles requests sent by user devices, writes data to the persistence layer, and writes metadata to the metadata index layer.
[0055] like Figure 5 As shown, in big data business scenarios, user devices can update business data stored in storage devices through the aforementioned business layer, such as creating, deleting, or modifying files. Correspondingly, after updating a file in the storage device, the storage device also needs to obtain the update status of the parent directory where the file is located (i.e., the target directory in this application). This update status records the changes that occurred during the update (including the increment in the number of files and the increment in data), for example, +1 for created files and -1 for deleted files. This update status is used for subsequent synchronous updates of the metadata of the target directory in the metadata index layer.
[0056] Please see Figure 6 , Figure 6 This is a schematic diagram illustrating the process of a storage device obtaining the update status of a target directory in an embodiment of this application. For example... Figure 6As shown, in a storage device, each file or directory typically has its own owner node. When a file in the storage device is updated—for example, when a file is created, deleted, or appended, causing a change in file size—the file's owner node sends a message to the owner node of the directory containing that file (its parent directory). This message carries the path of the parent directory, the file size increment, and the file count increment. Similarly, when a subdirectory is created or deleted, a message is sent to the owner node of the directory containing that subdirectory (its parent directory). The directory's owner node reads the directory's update status from the metadata index layer, and then updates the metadata in the metadata index layer based on this update status.
[0057] 102. The storage device generates target directory information based on the update status.
[0058] After a file in the storage file is updated, the storage device obtains the update status (including the increment of the number of files and the increment of data) of the parent directory (target directory) where the file is located, and then generates target directory information based on the update status. In this application, the target directory information is used to indicate the first and second subdirectories of the target directory. The first and second subdirectories defined in this application represent the types of subdirectories of the target directory. The first subdirectory includes subdirectories at the next level, while the second subdirectory does not. For example, the first subdirectory further includes subdirectories at the next level (the third and fourth subdirectories), while the second subdirectory only includes file data or is an empty directory. That is, the first subdirectory is the parent directory of the third and fourth subdirectories, and the third and fourth subdirectories are the grandchild directories of the target directory. In other words, the target directory information in this application indicates which subdirectories in the target directory have subdirectories at the next level, and also indicates which subdirectories in the target directory do not have subdirectories at the next level.
[0059] For example, please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of the first and second subdirectories in an embodiment of this application. For example... Figure 7 As shown, taking directory A as the target directory of this application as an example, directory A includes directories B, C, and D, and file A. Moving down one level, directory B includes directory E, directory C includes file B, and directory D is an empty directory. Since directory B includes the next-level subdirectory (directory E), directory B is the first subdirectory; while since directories C and D do not include any next-level subdirectories, both directories C and D are second subdirectories.
[0060] It should be understood that the number of the first subdirectory and the second subdirectory is not limited in this application. In practical applications, the target directory may not include the first subdirectory or the second subdirectory, that is, the number of the first subdirectory is 0; or the number of the second subdirectory is 0; or the number of both the first subdirectory and the second subdirectory is 0; or the number of the first subdirectory or the second subdirectory is at least one. The specific number is not limited here.
[0061] Furthermore, the target directory information in this application can also indicate statistical information about the target directory, specifically referring to the number of directories, the number of files, and the total file size within the target directory. For example, for... Figure 3 The statistics for the parent directory Dir1 indicate that there are 3 directories (i.e., ...). Figure 3 The parent directory Dir1, subdirectories Dir1_1 and Dir1_2 contain two files (i.e., ...). Figure 3 The files File1_1 and File1_2 are in the file, and the total file size is 10MB (assuming). Figure 3 (File1_1 and File1_2 are both 5MB); for example, regarding... Figure 7 The statistics for parent directory A indicate that there are 5 directories (i.e., ...). Figure 7 The parent directory A, subdirectory B, subdirectory C, subdirectory D, and grandchild directory E are listed, and the number of files is 2 (i.e., ...). Figure 7 Files A and B in the file), with a total file size of 10MB (assuming...). Figure 7 (Both file A and file B are 5MB). Furthermore, the content recorded in the target directory information (including the aforementioned statistical information) can be carried in the metadata of the target directory.
[0062] 103. In response to the storage device receiving a first statistics request for a target directory from the user device, the storage device sends target directory information to the user device based on the first statistics request.
[0063] After the storage device generates the target directory information corresponding to the target directory, the user device can send a first statistical request to the storage device for the target directory to perform recursive statistics. The storage device then sends the target directory information to the user device. Since the target directory information indicates the first and second subdirectories of the target directory, where the first subdirectory includes next-level subdirectories but the second subdirectory does not, the user device, upon receiving the target directory information, can determine whether the target directory's subdirectories include next-level subdirectories. In other words, the user device can determine whether the target directory has grandchild directories.
[0064] 104. The user equipment sends a second statistics request for the first subdirectory to the storage device based on the target directory information.
[0065] In this application, the user equipment can continue to send a second statistical request to the storage device for the first subdirectory, thereby facilitating the continued statistical analysis of the next-level subdirectories of the first subdirectory. On the other hand, since the second subdirectory does not have a next-level subdirectory, and the user equipment can determine the file information under the second subdirectory through the target directory information, the user equipment does not need to send a statistical request to the second subdirectory again. If the first subdirectory does not exist in the target directory, the recursive statistical process can converge, and the user equipment does not need to send a statistical request to the storage device again.
[0066] In this application, the user equipment can initiate subsequent statistical requests only for the first subdirectory that includes a next-level subdirectory, based on the indication of the target directory information, while not needing to initiate statistical requests for the second subdirectory that does not include a next-level subdirectory. This reduces the interaction process between the user equipment and the storage device and improves the efficiency of data processing.
[0067] Furthermore, taking the third and fourth subdirectories as examples of the first subdirectory, after the storage device receives a second statistical request from the user device for the first subdirectory, the storage device sends the first subdirectory information corresponding to the first subdirectory to the user device. The first subdirectory information indicates the third and fourth subdirectories of the first subdirectory; the third subdirectory includes the next-level subdirectories, while the fourth subdirectory does not. Therefore, after receiving this first subdirectory information, the user device can perceive whether the subdirectories of the first subdirectory include next-level subdirectories; in other words, the user device can perceive whether the first subdirectory has grandchildren. Thus, the user device can continue to send a third statistical request to the storage device for the third subdirectory, facilitating further statistical analysis of the next-level subdirectories of the third subdirectory. On the other hand, since the fourth subdirectory does not have any next-level subdirectories, and the user device can already determine the file information under the fourth subdirectory through the first subdirectory information, the user device does not need to send a statistical request to the fourth subdirectory. If no third subdirectory exists in the target directory, the recursive statistics process can converge, and the user device no longer needs to send statistics requests to the storage device.
[0068] exist Figure 4 Based on the corresponding embodiments, in order to better implement the above-described solutions of this application, related equipment for implementing the above solutions is also provided below. For details, please refer to... Figure 8 , Figure 8This is a schematic diagram of a data processing apparatus provided in an embodiment of this application. The map data updating apparatus includes:
[0069] Acquisition unit 201 is used to acquire the update status of the target directory;
[0070] The generation unit 202 is used to generate target directory information according to the update status, wherein the target directory information is used to indicate the first subdirectory and the second subdirectory of the target directory, the first subdirectory includes the next level subdirectory, and the second subdirectory does not include the next level subdirectory.
[0071] When the sending unit 203 receives a first statistical request for a target directory from the user equipment, it sends target directory information to the data processing device according to the first statistical request, so that the user equipment can send a second statistical request for a first subdirectory to the data processing device according to the target directory information.
[0072] In one possible design, the transmitting unit 203 is also used for:
[0073] When a second statistical request is received from a user equipment, a first subdirectory information is sent to the user equipment according to the second statistical request, so that the user equipment can send a third statistical request for a third subdirectory to the data processing device according to the first subdirectory information. The first subdirectory information is used to indicate the third and fourth subdirectories of the first subdirectory. The third subdirectory includes the next level subdirectory, and the fourth subdirectory does not include the next level subdirectory.
[0074] In one possible design, the target directory information is carried in the target directory's metadata.
[0075] In one possible design, the target directory information is also used to indicate statistical information about the target directory.
[0076] It should be noted that the information interaction and execution process between the modules / units in the data processing device are different from those in this application. Figure 4 The corresponding method embodiments are based on the same concept, and the details can be found in the descriptions of the method embodiments shown above in this application, which will not be repeated here.
[0077] This application also provides a computer device; please refer to [link / reference]. Figure 9 , Figure 9 This is a schematic diagram of a computer device provided in an embodiment of this application. The computer device may be deployed with... Figure 8 The data processing apparatus described in the corresponding embodiment is used to implement Figure 4The method in the corresponding embodiment. Specifically, the computer device is implemented by one or more servers. The computer device can vary significantly due to differences in configuration or performance, and may include one or more central processing units (CPUs) 322 (e.g., one or more processors) and memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) for storing application programs 342 or data 344. The memory 332 and storage media 330 can be temporary or persistent storage. The program stored in the storage media 330 may include one or more modules (not shown in the figure), each module may include a series of instruction operations on the computer device. Furthermore, the CPU 322 may be configured to communicate with the storage media 330 and execute the series of instruction operations in the storage media 330 on the computer device 300.
[0078] The computer device may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341, such as Windows Server. TM Mac OS X TM Unix TM Linux TM FreeBSD TM etc.
[0079] It should be noted that the information interaction and execution process between the various modules / units in the computer device are different from those in this application. Figure 4 The corresponding method embodiments are based on the same concept, and the details can be found in the descriptions of the method embodiments shown above in this application, which will not be repeated here.
[0080] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned actions. Figure 4 The method described in the illustrated embodiment.
[0081] This application embodiment also provides a computer-readable storage medium storing a program for performing signal processing, which, when run on a computer, causes the computer to perform the aforementioned actions. Figure 4 The method described in the illustrated embodiment.
[0082] The image processing device provided in this application embodiment can specifically be a chip, which includes a processing unit and a communication unit. The processing unit can be, for example, a processor, and the communication unit can be, for example, an input / output interface, pins, or circuits. The processing unit can execute computer execution instructions stored in the storage unit to cause the chip to perform the aforementioned operations. Figure 4 The method described in the illustrated embodiment. Optionally, the storage unit is a storage unit within the chip, such as a register, cache, etc. The storage unit can also be a storage unit located outside the chip within the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), etc.
[0083] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0084] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0085] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0086] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, 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, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A data processing method, characterized in that, include: The storage device obtains the update status of the target directory; The storage device generates target directory information based on the update status, wherein the target directory information is used to indicate the first subdirectory and the second subdirectory of the target directory, the first subdirectory includes the next level subdirectory, and the second subdirectory does not include the next level subdirectory; In response to the storage device receiving a first statistics request from the user device for the target directory, the storage device sends the target directory information to the user device according to the first statistics request, so that the user device sends a second statistics request for the first subdirectory to the storage device according to the target directory information.
2. The method according to claim 1, characterized in that, The method further includes: In response to the storage device receiving the second statistics request from the user equipment, the storage device sends first subdirectory information to the user equipment according to the second statistics request, so that the user equipment sends a third statistics request for a third subdirectory to the storage device according to the first subdirectory information, wherein the first subdirectory information is used to indicate the third and fourth subdirectories of the first subdirectory, the third subdirectory includes the next level subdirectory, and the fourth subdirectory does not include the next level subdirectory.
3. The method according to claim 1 or 2, characterized in that, The target directory information is contained in the target directory's metadata.
4. The method according to claim 1 or 2, characterized in that, The target directory information is also used to indicate statistical information about the target directory.
5. A data processing apparatus, characterized in that, include: The acquisition unit is used to obtain the update status of the target directory; A generation unit is configured to generate target directory information based on the update status, wherein the target directory information is used to indicate a first subdirectory and a second subdirectory of the target directory, the first subdirectory including a next-level subdirectory, and the second subdirectory not including a next-level subdirectory. The sending unit, upon receiving a first statistical request from a user equipment for the target directory, is configured to send the target directory information to the data processing device according to the first statistical request, so that the user equipment can send a second statistical request for the first subdirectory to the data processing device according to the target directory information.
6. The data processing apparatus according to claim 5, characterized in that, The transmitting unit is further configured to: When the second statistical request is received from the user equipment, first subdirectory information is sent to the user equipment according to the second statistical request, so that the user equipment sends a third statistical request for the third subdirectory to the data processing device according to the first subdirectory information. The first subdirectory information is used to indicate the third and fourth subdirectories of the first subdirectory. The third subdirectory includes the next level subdirectory, and the fourth subdirectory does not include the next level subdirectory.
7. The data processing apparatus according to claim 5 or 6, characterized in that, The target directory information is contained in the target directory's metadata.
8. The data processing apparatus according to claim 5 or 6, characterized in that, The target directory information is also used to indicate statistical information about the target directory.
9. A storage device, characterized in that, It includes a processor and a memory, wherein the processor is coupled to the memory. The memory is used to store programs; The processor is configured to execute a program in the memory, causing the storage device to perform the method as described in any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 4.
11. A computer program product, characterized in that, The computer program product stores computer-readable instructions that, when executed by a processor, implement the method as described in any one of claims 1 to 4.
12. A chip system, characterized in that, The chip system includes at least one processor, which, when program instructions are executed in the at least one processor, causes the method as described in any one of claims 1 to 4 to be executed.
Citation Information
Patent Citations
Method and client for achieving ACL (Access Control List)
CN103064957A
Quick retrieval method of directory file
CN106874370A
