Object storage processing method and device, computer device and readable storage medium

By creating target folder objects in the object storage pool and maintaining hierarchical relationships, the problem of virtual folders disappearing due to file deletion is solved, achieving a stable and user-friendly interface for the object storage system, and improving the accuracy of file management and user experience.

CN115563054BActive Publication Date: 2026-04-07SUGON INFORMATION IND
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing object storage systems, when a file is deleted, the virtual folder also disappears, causing errors in the file list count, which affects the accuracy of file management and user experience.

Method used

By creating target folder objects in the object storage pool and ensuring that they are not deleted when file objects are deleted, the hierarchical relationship is maintained. Objects are divided and paginated using preset identifiers, ensuring the correct display and management of folder and file objects.

Benefits of technology

It effectively avoids abnormal file counts, provides a user-friendly interface and efficient object management, and improves the practicality and user experience of object storage processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115563054B_ABST
    Figure CN115563054B_ABST
Patent Text Reader

Abstract

The application relates to an object storage processing method and device, computer equipment and a readable storage medium. The method comprises the following steps: receiving a folder object creation instruction; creating a target folder object in an object storage pool based on the folder object creation instruction; if a creation instruction for a target file object is received, creating the target file object in the object storage pool based on the name of the target folder object, wherein the target folder object and the target file object have a hierarchical relationship when being displayed. The object storage processing method provided by the application can prevent the number of objects in an object storage file list from being incorrect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of object storage technology, and in particular to an object storage processing method, apparatus, computer device, and readable storage medium. Background Technology

[0002] Object storage, also known as object-based storage, is a general term used to describe methods for solving and processing discrete units, which are called objects.

[0003] Current object storage uses " / " as a separator to categorize virtual folders. For example, "test / 1.jpg" indicates that the virtual folder "test" contains the file "1.jpg". However, in practice, if the file "1.jpg" is deleted, the virtual folder "test" will also disappear, leading to an error in the number of files listed in the object storage. Summary of the Invention

[0004] Therefore, it is necessary to provide a symmetric storage processing method, apparatus, computer device, and readable storage medium that can avoid errors in the number of objects in the object storage file list, in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides an object storage processing method, the method comprising:

[0006] Receive folder object creation instructions;

[0007] Create the target folder object in the object storage pool based on the folder object creation instruction;

[0008] If a creation instruction for a target file object is received, the target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0009] The object storage processing method provided in the above embodiments creates a target folder object corresponding to the target file object. This target folder object actually exists. When the target file object is deleted, the target folder object corresponding to the target file object will not be deleted. That is, when displaying, if the target file object at the next level of the target folder object is deleted, the target folder object will not disappear, so there will be no problem of abnormal file quantity, and thus the normal pagination of objects can be guaranteed in the future.

[0010] In one embodiment, creating a target folder object in the object storage pool based on a folder object creation instruction includes:

[0011] Based on the folder object creation instruction, the target folder object is created in the object storage pool according to the preset folder object naming method;

[0012] The default folder object naming method includes using the concatenation of the candidate name and the default identifier as the name of the target folder object.

[0013] In the above embodiments, when creating a target folder object based on a folder object creation instruction, the target folder object is named using a preset folder object naming method that concatenates the candidate name and the preset identifier. This facilitates quick retrieval of the folder object based on its name, improving the practicality of the object storage processing method.

[0014] In one embodiment, the method further includes:

[0015] Based on preset identifiers, target objects in the object storage pool are divided into folder objects and file objects;

[0016] Based on the partitioning results, the target objects in the object storage pool are paginated to obtain multiple object pages.

[0017] The above embodiments divide target objects in the object storage pool into folder objects and file objects according to preset identifiers. This distinguishes between folder objects and file objects within the target objects, i.e., it uniformly categorizes folder objects and file objects. When paginating the target objects based on the division results, since folder objects and file objects are uniformly categorized, the pagination process avoids the phenomenon of overlapping display of folder objects and file objects on a single page. This results in a user-friendly interface, facilitates user viewing, and improves the practicality of the object storage processing method.

[0018] In one embodiment, objects in the object storage pool are paginated according to the partitioning results to obtain multiple object pages, including:

[0019] The target objects in the object storage pool are sorted according to the partitioning results so that the target objects meet the preset conditions after sorting. The preset conditions include that the folder object is placed before the file object, or the file object is placed before the folder object.

[0020] The target objects in the sorted object storage pool are paginated to obtain multiple object pages.

[0021] The above embodiments sort the divided target objects according to a preset order and perform pagination on the sorted target objects so that the folder objects (file objects) are displayed first and the file objects (folder objects) are displayed later, which is convenient for viewing and improves the user experience.

[0022] In one embodiment, the method further includes:

[0023] Obtain the range indication information, and determine the target object within the storage range indicated by the range indication information from the objects contained in the object storage pool.

[0024] The above embodiments directly determine the target object from the objects contained in the object storage pool based on the obtained range indication information. This determination method is simple and fast, and does not require obtaining all objects in the object storage pool before identifying the target object. This can improve the efficiency of determining the target object, thereby improving the efficiency and practicality of the object storage processing method.

[0025] In one embodiment, the range indication information includes an identifier bit and an object count. Determining the target object within the storage range indicated by the range indication information from the objects contained in the object storage pool includes:

[0026] In the object storage pool, determine the starting object corresponding to the identifier bit;

[0027] Based on the number of objects, starting with the initial object, the target object is retrieved from the object storage pool.

[0028] The above embodiments can quickly and accurately retrieve target objects from the object storage pool by using identifier bits and object count.

[0029] In one embodiment, the preset identifier includes a prefix and a separator.

[0030] In one embodiment, the method further includes:

[0031] The object display interface shows the file hierarchy controls corresponding to the target folder object;

[0032] After detecting a trigger operation on the file hierarchy control, display the file object control corresponding to the target file object.

[0033] In the above embodiments, folder objects and file objects are displayed in a hierarchical manner on the object display interface. This interface is the same as the display format of folders and files commonly used by users, which makes it easy for users to view and can improve the user experience, thereby improving the practicality of the object storage processing method.

[0034] Secondly, this application also provides an object storage processing apparatus, the apparatus comprising:

[0035] The receiving module is used to receive folder object creation instructions;

[0036] The first creation module is used to create target folder objects in the object storage pool based on folder object creation instructions;

[0037] The second creation module is used to create a target file object in the object storage pool based on the name of the target folder object if a creation instruction for the target file object is received. The target folder object and the target file object have a hierarchical relationship when displayed.

[0038] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method provided in the first aspect.

[0039] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect.

[0040] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method provided in the first aspect.

[0041] The aforementioned object storage processing method, apparatus, computer device, and readable storage medium include a method that receives a folder object creation instruction; creates a target folder object in an object storage pool based on the folder object creation instruction; and, if a creation instruction for a target file object is received, creates a target file object in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship during display. The object storage processing method provided in this embodiment creates a target folder object corresponding to a target file object. This target folder object actually exists, and when the target file object is deleted, the target folder object corresponding to it is not deleted. That is, during display, if the next-level target file object of the target folder object is deleted, the target folder object will not disappear, thus avoiding the problem of abnormal file counts and ensuring normal pagination of objects subsequently. Attached Figure Description

[0042] Figure 1 This is an application environment diagram of an object storage processing method in one embodiment;

[0043] Figure 2This is a flowchart illustrating the steps of an object storage processing method in one embodiment;

[0044] Figure 3 This is a flowchart illustrating the steps of an object storage processing method in another embodiment;

[0045] Figure 4 This is a flowchart illustrating the steps of an object storage processing method in another embodiment;

[0046] Figure 5 This is a flowchart illustrating the steps of an object storage processing method in another embodiment;

[0047] Figure 6 This is a flowchart illustrating the steps of an object storage processing method in another embodiment;

[0048] Figure 7 This is a flowchart illustrating the steps of an object storage processing method in another embodiment;

[0049] Figure 8 This is a schematic diagram of the structure of an object storage processing device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] Object storage, also known as object-based storage, is a general term used to describe methods for solving and processing discrete units called objects. Like files, objects contain data, but unlike files, objects do not have a hierarchical structure within a single layer. Each object exists at the same level in a flat address space called a storage pool; one object does not belong to a lower level of another. Both files and objects have metadata associated with the data they contain, but objects are characterized by extended metadata. Each object is assigned a unique identifier, allowing a server or user to retrieve the object without needing to know the physical address of the data.

[0052] Due to the characteristics of objects, files stored in object storage do not have a hierarchical relationship. However, from a product and user perspective, products based on object storage need to have a user-friendly graphical interface. Currently, the commonly used software development kit (SDK) for self-developed object storage is the AWS S3 SDK. This SDK implements the classification of virtual folders using " / " as a separator, for example, "test / 1.jpg" displays the file 1.jpg in the virtual folder "test". This implementation can solve some user-friendliness issues. However, in practice, if the file 1.jpg is deleted, the virtual folder "test" will also disappear, which will lead to an error in the number of files in the object storage file list. To address this, this application provides an object storage processing method.

[0053] The object storage processing method provided in this application embodiment can be applied to a terminal, and the internal structure diagram of the terminal can be as follows: Figure 1 As shown, the terminal includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an object storage processing method. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the terminal casing, or an external keyboard, touchpad, or mouse. The terminal can be, but is not limited to, a personal computer, laptop, smartphone, tablet, or portable wearable device. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc.

[0054] In one embodiment, such as Figure 2 As shown, an object storage processing method is provided. This embodiment applies this method to objects such as... Figure 1 The terminal shown is used as an example. In this embodiment, the method includes the following steps:

[0055] Step 200: Receive the folder object creation instruction.

[0056] When a folder object needs to be created, the user enters the folder object creation command in the terminal's input interface, and the terminal receives the command. This command includes candidate names for the folder object to be created.

[0057] In one optional embodiment, the terminal includes a folder object creation interface with a folder object creation control. When a user clicks the folder object creation control on the interface, the terminal receives a folder object creation instruction.

[0058] Step 210: Create the target folder object in the object storage pool based on the folder object creation instruction.

[0059] Upon receiving a folder object creation instruction, the terminal creates a target folder object in the object storage pool according to the instruction. Specifically, if the folder object creation instruction includes a candidate name for the created folder object, the terminal creates a target folder object with the candidate name in the object storage pool based on the instruction. This embodiment does not limit the specific method for creating the target folder object, as long as the functionality is achieved.

[0060] Step 220: If a creation instruction for a target file object is received, a target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0061] After creating the target folder object, if the terminal receives a creation instruction for a target file object (i.e., a target file object creation instruction), it creates the target file object in the object storage pool based on the name of the created target folder object. In other words, the name of the target file object created by the terminal is based on the name of the target folder object; that is, the name of the target file object includes candidate names of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed. In other words, the target folder object and the target file object are at the same level in the flat address space of the object storage pool, but when displayed on the terminal interface, they are shown in a hierarchical manner. This embodiment does not limit the specific method for creating the target file object, as long as the functionality is achieved.

[0062] In one specific embodiment, the target folder object is named test / , and the target file object is named test / 1.jpg. During display, the target file object 1.jpg is located one level below the target folder object test / .

[0063] The object storage processing method provided in this application includes receiving a folder object creation instruction; creating a target folder object in an object storage pool based on the folder object creation instruction; and if a creation instruction for a target file object is received, creating a target file object in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed. The object storage processing method provided in this embodiment creates a target folder object corresponding to the target file object. This target folder object actually exists, and when the target file object is deleted, the target folder object corresponding to it is not deleted. That is, when displayed, if the next-level target file object of the target folder object is deleted, the target folder object will not disappear, thus avoiding the problem of abnormal file counts and ensuring normal pagination of objects subsequently.

[0064] In one embodiment, an implementation method for creating a target folder object in an object storage pool based on a folder object creation instruction includes:

[0065] Based on the folder object creation instruction, the target folder object is created in the object storage pool according to the preset folder object naming method;

[0066] The default folder object naming method includes using the concatenation of the candidate name and the default identifier as the name of the folder object.

[0067] When the terminal creates a folder object based on the received folder object creation instruction, it names the created folder object according to a preset folder object naming method. This preset naming method involves concatenating a candidate name and a preset identifier as the folder object's name. In other words, the created folder object's name includes both a candidate name and a preset identifier. The candidate name is the name included in the folder object creation instruction; that is, the name given to the created folder object by the user. The preset identifier is pre-set by the developer within the terminal. After obtaining the candidate name from the folder object creation instruction, the terminal concatenates the preset identifier with that candidate name to obtain the folder object's name. This embodiment does not limit the concatenation method of the candidate name and the preset identifier, nor the specific preset identifier, as long as the functionality is achieved.

[0068] In an optional embodiment, after receiving a candidate name from the folder object creation instruction, the terminal performs a normalization check on the candidate name, that is, checks whether the candidate name contains illegal characters. If the candidate name contains illegal characters, it indicates that the candidate name is not normal, and the terminal will send a prompt message to inform the user that the candidate name is incorrect and to re-enter the correct candidate name. If the candidate name does not contain illegal characters, it indicates that the candidate name is normal. Illegal characters refer to characters that cannot appear in folder names, and illegal characters can include: \ / * ? : | etc.

[0069] In an optional embodiment, when there is only one preset identifier, the concatenation method between the candidate name and the preset identifier can be that the preset identifier is appended to the beginning of the candidate name, i.e., the name of the folder object is preset identifier + candidate name; or the preset identifier is appended to the end of the candidate name, i.e., the name of the folder object is candidate name + preset identifier. When the preset identifier includes two preset identifiers, a first preset identifier and a second preset identifier, the concatenation method between the candidate name and the preset identifier can be that the candidate name is between the two preset identifiers, i.e., first preset identifier + candidate name + second preset identifier.

[0070] In one embodiment, the preset identifier includes a prefix and a separator. The prefix is ​​the identifier located at the beginning of the folder object's name, and the separator is the identifier located at the end of the folder object's name. That is, the concatenation of the candidate name and the preset identifier is: prefix + candidate name + separator. This embodiment does not limit the specific types of prefixes and separators, as long as they achieve the desired functionality. Optionally, the prefix is ​​!, and the separator is / .

[0071] In this embodiment, when creating a target folder object based on a folder object creation instruction, the target folder object is named using a preset folder object naming method that concatenates the candidate name and a preset identifier. This facilitates quick retrieval of the folder object based on its name, improving the practicality of the object storage processing method.

[0072] In one embodiment, such as Figure 3 As shown, when querying objects in the object storage pool, the object storage processing method also includes the following steps:

[0073] Step 300: Divide the target objects in the object storage pool into folder objects and file objects according to the preset identifier.

[0074] The target object can refer to all objects stored in the object storage pool, or it can refer to a subset of objects stored in the object storage pool. This embodiment does not limit the specific method for obtaining the target object.

[0075] After identifying the target object, the terminal divides it into folder objects and file objects based on a preset identifier. When creating a folder object, the preset identifier is added to its name, while the preset identifier is not included in the file object's name. Therefore, the terminal can divide the target object into folder objects and file objects using the preset identifier. Optionally, the terminal stores the divided folder objects in a folder object list and the file objects in a file object list. This embodiment does not limit the specific process of dividing the target object based on the preset identifier, as long as the function is achieved.

[0076] In one embodiment, one method for obtaining a target object includes the following steps:

[0077] Obtain the range indication information, and determine the target object within the storage range indicated by the range indication information from the objects contained in the object storage pool.

[0078] The range indication information can be input by the user and is used to indicate the location of the target object in the object storage pool. After obtaining the range indication information, the terminal retrieves the target object from the object storage pool according to the storage range (the location of the target object) indicated by the range indication information. This embodiment does not limit the specific content of the range indication information, as long as it enables the retrieval of the target object from the object storage pool based on the range indication information.

[0079] In this embodiment, the terminal directly determines the target object from the objects contained in the object storage pool based on the acquired range indication information. This determination method is simple and fast, and does not require obtaining all objects in the object storage pool before identifying the target object. This can improve the efficiency of determining the target object, thereby improving the efficiency and practicality of the object storage processing method.

[0080] In one embodiment, the range indication information includes an identifier bit and an object count. The identifier bit indicates the location of the marked object in the object storage pool, and the object count indicates the number of target objects retrieved. Both the identifier bit and the object count are input by the user into the terminal. This relates to an implementation method for determining target objects within the storage range indicated by the range indication information from the objects contained in the object storage pool. Figure 4 As shown, the steps of this implementation method include:

[0081] Step 400: In the object storage pool, determine the starting object corresponding to the identifier bit;

[0082] The terminal determines the object corresponding to the identifier bit in the object storage pool based on the identifier bit. This object is the starting object; that is, the acquisition of the target object begins from this object. This embodiment does not limit the specific method for determining the starting object corresponding to the identifier bit, as long as the function can be achieved.

[0083] In one optional embodiment, each object in the object storage pool has a unique identifier. After obtaining the identifier input by the user, the terminal matches the identifier with the identifiers of all objects in the object storage pool, and selects the object in the object storage pool whose identifier matches the first object as the starting object.

[0084] Step 410: Based on the number of objects, starting with the initial object, retrieve the target object from the object storage pool.

[0085] After determining the starting object, the terminal begins acquiring target objects from that starting object until the number of target objects acquired reaches the target number of objects. In other words, the terminal starts from the starting object and acquires multiple objects equal to the target number of objects; these multiple objects constitute the target objects. A target object is not a single object.

[0086] In this embodiment, the terminal can quickly and accurately obtain the target object from the object storage pool by using the identifier bit and the number of objects.

[0087] Step 310: Based on the partitioning results, perform paging on the target objects in the object storage pool to obtain multiple object pages.

[0088] The partitioning result refers to dividing the acquired target objects into folder objects and file objects. After obtaining the partitioning result (list of folder objects and list of file objects), the terminal performs pagination on the target objects retrieved from the object storage pool, resulting in multiple object pages. In other words, the terminal displays the target objects on different pages according to the partitioning result, with each page containing a preset number of objects. For example, if there are 100 target objects, and each page displays 10, then a total of 10 pages will display all the target objects.

[0089] Typically, the number of target objects retrieved from the object storage pool is large. In this embodiment, the target objects in the object storage pool are divided into folder objects and file objects according to preset identifiers. This distinguishes between folder objects and file objects within the target objects, i.e., folder objects and file objects are uniformly categorized. When paginating the target objects based on the categorization results, since folder objects and file objects are uniformly categorized, the phenomenon of overlapping display of folder objects and file objects on a single page can be avoided. This results in a user-friendly interface, making it easier for users to view the data and improving the practicality of the object storage processing method.

[0090] In one embodiment, such as Figure 5 As shown, this describes an implementation method for paging objects in an object storage pool based on the partitioning results to obtain multiple object pages. The steps of this implementation method include:

[0091] Step 500: Sort the target objects in the object storage pool according to the partitioning results so that the target objects meet the preset conditions after sorting. The preset conditions include that the folder object is located before the file object, or the file object is located before the folder object.

[0092] After determining the partitioning results (list of folder objects and list of file objects), the terminal sorts the target objects in the object storage pool to ensure that the sorted target objects meet preset conditions. Specifically, the list of folder objects and the list of file objects are sorted according to a preset order and then combined to obtain a combined object list. The order of the target objects in the combined object list satisfies the preset conditions. When combining the list of folder objects and the list of file objects, the sorting can be either folder objects first, then file objects, or file objects first, then folder objects; this embodiment does not impose any limitation on this.

[0093] Step 510: Perform pagination on the target objects in the sorted object storage pool to obtain multiple object pages.

[0094] After determining the sorted target objects, the terminal performs pagination on the target objects according to the order in which they are sorted, resulting in multiple object pages.

[0095] In one optional embodiment, if the target object satisfies the preset condition that folder objects precede file objects after sorting, then when the terminal performs pagination processing on the target object, it first displays folder objects and then file objects; that is, folder objects are displayed on the first few pages, and file objects are displayed after all folder objects have been displayed. Conversely, if the target object satisfies the preset condition that file objects precede folder objects after sorting, then when the terminal performs pagination processing on the target object, it first displays file objects and then file objects; that is, file objects are displayed on the first few pages, and folder objects are displayed after all file objects have been displayed.

[0096] In this embodiment, the divided target objects are sorted according to a preset order, and the sorted target objects are paginated so that the folder objects (file objects) are displayed first, followed by the file objects (folder objects), which facilitates viewing and improves the user experience.

[0097] In a specific embodiment, when the prefix is ​​! and the separator is / , the query for target objects in the storage pool is performed in name order. That is, objects with the prefix ! are searched first, followed by objects without the prefix ! (objects without a prefix in the target object). The retrieved target objects are thus sorted by folder objects. Using the prefix to query target objects can also determine the file objects corresponding to the folder objects. The sorted folder and file objects are then separated using a separator: objects ending with / are classified as folder objects, and objects not ending with / are classified as file objects.

[0098] In one embodiment, there can be multiple prefixes, such as ! or *. When querying target objects in the storage pool in name order, the system can first query objects with the prefix !, then objects with the prefix *, and finally objects without a prefix.

[0099] In one embodiment, such as Figure 6 As shown, the steps of the object storage processing method also include:

[0100] Step 600: Display the file hierarchy control corresponding to the target folder object in the object display interface.

[0101] The terminal includes an object display interface, which showcases the retrieved target objects. When displaying a target object, the user sees a file hierarchy control corresponding to the target folder object in the object display interface. This file hierarchy control displays the name of the target folder object. The user can manipulate this file hierarchy control to cause the object display interface to show objects at the next level below that file.

[0102] Step 610: After detecting a trigger operation on the file hierarchy control, display the file object control corresponding to the target file object.

[0103] During display, folder objects and file objects have a hierarchical relationship; that is, the next level down from a folder object is a file object. When the terminal detects a user interaction with the file hierarchy control, it displays the file object control corresponding to the target file object. This file object control displays the name of the file object. The user interaction with the file hierarchy control can be a click.

[0104] After detecting a trigger operation (click operation) on the file object space, display the specific object data corresponding to the target file object.

[0105] In this embodiment, folder objects and file objects are displayed in a hierarchical manner on the object display interface. This interface is the same as the display format of folders and files commonly used by users, which makes it easy for users to view and can improve the user experience, thereby improving the practicality of the object storage processing method.

[0106] Please see Figure 7 One embodiment of this application provides an object storage processing method, the steps of which include:

[0107] Step 700: Receive folder object creation instruction;

[0108] Step 710: Based on the folder object creation instruction, create the target folder object in the object storage pool according to the preset folder object naming method; wherein, the preset folder object naming method includes: using the concatenation result of the candidate name preset identifier as the name of the target folder object;

[0109] Step 720: If a creation instruction for a target file object is received, a target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0110] Step 730: When querying objects in the object storage pool, determine the starting object corresponding to the identifier in the object storage pool; based on the number of objects, retrieve the target object from the object storage pool starting from the starting object; wherein, the identifier and the number of objects are range indication information;

[0111] Step 740: Divide the target objects in the object storage pool into folder objects and file objects according to the preset identifiers; wherein, the preset identifiers include prefix characters and delimiters;

[0112] Step 750: Sort the target objects in the object storage pool according to the partitioning structure so that the target objects meet the preset conditions after sorting. The preset conditions include that the folder object is located before the file object, or the file object is located before the folder object.

[0113] Step 760: Perform pagination on the target objects in the sorted object storage pool to obtain multiple object pages.

[0114] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0115] Based on the same inventive concept, this application also provides an object storage processing apparatus for implementing the object storage processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more object storage processing apparatus embodiments provided below can be found in the limitations of the object storage processing method described above, and will not be repeated here.

[0116] In one embodiment, such as Figure 8 As shown, an object storage processing device 10 is provided, including: a receiving module 11, a first creation module 12, and a second creation module 13, wherein:

[0117] The receiving module 11 is used to receive folder object creation instructions.

[0118] The first creation module 12 is used to create a target folder object in the object storage pool based on the folder object creation instruction.

[0119] The second creation module 13 is used to create a target file object in the object storage pool based on the name of the target folder object if a creation instruction for the target file object is received, wherein the target folder object and the target file object have a hierarchical relationship when displayed.

[0120] In one embodiment, the first creation module 12 is specifically used to create a target folder object in the object storage pool based on the folder object creation instruction and according to a preset folder object naming method; wherein, the preset folder object naming method includes: using the concatenation result of the candidate name and the preset identifier as the name of the target folder object.

[0121] In one embodiment, the object storage processing device 10 includes a partitioning module and a processing module; wherein, the partitioning module is used to partition target objects in the object storage pool into folder objects and file objects according to a preset identifier; the processing module is used to perform paging processing on the target objects in the object storage pool according to the partitioning result to obtain multiple object pages.

[0122] In one embodiment, the partitioning module is specifically used to sort the target objects in the object storage pool according to the partitioning result, so that the target objects meet preset conditions after sorting. The preset conditions include that the folder object is located before the file object, or that the file object is located before the folder object; and to perform pagination processing on the target objects in the sorted object storage pool to obtain multiple object pages.

[0123] In one embodiment, the object storage processing apparatus 10 further includes an acquisition module. The acquisition module is used to acquire range indication information and determine, based on the range indication information, a target object located within the storage range indicated by the range indication information among the objects contained in the object storage pool.

[0124] In one embodiment, the acquisition module is specifically used to determine the starting object corresponding to the identifier in the object storage pool; and to acquire the target object from the object storage pool starting from the starting object, based on the number of objects.

[0125] In one embodiment, the preset identifier includes a prefix and a separator.

[0126] In one embodiment, the object storage processing device 10 further includes a display module. The display module is used to display a file hierarchy control corresponding to the target folder object in an object display interface; and to display a file object control corresponding to the target file object after detecting a trigger operation on the file hierarchy control.

[0127] Each module in the aforementioned object storage processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0128] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 1 As shown.

[0129] Those skilled in the art will understand that Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0131] Receive folder object creation instructions;

[0132] Create the target folder object in the object storage pool based on the folder object creation instruction;

[0133] If a creation instruction for a target file object is received, the target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0134] In one embodiment, when the processor executes the computer program, it further performs the following steps: based on the folder object creation instruction, it creates a target folder object in the object storage pool according to a preset folder object naming method; wherein the preset folder object naming method includes: using the concatenation result of the candidate name and the preset identifier as the name of the target folder object.

[0135] In one embodiment, when the processor executes the computer program, it further performs the following steps: dividing the target objects in the object storage pool into folder objects and file objects according to a preset identifier; and performing paging processing on the target objects in the object storage pool according to the partitioning result to obtain multiple object pages.

[0136] In one embodiment, when the processor executes the computer program, it further performs the following steps: sorting the target objects in the object storage pool according to the partitioning result so that the target objects meet preset conditions after sorting, the preset conditions including that the folder object is located before the file object, or that the file object is located before the folder object; and performing paging processing on the sorted target objects in the object storage pool to obtain multiple object pages.

[0137] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining range indication information and determining, based on the range indication information, a target object located within the storage range indicated by the range indication information among the objects contained in the object storage pool.

[0138] In one embodiment, when the processor executes the computer program, it further performs the following steps: in the object storage pool, determining the starting object corresponding to the identifier bit; and, based on the number of objects, retrieving the target object from the object storage pool, starting with the starting object.

[0139] In one embodiment, the preset identifier includes a prefix and a separator.

[0140] In one embodiment, when the processor executes the computer program, it further performs the following steps: displaying a file hierarchy control corresponding to the target folder object in an object display interface; and displaying a file object control corresponding to the target file object after detecting a trigger operation on the file hierarchy control.

[0141] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0142] Receive folder object creation instructions;

[0143] Create the target folder object in the object storage pool based on the folder object creation instruction;

[0144] If a creation instruction for a target file object is received, the target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0145] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the folder object creation instruction, creating a target folder object in the object storage pool according to a preset folder object naming method; wherein, the preset folder object naming method includes: using the concatenation result of the candidate name and the preset identifier as the name of the target folder object.

[0146] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: dividing the target objects in the object storage pool into folder objects and file objects according to a preset identifier; and performing paging processing on the target objects in the object storage pool according to the partitioning result to obtain multiple object pages.

[0147] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sorting the target objects in the object storage pool according to the partitioning result so that the target objects meet preset conditions after sorting, the preset conditions including that the folder object is located before the file object, or that the file object is located before the folder object; and performing paging processing on the sorted target objects in the object storage pool to obtain multiple object pages.

[0148] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining range indication information and determining, based on the range indication information, a target object located within the storage range indicated by the range indication information among the objects contained in the object storage pool.

[0149] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the starting object corresponding to the identifier in the object storage pool; and retrieving the target object from the object storage pool, starting with the starting object, according to the number of objects.

[0150] In one embodiment, the preset identifier includes a prefix and a separator.

[0151] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying a file hierarchy control corresponding to the target folder object in an object display interface; and displaying a file object control corresponding to the target file object after detecting a trigger operation on the file hierarchy control.

[0152] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0153] Receive folder object creation instructions;

[0154] Create the target folder object in the object storage pool based on the folder object creation instruction;

[0155] If a creation instruction for a target file object is received, the target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object have a hierarchical relationship when displayed.

[0156] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: based on the folder object creation instruction, creating a target folder object in the object storage pool according to a preset folder object naming method; wherein, the preset folder object naming method includes: using the concatenation result of the candidate name and the preset identifier as the name of the target folder object.

[0157] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: dividing the target objects in the object storage pool into folder objects and file objects according to a preset identifier; and performing paging processing on the target objects in the object storage pool according to the partitioning result to obtain multiple object pages.

[0158] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sorting the target objects in the object storage pool according to the partitioning result so that the target objects meet preset conditions after sorting, the preset conditions including that the folder object is located before the file object, or that the file object is located before the folder object; and performing paging processing on the sorted target objects in the object storage pool to obtain multiple object pages.

[0159] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining range indication information and determining, based on the range indication information, a target object located within the storage range indicated by the range indication information among the objects contained in the object storage pool.

[0160] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the starting object corresponding to the identifier in the object storage pool; and retrieving the target object from the object storage pool, starting with the starting object, according to the number of objects.

[0161] In one embodiment, the preset identifier includes a prefix and a separator.

[0162] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying a file hierarchy control corresponding to the target folder object in an object display interface; and displaying a file object control corresponding to the target file object after detecting a trigger operation on the file hierarchy control.

[0163] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0164] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0165] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. An object storage processing method, characterized in that, The method includes: Receive folder object creation instructions; Create the target folder object in the object storage pool based on the folder object creation instruction; If a creation instruction for a target file object is received, the target file object is created in the object storage pool based on the name of the target folder object. The target folder object and the target file object are at the same level in the flat address space of the object storage pool, and the target folder object and the target file object have a hierarchical relationship when displayed. If the target file object is deleted, the target folder object corresponding to the target file object will not be deleted.

2. The method according to claim 1, characterized in that, The step of creating a target folder object in the object storage pool based on the folder object creation instruction includes: Based on the folder object creation instruction, the target folder object is created in the object storage pool according to the preset folder object naming method; The naming method for the preset folder object includes: using the concatenation result of the candidate name and the preset identifier as the name of the target folder object.

3. The method according to claim 2, characterized in that, The method further includes: Based on the preset identifier, the target objects in the object storage pool are divided into folder objects and file objects; Based on the partitioning results, the target objects in the object storage pool are paginated to obtain multiple object pages.

4. The method according to claim 3, characterized in that, The step of paging objects in the object storage pool based on the partitioning results to obtain multiple object pages includes: The target objects in the object storage pool are sorted according to the partitioning results so that the target objects meet preset conditions after sorting. The preset conditions include that the folder object is located before the file object, or that the file object is located before the folder object. The target objects in the sorted object storage pool are paginated to obtain the multiple object pages.

5. The method according to claim 3 or 4, characterized in that, The method further includes: Obtain range indication information, and determine the target object located within the storage range indicated by the range indication information among the objects contained in the object storage pool based on the range indication information.

6. The method according to claim 5, characterized in that, The range indication information includes an identifier bit and the number of objects. Determining the target object within the storage range indicated by the range indication information from the objects contained in the object storage pool, based on the range indication information, includes: In the object storage pool, determine the starting object corresponding to the identifier bit; Based on the number of objects, starting with the initial object, the target object is retrieved from the object storage pool.

7. The method according to claim 1, characterized in that, The method further includes: The file hierarchy control corresponding to the target folder object is displayed in the object display interface; After detecting a trigger operation on the file hierarchy control, the file object control corresponding to the target file object is displayed.

8. An object storage processing apparatus, characterized in that, The device includes: The receiving module is used to receive folder object creation instructions; The first creation module is used to create a target folder object in the object storage pool based on the folder object creation instruction; The second creation module is used to create the target file object in the object storage pool based on the name of the target folder object if a creation instruction for the target file object is received. The target folder object and the target file object are at the same level in the flat address space of the object storage pool, and the target folder object and the target file object have a hierarchical relationship when displayed. If the target file object is deleted, the target folder object corresponding to the target file object will not be deleted.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data processing method, system and device, storage medium and electronic equipment

    CN114895852A

  • Data access method, device and equipment and computer readable storage medium

    CN114968937A