CN111241097B - Method for processing object, device for processing object and storage medium - Google Patents

Method for processing object, device for processing object and storage medium Download PDF

Info

Publication number
CN111241097B
CN111241097B CN202010019648.9A CN202010019648A CN111241097B CN 111241097 B CN111241097 B CN 111241097B CN 202010019648 A CN202010019648 A CN 202010019648A CN 111241097 B CN111241097 B CN 111241097B
Authority
CN
China
Prior art keywords
data
storage space
target object
storage
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010019648.9A
Other languages
Chinese (zh)
Other versions
CN111241097A (en
Inventor
周应超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Pinecone Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Pinecone Electronic Co Ltd
Priority to CN202010019648.9A priority Critical patent/CN111241097B/en
Publication of CN111241097A publication Critical patent/CN111241097A/en
Application granted granted Critical
Publication of CN111241097B publication Critical patent/CN111241097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof

Landscapes

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

Abstract

The present disclosure relates to a method, apparatus and storage medium for processing an object. The method comprises the following steps: acquiring first data and second data, wherein the first data is data of a target object, and the second data is metadata of the target object; determining a first storage space and a second storage space which are mutually independent in a target storage space of a target object; storing the first data in a first storage space and storing the second data in a second storage space; if the second data is modified, determining an idle third storage space in the target storage space; and storing the modified second data in a third storage space. According to the embodiment of the disclosure, the first data and the second data of the target object are independently stored, and when the second data of the target object is independently modified, the first data is not required to be read, so that the second data is independently read. And the modified second data is stored in the third storage space, so that the storage cost can be reduced, and the resources are saved.

Description

Method for processing object, device for processing object and storage medium
Technical Field
The present disclosure relates to the field of storage technologies, and in particular, to a method for processing an object, an apparatus for processing an object, and a storage medium.
Background
An object storage system is a form of storage system, and object storage is also referred to as object-based storage. In an object storage system, objects are in the same hierarchical structure of a flat address space, i.e. one object does not belong to the next level of another object.
An object is a basic unit in an object storage system, and includes object data and object attributes. Object attributes such as modification information of an object, type information of object containing data, creation information of an object, and the like.
In a conventional object storage system, the object attribute and the object data are stored as a whole, when a user needs to modify the object attribute, the user needs to read the object data and the object attribute, and after the modification is completed, the user needs to upload the object data and the object attribute as a whole again. When the data of the object is large, inconvenience is brought to the user for modifying the attribute of the object.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method of processing an object, an apparatus for processing an object, and a storage medium.
According to an aspect of the present embodiment, there is provided a method of processing an object, including: acquiring first data and second data, wherein the first data is data of a target object, and the second data is metadata of the target object; determining a first storage space and a second storage space which are mutually independent in a target storage space of a target object; storing the first data in a first storage space and storing the second data in a second storage space; if the second data is modified, determining an idle third storage space in the target storage space; and storing the modified second data in a third storage space.
In an embodiment, the method further comprises: and clearing the second data stored in the second storage space.
In an embodiment, the first storage space and the second storage space are independent and adjacent target object storage spaces in the target object storage space.
In an embodiment, the method further comprises: acquiring a first data identifier and a second data identifier, wherein the first data identifier is used for identifying first data, and the second data identifier is used for identifying second data; establishing a first index relation between a first data identifier and a first storage space; establishing a second index relation between a second data identifier and a second storage space; and establishing an index relation table, wherein the index relation table indicates the corresponding relation among the target object, the first index relation and the second index relation.
According to still another aspect of the present embodiment, there is provided an apparatus for processing an object, including an acquisition unit configured to acquire first data, which is data of a target object, and second data, which is metadata of the target object; a determining unit configured to determine a first storage space and a second storage space that are independent of each other in a target storage space of a target object, and determine an empty third storage space in the target storage space when it is determined that the second data is modified; and the storage unit is used for storing the first data in the first storage space, storing the second data in the second storage space and storing the modified second data in the third storage space.
In one embodiment, the object storage device further comprises: and the clearing unit is used for clearing the second data stored in the second storage space.
In an embodiment, the first storage space and the second storage space are independent and adjacent target object storage spaces in the target object storage space.
In an embodiment, the obtaining unit is further configured to obtain a first data identifier and a second data identifier, where the first data identifier is used to identify the first data, and the second data identifier is used to identify the second data; the object storage device further includes: a building unit; the establishing unit is used for establishing a first index relation between the first data identifier and the first storage space, establishing a second index relation between the second data identifier and the second storage space and establishing an index relation table; the index relationship table indicates correspondence between the target object, the first index relationship, and the second index relationship.
According to still another aspect of the embodiments of the present disclosure, there is provided an apparatus for processing an object, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: a method of processing an object according to any preceding claim.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the method of processing an object of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the first data and the second data are acquired, the first data is the data of the target object, the second data is the metadata of the target object, a first storage space and a second storage space which are mutually independent are determined in a target storage space of the target object, the first data are stored in the first storage space, and the second data are stored in the second storage space, so that independent storage of the first data and the second data of the target object is realized. If the second data is modified, determining an idle third storage space in the target storage space, and storing the modified second data in the third storage space, so that when the second data of the target object is modified independently, the second data can be read in the second storage space and modified, the first data is not required to be read, and independent reading of the second data is realized. And the modified second data is stored in the third storage space, so that the storage space of the first data is not required to be determined, further, the storage cost can be reduced, and the resources are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of processing an object according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a method of processing an object according to another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a method of processing an object according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating an apparatus for processing an object according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus for processing an object according to still another exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating an apparatus for processing an object according to still another exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram of an apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The embodiment discloses a method for processing an object, which can be applied to a terminal. The terminal may be, for example, a smart phone, a tablet computer, a wearable device, a PC, or the like. Referring to fig. 1, fig. 1 is a flowchart illustrating a method of processing an object according to an exemplary embodiment. As shown in fig. 1, the method of processing an object includes the following steps.
In step S101, first data and second data are acquired, the first data being data of a target object, and the second data being metadata of the target object.
The method for processing the object is applied to an object storage system, and object storage is storage based on the object, and stored data is respectively processed as a single target object in a linear storage structure. Multiple target objects are in the same hierarchy.
The target object comprises first data and second data, wherein the first data is the data of the target object, and the second data is the metadata of the target object. Metadata of the object, that is, data describing the target object may be information describing an attribute of the target object, and may be creator information of the target object, data type information contained in the object, or data type of the object.
In step S102, a first storage space and a second storage space that are independent of each other are determined in the target storage space of the target object.
In a target storage space of a target object, a first storage space and a second storage space are determined, and the first storage space and the second storage space are independent of each other. The first storage space and the second storage space may be free spaces in the target storage space, wherein the first storage space meets a requirement of first data of the target object for the storage space, and the second storage space meets a requirement of second data of the target object for the storage space.
It is understood that the first storage space and the second storage space may or may not be adjacent, which is not limited by the present disclosure.
In step S103, the first data is stored in the first storage space, and the second data is stored in the second storage space.
The data of the target object itself, i.e. the first data, is stored in the first storage space, and the metadata of the target object, i.e. the second data, is stored in the second storage space. The first storage space and the second storage space are mutually independent, so that the first data of the target object and the second data of the target object are respectively stored, and the first data of the target object and the second data of the target object are subjected to independent reading operation.
In step S104, if it is determined that the second data is modified, an empty third storage space is determined in the target storage space.
In the current object storage system, when the first data and the second data of the target object are stored in the same storage space, the whole of the first data and the second data of the target object needs to be read when the second data of the target object is modified. And modifying the second data of the target object, and uploading the whole of the first data and the second data of the target object again after the modification is completed.
In the above-mentioned modification process of the second data of the target object, the data amount of the first data of the target object is large compared with the data amount of the second data, and the whole of the first data and the second data of the target object is read and stored again, so that the resource consumption is large and the storage efficiency is low.
In this embodiment, when it is determined to perform modification of the second data of the target object, for example, modification of the final modification time and/or creator information of the target object in the second data, the second data of the target object is read in the second storage space, and only the second data is modified. In the modification process of the second data of the target object, the operation of reading and/or storing the first data of the target object is not needed.
And determining an idle third storage space in the target storage space for storing the second data of the modified target object.
The third storage space may be free space in the target storage space that meets the storage space requirements of the modified second data of the target object. The third storage space may or may not be adjacent to the first storage space.
In step S105, the modified second data is stored in the third storage space.
After the second data of the target object is modified, the modified second data is stored in the third storage space. Based on the separate storage of the first data and the second data of the target object, the second data of the target object can be independently modified, the storage burden of a storage system is saved, resources are saved, the storage efficiency is improved, and the performance of the second data operation for modifying the target object in the object storage system is improved.
According to the embodiment of the disclosure, by acquiring the first data and the second data, wherein the first data is the data of the target object, the second data is the metadata of the target object, the first storage space and the second storage space which are mutually independent are determined in the target storage space of the target object, the first data is stored in the first storage space, and the second data is stored in the second storage space, so that the independent storage of the first data and the second data of the target object is realized. If the second data is modified, determining an idle third storage space in the target storage space, and storing the modified second data in the third storage space, so that when the second data of the target object is modified independently, the second data can be read in the second storage space and modified, the first data is not required to be read, and independent reading of the second data is realized. And the modified second data is stored in the third storage space, so that the storage space of the first data is not required to be determined, further, the storage cost can be reduced, and the resources are saved.
The present embodiment discloses another method of processing an object. Referring to fig. 2, fig. 2 illustrates a flowchart of a method of processing an object according to another exemplary embodiment of the present disclosure. As shown in fig. 2, the method of processing an object includes the following steps.
In step S201, first data and second data are acquired, the first data is data of a target object, and the second data is metadata of the target object.
In step S202, a first storage space and a second storage space that are independent of each other are determined in the target storage space of the target object.
In step S203, the first data is stored in the first storage space, and the second data is stored in the second storage space.
In step S204, if it is determined that the second data is modified, an empty third storage space is determined in the target storage space.
In step S205, the modified second data is stored in the third storage space.
In step S206, the second data stored in the second storage space is cleared.
And clearing the second data stored in the second storage space, and recovering the free space in the target storage space, so that the free space can be reused, the free space of the storage space is reduced, and the resources are further saved.
In an embodiment, the first storage space is adjacent to the second storage space, and when the first data of the target object and the second data of the target object are read, modified or stored, the storage efficiency is improved, and resource waste is avoided.
The present embodiment discloses another method of processing an object. Referring to fig. 3, fig. 3 illustrates a flowchart of a method of processing an object according to another exemplary embodiment of the present disclosure. As shown in fig. 3, the method of processing an object includes the following steps.
In step S301, a first data identifier and a second data identifier are acquired.
The first data identifies first data for identifying the target object and the second data identifies second data for identifying the target object.
In an object storage system, a plurality of target objects belong to the same hierarchical structure. The server or the user accesses the data of the target object and the metadata of the target object respectively by acquiring the first data identifier and the second data identifier of the target object.
In step S302, a first index relationship between the first data identifier and the first storage space is established.
In step S303, a second index relationship between the second data identifier and the second storage space is established.
In step S304, an index relationship table is established, which indicates correspondence among the target object, the first index relationship, and the second index relationship.
And respectively establishing a first index relation between the first data identification of the target object and the first storage space and a second index relation between the second data identification of the target object and the second storage space.
For example, the first storage space of the target object may be represented by a storage address in the target storage space, and the storage address of the target storage space may be represented by a character string. The first storage space corresponding to the first data can be determined through the first data identifier, and the second storage space corresponding to the second data can be determined through the second data identifier.
And respectively reading, modifying and/or storing the first data and the second data of the target object in the first storage space and the second storage space.
The server or the user can determine the storage space of the first data and/or the second data through the corresponding first data identification and/or the second data identification of the target object in the index relation table by acquiring the index relation table, so that the process of data storage in the object storage system is simplified, and the storage efficiency is improved.
In step S305, first data and second data are acquired, the first data is data of the target object, and the second data is metadata of the target object.
In step S306, a first storage space and a second storage space that are independent of each other are determined in the target storage space of the target object.
In step S307, the first data is stored in the first storage space, and the second data is stored in the second storage space.
In step S308, if it is determined that the second data is modified, an empty third storage space is determined in the target storage space.
In step S309, the modified second data is stored in the third storage space.
Based on one inventive concept, the present disclosure also provides an apparatus for processing an object.
Fig. 4 is a block diagram of an apparatus for processing an object according to an exemplary embodiment of the present disclosure. As shown in fig. 4, the apparatus 200 for processing an object includes: an acquisition unit 210, a determination unit 220 and a storage unit 230.
The obtaining unit 210 is configured to obtain first data and second data, where the first data is data of a target object, and the second data is metadata of the target object.
A determining unit 210, configured to determine a first storage space and a second storage space that are independent of each other in the target storage space of the target object, and determine a free third storage space in the target storage space when it is determined that the second data is modified.
And a storage unit 220, configured to store first data in a first storage space, store second data in a second storage space, and store the modified second data in the third storage space.
Fig. 5 is a block diagram of an apparatus for processing an object according to still another exemplary embodiment of the present disclosure. As shown in fig. 5, the apparatus 200 for processing an object further includes: the unit 240 is cleared.
And a clearing unit 240, configured to clear the second data stored in the second storage space.
In an embodiment, the first storage space and the second storage space are independent and adjacent target object storage spaces in the target object storage space.
In one embodiment, the object has an object identification, the object data has a data identification, and the object attribute has an attribute identification.
Fig. 6 is a block diagram of an apparatus for processing an object according to still another exemplary embodiment of the present disclosure. As shown in fig. 6, the apparatus 200 for processing an object further includes: the unit 250 is established.
The obtaining unit 210 is further configured to obtain a first data identifier and a second data identifier, where the first data identifier is used to identify the first data, and the second data identifier is used to identify the second data.
The establishing unit 250 is configured to establish a first index relationship between the first data identifier and the first storage space, establish a second index relationship between the second data identifier and the second storage space, and establish an index relationship table. The index relationship table indicates correspondence between the target object, the first index relationship, and the second index relationship.
With respect to the apparatus in the above embodiments, the specific manner in which the various modules perform the operations has been described with respect to the embodiments of the method.
Fig. 7 is a block diagram illustrating an apparatus 600 for processing objects according to an example embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power supply components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the apparatus 600, the sensor assembly 614 may also detect a change in position of the apparatus 600 or one of the components of the apparatus 600, the presence or absence of user contact with the apparatus 600, the orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the methods of processing objects described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform a method of any of the processing objects as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A method of processing an object, comprising:
acquiring first data and second data, wherein the first data is data of a target object, and the second data is metadata of the target object;
acquiring a first data identifier and a second data identifier, wherein the first data identifier is used for identifying first data, and the second data identifier is used for identifying second data;
establishing a first index relation between the first data identifier and a first storage space;
establishing a second index relation between the second data identifier and a second storage space;
establishing an index relation table, wherein the index relation table indicates the corresponding relation among the target object, the first index relation and the second index relation;
determining a first storage space and a second storage space which are mutually independent in a target storage space of the target object;
storing the first data in the first storage space and the second data in the second storage space;
if the second data is modified, determining an idle third storage space in the target storage space;
storing the modified second data in the third storage space;
the first index relation enables the first data to identify and determine the first storage space corresponding to the first data, and the second index relation enables the second data to determine the second storage space corresponding to the second data.
2. The method according to claim 1, wherein the method further comprises:
and clearing the second data stored in the second storage space.
3. The method of claim 1, wherein the first storage space and the second storage space are independent and adjacent ones of the target object storage spaces.
4. An apparatus for processing an object, comprising:
the device comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring first data and second data, the first data is data of a target object, and the second data is metadata of the target object;
the acquisition unit is further configured to acquire a first data identifier and a second data identifier, where the first data identifier is used to identify first data, and the second data identifier is used to identify second data;
the apparatus for processing an object further includes: a building unit;
the establishing unit is used for establishing a first index relation between the first data identifier and the first storage space, establishing a second index relation between the second data identifier and the second storage space and establishing an index relation table;
the index relation table indicates a correspondence relation among the target object, the first index relation and the second index relation;
a determining unit, configured to determine a first storage space and a second storage space that are independent of each other in a target storage space of the target object, and determine an empty third storage space in the target storage space when it is determined that the second data is modified;
a storage unit, configured to store the first data in the first storage space, store the second data in the second storage space, and store the modified second data in the third storage space;
the first index relation enables the first data to identify and determine the first storage space corresponding to the first data, and the second index relation enables the second data to determine the second storage space corresponding to the second data.
5. The apparatus of claim 4, wherein the apparatus further comprises:
and the clearing unit is used for clearing the second data stored in the second storage space.
6. The apparatus of claim 4, wherein the first storage space and the second storage space are independent and adjacent ones of the target object storage spaces.
7. An apparatus for processing an object, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: a method of performing the processing of an object of any one of claims 1 to 3.
8. A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform the method of processing an object according to any one of claims 1 to 3.
CN202010019648.9A 2020-01-08 2020-01-08 Method for processing object, device for processing object and storage medium Active CN111241097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010019648.9A CN111241097B (en) 2020-01-08 2020-01-08 Method for processing object, device for processing object and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010019648.9A CN111241097B (en) 2020-01-08 2020-01-08 Method for processing object, device for processing object and storage medium

Publications (2)

Publication Number Publication Date
CN111241097A CN111241097A (en) 2020-06-05
CN111241097B true CN111241097B (en) 2024-03-12

Family

ID=70865217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010019648.9A Active CN111241097B (en) 2020-01-08 2020-01-08 Method for processing object, device for processing object and storage medium

Country Status (1)

Country Link
CN (1) CN111241097B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049539A (en) * 2012-12-25 2013-04-17 华为技术有限公司 Method and device for storing file data in file system
CN104298681A (en) * 2013-07-18 2015-01-21 华为技术有限公司 Data storage method and device
CN105740303A (en) * 2014-12-12 2016-07-06 国际商业机器公司 Improved object storage method and apparatus
CN106354432A (en) * 2016-08-30 2017-01-25 北京小米移动软件有限公司 Data modification method and device
CN109241178A (en) * 2018-07-20 2019-01-18 华为技术有限公司 The method and apparatus for managing memory space
CN110427364A (en) * 2019-06-21 2019-11-08 北京奇艺世纪科技有限公司 A kind of data processing method, device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8959301B2 (en) * 2012-11-09 2015-02-17 International Business Machines Corporation Accessing data in a storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049539A (en) * 2012-12-25 2013-04-17 华为技术有限公司 Method and device for storing file data in file system
CN104298681A (en) * 2013-07-18 2015-01-21 华为技术有限公司 Data storage method and device
CN105740303A (en) * 2014-12-12 2016-07-06 国际商业机器公司 Improved object storage method and apparatus
CN106354432A (en) * 2016-08-30 2017-01-25 北京小米移动软件有限公司 Data modification method and device
CN109241178A (en) * 2018-07-20 2019-01-18 华为技术有限公司 The method and apparatus for managing memory space
CN110427364A (en) * 2019-06-21 2019-11-08 北京奇艺世纪科技有限公司 A kind of data processing method, device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
H2Cloud: Maintaining the Whole Filesystem in an Object Storage Cloud;Zhao, MH et al.;PROCEEDINGS OF THE 47TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING;20180813;第1-10页 *
频繁更新移动对象的索引方法;孙冬璞 等;计算机工程;20131115;第52-56页 *

Also Published As

Publication number Publication date
CN111241097A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN106201734B (en) File sharing method and device
CN106919629B (en) Method and device for realizing information screening in group chat
CN104462296B (en) File management method and device and terminal
US9959487B2 (en) Method and device for adding font
CN107608714B (en) Byte alignment method, device and computer readable storage medium
CN107402767B (en) Method and device for displaying push message
CN105468606B (en) Webpage saving method and device
CN106447747B (en) Image processing method and device
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107885571B (en) Display page control method and device
CN113778687B (en) Memory allocation information processing method and device, electronic equipment and storage medium
CN107193530B (en) Method and device for generating random number
CN112860625B (en) Data acquisition method, data storage method, device, equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN110457084B (en) Loading method and device
CN107679205B (en) Multimedia data playing method and device, computer equipment and storage medium
CN108021399B (en) Note processing method, device and equipment and storage medium
CN111724398A (en) Image display method and device
CN113157703B (en) Data query method and device, electronic equipment and storage medium
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN111414245B (en) Method, device and medium for controlling flash memory read-write rate
CN117093267B (en) Storage method, device, equipment and storage medium for branch instruction jump address
CN111273910B (en) Method, device and storage medium for acquiring resource number identifier

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing

Applicant after: Beijing Xiaomi pinecone Electronic Co.,Ltd.

Address before: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing

Applicant before: BEIJING PINECONE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant