CN104424109A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN104424109A
CN104424109A CN201310406801.3A CN201310406801A CN104424109A CN 104424109 A CN104424109 A CN 104424109A CN 201310406801 A CN201310406801 A CN 201310406801A CN 104424109 A CN104424109 A CN 104424109A
Authority
CN
China
Prior art keywords
data
storage
storage unit
deleted
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310406801.3A
Other languages
Chinese (zh)
Other versions
CN104424109B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310406801.3A priority Critical patent/CN104424109B/en
Publication of CN104424109A publication Critical patent/CN104424109A/en
Application granted granted Critical
Publication of CN104424109B publication Critical patent/CN104424109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses an information processing method and electronic equipment, relates to the technical field of storage, and is applicable to improvement of the management efficiency of a local storage space, realizing reliable management of the local storage space and improving the user experience. According to the specific scheme, the method comprises the following steps: acquiring a specific storage event, wherein the specific storage event is used for indicating that to-be-stored data is to be stored on storage cells, the to-be-stored data occupies K storage cells, and K is greater than M-N; determining to-be-deleted data from first data, wherein the to-be-deleted data occupies L storage cells, L is equal to K-(M-N), the to-be-deleted data and an index record have incidence relation, and the index record is used for determining second data corresponding to the to-be-deleted data from a server; deleting the to-be-deleted data to guarantee that the storage cells have the remaining storage space of K storage cells; storing the to-be-stored data in the remaining storage space of the storage cells. The method is used in a local storage process of the data.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of storage technologies, and in particular, to an information processing method and an electronic device.
Background
With the development of science and technology, the amount of information taken in by people in daily life, work and learning processes is gradually increased, the storage requirements of people on various data are increased day by day, and the requirements on the storage space of an electronic terminal are increased more and more.
In the prior art, an electronic terminal user can delete data backed up to a cloud server in a local storage space when the local storage space of the electronic terminal cannot meet the new data storage requirement of the user, so that a storage space enough for storing the data to be stored is provided for the data to be stored.
However, there are problems in that: when the local storage space of the electronic terminal cannot meet the new data storage requirement of the user, the user needs to manually identify which data in the electronic terminal can be deleted, namely which data are backed up to the cloud server, so that the data storage efficiency is low, the probability of mistaken deletion of local data which is not backed up to the cloud server is high, and the user experience is poor.
Disclosure of Invention
Embodiments of the present invention provide an information processing method and an electronic device, which can improve the management efficiency of a local storage space, implement reliable management of the local storage space, and improve user experience.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect of the embodiments of the present invention, an information processing method is provided, where the method is applied to an electronic device, where the electronic device includes a storage unit, a storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; the method comprises the following steps:
obtaining a specific storage event, wherein the specific storage event is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N;
determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from a service terminal;
deleting the data to be deleted so that the storage unit has the residual storage space of K storage units;
and storing the data to be stored in the residual storage space of the storage unit.
With reference to the first aspect, in a possible implementation manner, the information processing method further includes:
and reserving the object identifier corresponding to the data to be deleted, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when acquiring the trigger operation aiming at the object identifier.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the obtaining a specific storage event includes:
obtaining a recording event; the recording event comprises: at least one of document recording, voice recording, and video recording;
responding to the recording event, and acquiring acquired data in real time through an acquisition unit of the electronic equipment; the acquired data is used as data to be stored and stored on the storage unit in real time;
recording the data volume of the acquired data generated in the first time period, and determining the corresponding relation between the time period and the generated data volume;
determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation and the residual storage space of the storage unit;
the specific storage event is generated when the logging event is performed to the P-1 time period.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining data to be deleted from the first data includes:
determining data with index records from the first data;
and taking the data with the index record as data to be deleted.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the information processing method further includes:
if the data which is backed up to the service terminal in the first data belongs to the data to be deleted, recording an access mode of the data backed up to the service terminal, wherein the access mode is used as the index record;
or,
if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording the acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as the index record.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the information processing method further includes:
if the data in the first data does not belong to the data to be deleted, acquiring characteristic information of the first data;
determining whether the service terminal has data conforming to the characteristic information of the first data;
if the service terminal has data which accords with the characteristic information of the first data, establishing an index record of the data which accords with the characteristic information; and the data conforming to the characteristic information is the second data.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the information processing method further includes:
when the storage unit of the remaining storage space of the storage unit is larger than a preset storage unit threshold, acquiring the second data from the service terminal according to the index record, and storing the acquired second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier.
In a second aspect of the embodiments of the present invention, an electronic device is further provided, where the electronic device includes a storage unit, a storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; the electronic device includes:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a specific storage event which is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N;
a determining unit, configured to determine, after the obtaining unit obtains the specific storage event, to-be-deleted data from the first data, where the to-be-deleted data occupies L storage units, and L = K- (M-N), and the to-be-deleted data has an association relationship with an index record, and the index record is used to determine, from a service terminal, second data corresponding to the to-be-deleted data;
the deleting unit is used for deleting the data to be deleted determined by the determining unit so that the storage unit has the residual storage space of K storage units;
the storage unit is configured to store the data to be stored indicated by the obtaining unit in the remaining storage space of the storage unit.
With reference to the second aspect, in a possible implementation manner, the electronic device further includes:
and the reservation unit is used for reserving the object identifier corresponding to the data to be deleted, which is determined by the determination unit, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when the electronic equipment obtains the trigger operation aiming at the object identifier.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the obtaining unit includes:
the acquisition module is used for acquiring a recording event; the recording event comprises: at least one of document recording, voice recording, and video recording;
the response module is used for responding to the recording event obtained by the obtaining module and obtaining the collected data in real time through a collecting unit of the electronic equipment; the acquired data is used as data to be stored and stored on the storage unit in real time;
the recording module is used for recording the data volume of the acquired data generated in the first time period and determining the corresponding relation between the time period and the generated data volume;
the determining module is used for determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation determined by the recording module and the residual storage space of the storage unit;
a generating module, configured to generate the specific storage event when the recording event is executed to the P-1 time period determined by the determining module.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining unit is specifically configured to determine data with an index record from the first data; and taking the data with the index record as data to be deleted.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the electronic device further includes:
a recording unit, configured to record, if data that has been backed up to a service terminal in the first data belongs to the to-be-deleted data, an access manner of the data backed up to the service terminal, where the access manner is used as the index record;
or,
the recording unit is configured to, if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording the acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as the index record.
With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the obtaining unit is further configured to obtain feature information of the first data if the data in the first data does not belong to the data to be deleted;
the determining unit is further configured to determine whether the service terminal has data that conforms to the feature information of the first data;
the electronic device further includes:
the establishing unit is used for establishing an index record of the data which accords with the characteristic information if the service terminal has the data which accords with the characteristic information of the first data; and the data conforming to the characteristic information is the second data.
With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the obtaining unit is further configured to obtain the second data from the service terminal according to the index record when the storage unit of the remaining storage space of the storage unit is greater than a preset storage unit threshold, and store the obtained second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier.
According to the information processing method and the electronic equipment provided by the embodiment of the invention, a specific storage event is obtained, the specific storage event is used for indicating that data to be stored is to be stored on a storage unit, the data to be stored occupies K storage units, and K is greater than M-N; determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal; deleting the data to be deleted so that the storage unit has the residual storage space of the K storage units; and storing the data to be stored in the residual storage space of the storage unit. Compared with the prior art that the data to be deleted is manually identified by the user, the electronic equipment can automatically identify and determine the data to be deleted after a specific storage event is obtained, so that the management efficiency of the local storage space can be improved, the reliable management of the local storage space is realized, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of an information processing method according to embodiment 2 of the present invention;
fig. 3 is a schematic composition diagram of an electronic device in embodiment 3 of the present invention;
fig. 4 is a schematic composition diagram of another electronic device in embodiment 3 of the present invention;
fig. 5 is a schematic composition diagram of another electronic device in embodiment 3 of the present invention;
fig. 6 is a schematic composition diagram of another electronic device in embodiment 3 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example 1
The embodiment of the invention provides an information processing method, which can be applied to electronic equipment, wherein the electronic equipment comprises a storage unit, the storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; as shown in fig. 1, the information processing method includes:
s101, the electronic equipment obtains a specific storage event, wherein the specific storage event is used for indicating that data to be stored are to be stored on a storage unit, the data to be stored occupy K storage units, and K is larger than M-N.
The electronic device may be any electronic terminal with a storage function, such as a mobile phone, a computer, an ipad, an intelligent television, and the like.
Specifically, the method for the electronic device to obtain a specific storage event may include: the electronic equipment obtains a recording event; the event recording comprises the following steps: at least one of document recording, voice recording, and video recording; responding to the recording event, and acquiring acquired data in real time through an acquisition unit of the electronic equipment; the collected data is used as data to be stored and stored on the storage unit in real time; recording the data volume of the acquired data generated in the first time period, and determining the corresponding relation between the time period and the generated data volume; determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation and the residual storage space of the storage unit; when the logging event is performed up to the P-1 time period, a specific storage event is generated.
S102, the electronic device determines data to be deleted from the first data, the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal.
The method for determining the data to be deleted from the first data by the electronic device may specifically include: the electronic equipment determines data with index records from the first data; and taking the data with the index record as the data to be deleted.
S103, the electronic equipment deletes the data to be deleted, so that the storage unit has the residual storage space of the K storage units.
Further optionally, the method of the embodiment of the present invention may further include: and the electronic equipment reserves the object identifier corresponding to the data to be deleted, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when acquiring the trigger operation aiming at the object identifier.
And S104, the electronic equipment stores the data to be stored in the residual storage space of the storage unit.
According to the information processing method provided by the embodiment of the invention, the electronic equipment can obtain a specific storage event, the specific storage event is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N; determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal; deleting the data to be deleted so that the storage unit has the residual storage space of the K storage units; and storing the data to be stored in the residual storage space of the storage unit. Compared with the prior art that the data to be deleted is manually identified by the user, the electronic equipment can automatically identify and determine the data to be deleted after a specific storage event is obtained, so that the management efficiency of the local storage space can be improved, the reliable management of the local storage space is realized, and the user experience is improved.
Example 2
The embodiment of the invention provides an information processing method, which can be applied to electronic equipment, wherein the electronic equipment comprises a storage unit, the storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; as shown in fig. 2, the information processing method includes:
s201, the electronic equipment obtains a recording event; the event recording comprises the following steps: at least one of document recording, voice recording, and video recording.
The electronic equipment can respond to the triggering operation of a user to obtain a recording event; the logging event comprises: at least one of document recording, voice recording, and video recording. Illustratively, the recording event may be a recording operation on at least one of a document, voice and video,
s202, the electronic equipment responds to the recording event and acquires the acquired data in real time through an acquisition unit of the electronic equipment; the collected data is used as data to be stored and stored on the storage unit in real time.
The collected data may be event data corresponding to the recorded event. For example, if the recording event is a storage event of video data, the collected data is the video data to be stored.
S203, the electronic equipment records the data volume of the acquired data generated in the first time period, and determines the corresponding relation between the time period and the generated data volume.
The electronic device may be configured to record the data amount of the acquired data generated in the first time period, determine a corresponding relationship between the time period and the generated data amount, and estimate in advance, according to the corresponding relationship between the time period and the generated data amount, that a remaining storage space of the storage unit may not satisfy storage of data to be stored generated in the next time period when data acquisition is performed in the several time periods.
The first time period may be a time period fixedly set in advance in the electronic device, or may be a time period set by the electronic device before data acquisition is performed and received from a user.
For example, when the smart camera records a video in response to a trigger of a user, the smart camera cannot determine the length of the recording, and therefore cannot determine the size of the data volume of the recorded video, and a practitioner cannot determine whether the remaining storage space in the local storage space of the smart camera is sufficient for storing all video data recorded this time.
For example, if the time period is 2 minutes, the smart camera may record the amount of data of the acquired data generated by the smart camera within 2 minutes. If the data volume of the acquired data generated by the smart camera within 2 minutes is 1.5 mega M, the corresponding relationship between the time period and the generated data volume may specifically be: the smart camera can generate 1.5M of acquired data in 2 minutes on average.
S204, the electronic device determines that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation and the residual storage space of the storage unit.
After determining the corresponding relationship between the time period and the generated data amount, the electronic device may determine, according to the corresponding relationship and the remaining storage space of the storage unit, that the remaining storage space of the storage unit in the pth time period will not satisfy the storage of the data to be stored generated in the pth time period.
For example, if the time period is 2 minutes, the data amount of the collected data generated by the smart camera in 2 minutes is 1.5M, and the remaining storage space of the storage unit is 20M, the smart camera may calculate that 1.5 × 13<20<1.5 × 14, and therefore, the smart camera may determine P =14, that is, the remaining storage space of the storage unit of the smart camera in the 14 th time period may not satisfy the storage of the data to be stored generated in the 14 th time period.
S205, when the recording event is executed to the P-1 time period, the electronic equipment generates a specific storage event.
Specifically, taking the smart camera as an example, since 1.5 × 13<20<1.5 × 14, the smart camera may determine that the recording event (i.e., video capture) is performed until the P-1=13 time period, and may determine that if the captured video data is continuously stored, the remaining storage space of the smart camera will not satisfy the storage of the data to be stored generated at the 14 th time period, and may generate a specific storage event.
It should be noted that, when the electronic device responds to a recording event, if the total amount of all the collected data that can be collected by the collecting unit of the electronic device can be directly obtained, the electronic device does not need to record the data amount of the collected data generated in the first time period, determine the corresponding relationship between the time period and the generated data amount, and determine that the remaining storage space of the storage unit in the several time periods will not satisfy the storage of the data to be stored generated in the time period according to the corresponding relationship and the remaining storage space of the storage unit, that is, S203-S205 may not be executed in the embodiment of the present invention.
Illustratively, if the recording event to which the electronic device responds this time is: the method includes the steps that a completely downloaded video file is copied to the electronic equipment, or a video file with a certain data volume is downloaded from a network side to the electronic equipment, so that the electronic equipment can acquire the data volume of the video file to be copied or downloaded when the electronic equipment starts to copy or download, and the electronic equipment can directly determine whether the residual storage space of a storage unit of the electronic equipment can meet the storage requirement of the data to be stored generated by the current copying or downloading according to the residual storage space of the storage unit.
S206, the electronic device determines data to be deleted from the first data, the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with the index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal.
S206a, the electronic device determines the data with the index record from the first data.
The data with the index record is determined in the first data to be the data backed up to the service terminal by the electronic device, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal.
S206b, the electronic device regards the data with the index record as the data to be deleted.
When the trigger operation of obtaining the object identifier for the data to be deleted by the electronic device is received, the second data corresponding to the data to be deleted can be determined from the service terminal according to the index record, so that the electronic device takes the data with the index record as the data to be deleted, and the subsequent reuse of the data to be deleted by the user is not influenced.
S207, the electronic equipment deletes the data to be deleted, so that the storage unit has the residual storage space of the K storage units.
S208, the electronic equipment reserves the object identification corresponding to the data to be deleted, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when the electronic equipment obtains the trigger operation aiming at the object identification.
Specifically, the electronic device may receive a trigger of an object identifier corresponding to the data to be deleted from a user, and acquire the data to be deleted. The acquired data to be deleted may be stored in local data, or may be data deleted in a local storage space, but an index record of the local storage space is stored in the local storage space, and the electronic device acquires the data from the service terminal according to the index record.
S209, the electronic equipment stores the data to be stored in the residual storage space of the storage unit.
Further optionally, the method of the embodiment of the present invention may further include: if the data which is backed up to the service terminal in the first data belongs to the data to be deleted, recording an access mode of the data backed up to the service terminal, wherein the access mode is used as an index record; or, if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording an acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as an index record.
Further optionally, the method of the embodiment of the present invention may further include: if the data in the first data does not belong to the data to be deleted, acquiring characteristic information of the first data; determining whether the service terminal has data conforming to the characteristic information of the first data; if the service terminal has data which accords with the characteristic information of the first data, establishing an index record of the data which accords with the characteristic information; and the data conforming to the characteristic information is second data.
Further optionally, when the storage unit of the remaining storage space of the storage unit is greater than the preset storage unit threshold, the electronic device may further obtain second data from the service terminal according to the index record, and store the obtained second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier. The method according to the embodiment of the present invention may further include S210:
s210, when the storage unit of the residual storage space of the storage unit is larger than a preset storage unit threshold value, the electronic equipment acquires second data from the service terminal according to the index record, and stores the acquired second data in the storage unit, so that the electronic equipment determines the second data stored in the storage unit when acquiring the trigger operation aiming at the object identification.
According to the information processing method provided by the embodiment of the invention, the electronic equipment can obtain a specific storage event, the specific storage event is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N; determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal; deleting the data to be deleted so that the storage unit has the residual storage space of the K storage units; and storing the data to be stored in the residual storage space of the storage unit. Compared with the prior art that the data to be deleted is manually identified by the user, the electronic equipment can automatically identify and determine the data to be deleted after a specific storage event is obtained, so that the management efficiency of the local storage space can be improved, the reliable management of the local storage space is realized, and the user experience is improved.
Example 3
An embodiment of the present invention provides an electronic device, as shown in fig. 3, where the electronic device includes: an acquisition unit 31, a determination unit 32, a deletion unit 33, and a storage unit 34.
The storage space of the storage unit 34 is M storage units, and the storage unit 34 stores first data, and the first data occupies N storage units.
The obtaining unit 31 is configured to obtain a specific storage event, where the specific storage event is used to indicate that data to be stored is to be stored on the storage unit, where the data to be stored occupies K storage units, and K > M-N.
A determining unit 32, configured to determine, after the obtaining unit 31 obtains the specific storage event, to-be-deleted data from the first data, where the to-be-deleted data occupies L storage units, and L = K- (M-N), and the to-be-deleted data has an association relationship with an index record, and the index record is used to determine, from a service terminal, second data corresponding to the to-be-deleted data.
A deleting unit 33, configured to delete the data to be deleted determined by the determining unit 32, so that the storage unit has the remaining storage space of K storage units.
The storage unit 34 is configured to store the data to be stored indicated by the obtaining unit 31 in the remaining storage space of the storage unit.
Further, as shown in fig. 4, the electronic device may further include: a retention unit 35.
A retaining unit 35, configured to retain the object identifier corresponding to the data to be deleted determined by the determining unit 32, so that the electronic device determines, according to the index record, second data corresponding to the data to be deleted from the service terminal when obtaining a trigger operation for the object identifier.
Further, the acquiring unit 31 may include: the device comprises an obtaining module, a response module, a recording module, a determining module and a generating module.
The acquisition module is used for acquiring a recording event; the recording event comprises: at least one of document recording, voice recording, and video recording.
The response module is used for responding to the recording event obtained by the obtaining module and obtaining the collected data in real time through a collecting unit of the electronic equipment; the collected data is used as data to be stored and stored on the storage unit in real time.
And the recording module is used for recording the data volume of the acquired data generated in the first time period and determining the corresponding relation between the time period and the generated data volume.
And the determining module is used for determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation determined by the recording module and the residual storage space of the storage unit.
A generating module, configured to generate the specific storage event when the recording event is executed to the P-1 time period determined by the determining module.
Further, the determining unit 32 is specifically configured to determine data with an index record from the first data; and taking the data with the index record as data to be deleted.
Further, as shown in fig. 5, the electronic device further includes: a recording unit 36.
A recording unit 36, configured to record, if the data that has been backed up to the service terminal in the first data stored in the storage unit 34 belongs to the data to be deleted, an access manner of the data backed up to the service terminal, where the access manner is used as the index record.
Or, the recording unit 36 is configured to, if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording the acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as the index record.
Further, the obtaining unit 31 is further configured to obtain the feature information of the first data if the data in the first data does not belong to the data to be deleted.
The determining unit 32 is further configured to determine whether the service terminal has data that conforms to the feature information of the first data.
As shown in fig. 6, the electronic device further includes: a building unit 37.
A creating unit 37 configured to create an index record of data conforming to the feature information if the service terminal has data conforming to the feature information of the first data stored in the storage unit 34; and the data conforming to the characteristic information is the second data.
Further, the obtaining unit 31 is further configured to, when the storage unit of the remaining storage space of the storage unit is greater than a preset storage unit threshold, obtain the second data from the service terminal according to the index record, and store the obtained second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier.
It should be noted that, for specific description of some functional modules in the electronic device provided in the embodiment of the present invention, reference may be made to corresponding contents in the method embodiment, and details are not described here again.
The electronic device provided by the embodiment of the invention can obtain a specific storage event, wherein the specific storage event is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N; determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from the service terminal; deleting the data to be deleted so that the storage unit has the residual storage space of the K storage units; and storing the data to be stored in the residual storage space of the storage unit. Compared with the prior art that the data to be deleted is manually identified by the user, the electronic equipment can automatically identify and determine the data to be deleted after a specific storage event is obtained, so that the management efficiency of the local storage space can be improved, the reliable management of the local storage space is realized, and the user experience is improved.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. An information processing method is applied to an electronic device, the electronic device comprises a storage unit, the storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; characterized in that the method comprises:
obtaining a specific storage event, wherein the specific storage event is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N;
determining data to be deleted from the first data, wherein the data to be deleted occupy L storage units, L = K- (M-N), the data to be deleted has an association relation with an index record, and the index record is used for determining second data corresponding to the data to be deleted from a service terminal;
deleting the data to be deleted so that the storage unit has the residual storage space of K storage units;
and storing the data to be stored in the residual storage space of the storage unit.
2. The information processing method according to claim 1, further comprising:
and reserving the object identifier corresponding to the data to be deleted, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when acquiring the trigger operation aiming at the object identifier.
3. The information processing method of claim 1, wherein the obtaining a specific storage event comprises:
obtaining a recording event; the recording event comprises: at least one of document recording, voice recording, and video recording;
responding to the recording event, and acquiring acquired data in real time through an acquisition unit of the electronic equipment; the acquired data is used as data to be stored and stored on the storage unit in real time;
recording the data volume of the acquired data generated in the first time period, and determining the corresponding relation between the time period and the generated data volume;
determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation and the residual storage space of the storage unit;
the specific storage event is generated when the logging event is performed to the P-1 time period.
4. The information processing method according to claim 1, wherein the determining data to be deleted from the first data includes:
determining data with index records from the first data;
and taking the data with the index record as data to be deleted.
5. The information processing method according to claim 1, further comprising:
if the data which is backed up to the service terminal in the first data belongs to the data to be deleted, recording an access mode of the data backed up to the service terminal, wherein the access mode is used as the index record;
or,
if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording the acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as the index record.
6. The information processing method according to claim 1, further comprising:
if the data in the first data does not belong to the data to be deleted, acquiring characteristic information of the first data;
determining whether the service terminal has data conforming to the characteristic information of the first data;
if the service terminal has data which accords with the characteristic information of the first data, establishing an index record of the data which accords with the characteristic information; and the data conforming to the characteristic information is the second data.
7. The information processing method according to claim 1 or 2, characterized by further comprising:
when the storage unit of the remaining storage space of the storage unit is larger than a preset storage unit threshold, acquiring the second data from the service terminal according to the index record, and storing the acquired second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier.
8. An electronic device comprises a storage unit, wherein the storage space of the storage unit is M storage units, the storage unit stores first data, and the first data occupies N storage units; characterized in that the electronic device comprises:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a specific storage event which is used for indicating that data to be stored is to be stored on the storage unit, the data to be stored occupies K storage units, and K is greater than M-N;
a determining unit, configured to determine, after the obtaining unit obtains the specific storage event, to-be-deleted data from the first data, where the to-be-deleted data occupies L storage units, and L = K- (M-N), and the to-be-deleted data has an association relationship with an index record, and the index record is used to determine, from a service terminal, second data corresponding to the to-be-deleted data;
the deleting unit is used for deleting the data to be deleted determined by the determining unit so that the storage unit has the residual storage space of K storage units;
the storage unit is configured to store the data to be stored indicated by the obtaining unit in the remaining storage space of the storage unit.
9. The electronic device of claim 8, further comprising:
and the reservation unit is used for reserving the object identifier corresponding to the data to be deleted, which is determined by the determination unit, so that the electronic equipment determines second data corresponding to the data to be deleted from the service terminal according to the index record when the electronic equipment obtains the trigger operation aiming at the object identifier.
10. The electronic device according to claim 8, wherein the acquisition unit includes:
the acquisition module is used for acquiring a recording event; the recording event comprises: at least one of document recording, voice recording, and video recording;
the response module is used for responding to the recording event obtained by the obtaining module and obtaining the collected data in real time through a collecting unit of the electronic equipment; the acquired data is used as data to be stored and stored on the storage unit in real time;
the recording module is used for recording the data volume of the acquired data generated in the first time period and determining the corresponding relation between the time period and the generated data volume;
the determining module is used for determining that the residual storage space of the storage unit in the P-th time period cannot meet the storage requirement of the data to be stored generated in the P-th time period according to the corresponding relation determined by the recording module and the residual storage space of the storage unit;
a generating module, configured to generate the specific storage event when the recording event is executed to the P-1 time period determined by the determining module.
11. The electronic device according to claim 8, wherein the determining unit is specifically configured to determine data with an index record from the first data; and taking the data with the index record as data to be deleted.
12. The electronic device of claim 8, further comprising:
a recording unit, configured to record, if data that has been backed up to a service terminal in the first data belongs to the to-be-deleted data, an access manner of the data backed up to the service terminal, where the access manner is used as the index record;
or,
the recording unit is configured to, if the data acquired from the service terminal to the storage unit in the first data belongs to the data to be deleted; recording the acquisition path of the data acquired to the storage unit, wherein the acquisition path is used as the index record.
13. The electronic device according to claim 8, wherein the obtaining unit is further configured to obtain feature information of the first data if data in the first data does not belong to the data to be deleted;
the determining unit is further configured to determine whether the service terminal has data that conforms to the feature information of the first data;
the electronic device further includes:
the establishing unit is used for establishing an index record of the data which accords with the characteristic information if the service terminal has the data which accords with the characteristic information of the first data; and the data conforming to the characteristic information is the second data.
14. The electronic device according to claim 8 or 9, wherein the obtaining unit is further configured to, when the storage unit of the remaining storage space of the storage unit is greater than a preset storage unit threshold, obtain the second data from the service terminal according to the index record, and store the obtained second data in the storage unit, so that the electronic device determines the second data stored in the storage unit when obtaining the trigger operation for the object identifier.
CN201310406801.3A 2013-09-09 2013-09-09 Information processing method and electronic equipment Active CN104424109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310406801.3A CN104424109B (en) 2013-09-09 2013-09-09 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310406801.3A CN104424109B (en) 2013-09-09 2013-09-09 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104424109A true CN104424109A (en) 2015-03-18
CN104424109B CN104424109B (en) 2020-03-24

Family

ID=52973147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310406801.3A Active CN104424109B (en) 2013-09-09 2013-09-09 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104424109B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502833A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 Data back up method and device
CN107484108A (en) * 2017-08-25 2017-12-15 中国联合网络通信集团有限公司 Method, sensing equipment and the radio sensing network of data backup
CN112181630A (en) * 2019-07-05 2021-01-05 银河水滴科技(北京)有限公司 Data storage method, data storage equipment and computer readable storage medium
CN113625603A (en) * 2021-07-27 2021-11-09 金鹏电子信息机器有限公司 Security monitoring management system and management method based on big data

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017697A (en) * 2006-02-07 2007-08-15 三星电子株式会社 Apparatus and method for managing storage space through estimation
CN101075864A (en) * 2007-07-16 2007-11-21 腾讯科技(深圳)有限公司 Method for synchronizing and processing data, customer terminal equipment and servo
CN101394635A (en) * 2008-10-21 2009-03-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, information removing method and system thereof
CN101808159A (en) * 2010-03-10 2010-08-18 宇龙计算机通信科技(深圳)有限公司 Method for copying mobile terminal information, system and mobile terminal
CN101833679A (en) * 2010-05-20 2010-09-15 大唐微电子技术有限公司 User identification module and method for downloading and storing application data
CN102394930A (en) * 2011-11-02 2012-03-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, cloud server and data processing method
CN102906751A (en) * 2012-07-25 2013-01-30 华为技术有限公司 Method and device for data storage and data query
CN103167134A (en) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 Infinite storage system and method of mobile phone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017697A (en) * 2006-02-07 2007-08-15 三星电子株式会社 Apparatus and method for managing storage space through estimation
CN101075864A (en) * 2007-07-16 2007-11-21 腾讯科技(深圳)有限公司 Method for synchronizing and processing data, customer terminal equipment and servo
CN101394635A (en) * 2008-10-21 2009-03-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, information removing method and system thereof
CN101808159A (en) * 2010-03-10 2010-08-18 宇龙计算机通信科技(深圳)有限公司 Method for copying mobile terminal information, system and mobile terminal
CN101833679A (en) * 2010-05-20 2010-09-15 大唐微电子技术有限公司 User identification module and method for downloading and storing application data
CN102394930A (en) * 2011-11-02 2012-03-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, cloud server and data processing method
CN102906751A (en) * 2012-07-25 2013-01-30 华为技术有限公司 Method and device for data storage and data query
CN103167134A (en) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 Infinite storage system and method of mobile phone

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502833A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 Data back up method and device
CN106502833B (en) * 2016-10-25 2020-02-11 Oppo广东移动通信有限公司 Data backup method and device
US10922193B2 (en) 2016-10-25 2021-02-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data backup method, storage medium, and terminal
CN107484108A (en) * 2017-08-25 2017-12-15 中国联合网络通信集团有限公司 Method, sensing equipment and the radio sensing network of data backup
CN107484108B (en) * 2017-08-25 2020-07-31 中国联合网络通信集团有限公司 Data backup method, sensing equipment and wireless sensing network
CN112181630A (en) * 2019-07-05 2021-01-05 银河水滴科技(北京)有限公司 Data storage method, data storage equipment and computer readable storage medium
CN113625603A (en) * 2021-07-27 2021-11-09 金鹏电子信息机器有限公司 Security monitoring management system and management method based on big data

Also Published As

Publication number Publication date
CN104424109B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN108345524B (en) Application program monitoring method and application program monitoring device
CN104408428B (en) Method and device for processing photos in same scene
CN105744292A (en) Video data processing method and device
CN104424109B (en) Information processing method and electronic equipment
CN103218224A (en) Method and terminal for improving utilization ratio of memory space
CN108197570A (en) A kind of demographic method, device, electronic equipment and storage medium
CN111061752B (en) Data processing method and device and electronic equipment
CN102158349A (en) Log management device and method thereof
CN106326082B (en) Method and device for recording log in network system
CN103473343A (en) File management method, device and terminal
CN106708912B (en) Junk file identification and management method, identification device, management device and terminal
CN110475124A (en) Video cardton detection method and device
CN104980681A (en) Video acquisition method and video acquisition device
CN105893471B (en) Data processing method and electronic equipment
CN113283824A (en) Comprehensive management method and system for intelligent park data
CN104424125A (en) Clearing method for mobile terminal cache, device and mobile terminal
CN109325015B (en) Method and device for extracting characteristic field of domain model
CN111078588B (en) Garbage recycling method, device, equipment and storage medium
CN105868057B (en) A kind of method, apparatus and mobile terminal of data processing
CN107943912A (en) A kind of response type Resource TOC data visualization management method, terminal and device
CN103093213A (en) Video file classification method and terminal
CN106161743B (en) Media resource processing method, device and terminal
CN103957307B (en) Information processing method and electronic equipment
CN104951253A (en) Method for processing memory capacity and mobile terminal
CN106250426A (en) A kind of photo processing method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant