CN112416868A - Data cleaning method, device and storage medium - Google Patents
Data cleaning method, device and storage medium Download PDFInfo
- Publication number
- CN112416868A CN112416868A CN202011280532.7A CN202011280532A CN112416868A CN 112416868 A CN112416868 A CN 112416868A CN 202011280532 A CN202011280532 A CN 202011280532A CN 112416868 A CN112416868 A CN 112416868A
- Authority
- CN
- China
- Prior art keywords
- data
- storage
- cleaning
- authority
- stored
- 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.)
- Pending
Links
- 238000004140 cleaning Methods 0.000 title claims abstract description 191
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000015654 memory Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 238000013500 data storage Methods 0.000 claims description 4
- 238000005201 scrubbing Methods 0.000 claims 4
- 238000012217 deletion Methods 0.000 description 6
- 230000037430 deletion Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6209—Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Bioinformatics & Computational Biology (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a data cleaning method, equipment and a storage medium, wherein the method comprises the steps of extracting data characteristics of stored data in a storage space if the storage quantity of the storage space of a cleaning object is monitored to be larger than or equal to a preset threshold value; determining stored data meeting automatic cleaning authority in the stored data according to the data characteristics of the stored data; based on a preset automatic clearing strategy, the stored data meeting the automatic clearing authority is cleared until the automatic clearing stopping condition is met, the automatic clearing operation is stopped, so that manual clearing is avoided, the type of the data can be accurately distinguished, and data are prevented from being deleted by mistake. By adopting the technical scheme of the invention, the data cleaning efficiency and the data cleaning accuracy can be improved, the safety and the stability of the data can be improved, and the hesitation and the difficulty in selecting the data when the user manages and deletes the data can be reduced.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a data cleaning method, data cleaning equipment and a storage medium.
Background
In the daily life of using terminals such as mobile phones and the like and the forecast of future 5G networks, the content of the internet is increasingly abundant, the use degree of a user for the terminal is increased and the dependence on the terminal is more and more severe, and some cache data are generated and stored in a corresponding storage space allocated by the terminal in the running process of data downloaded by the terminal and application programs installed on the terminal. With the increase of data in the terminal and the cache data of the application program, the phenomena that the terminal is blocked and crashed due to too much memory occupation and the application program cannot respond due to too much memory occupation often occur. And thus the memory space of the terminal and the buffer space allocated by the application program must be cleared.
At present, manual cleaning is adopted for cleaning the storage space of most terminals, time is consumed for a data resolution process by a user, errors are easily resolved, and data is mistakenly deleted, so that the data cleaning efficiency is low and the error rate is high in the data cleaning method in the prior art.
Disclosure of Invention
The invention mainly aims to provide a data cleaning method, data cleaning equipment and a storage medium, and aims to solve the problems of low data cleaning efficiency and high error rate in the prior art.
In view of the above problems, the present invention provides a data cleaning method, including:
if the storage capacity of the storage space of the cleaning object is monitored to be larger than or equal to a preset threshold value, extracting the data characteristics of the stored data in the storage space; the storage amount of the storage space comprises the data amount of the stored data, or the sum of the data amount of the stored data and the data amount of the data to be stored;
determining stored data meeting automatic cleaning authority in the stored data according to the data characteristics of the stored data;
and clearing the stored data meeting the automatic clearing authority based on a preset automatic clearing strategy, and stopping the automatic clearing operation until an automatic clearing stopping condition is met.
Further, in the data cleaning method, based on a preset automatic cleaning policy, cleaning the stored data that meets the automatic cleaning authority includes:
determining the automatic cleaning grade of each storage data in the storage data meeting the automatic cleaning authority according to the data characteristics of each storage data in the storage data meeting the automatic cleaning authority;
and clearing the stored data meeting the automatic clearing authority according to the sequence of the automatic clearing level from low level to high level.
Further, in the data cleaning method, the automatic cleaning stop condition includes that the storage amount of the storage space is smaller than the preset threshold, or all the stored data meeting the automatic cleaning authority are cleaned.
Further, the data cleaning method further includes:
if the stored data meeting the automatic cleaning authority are completely cleaned and the storage amount of the storage space is greater than or equal to a preset threshold value, outputting the stored data meeting the manual cleaning authority in the stored data; the storage data meeting the manual cleaning authority in the stored data is determined according to the data characteristics of the stored data;
receiving a cleaning request aiming at least one target storage data in the storage data meeting the manual cleaning authority;
and cleaning at least one target storage data.
Further, in the data cleansing method, outputting stored data that satisfies a manual cleansing authority among the stored data includes:
determining the manual cleaning grade of each storage data in the storage data meeting the manual cleaning authority according to the data characteristics of each storage data in the storage data meeting the manual cleaning authority;
and outputting each storage data in the storage data meeting the manual cleaning authority according to the sequence from the low level to the high level of the manual cleaning level.
Further, in the data cleansing method, the data characteristics of the stored data in the storage space include at least one of data usage frequency, data storage time, and data type;
the data type includes at least one of a video class, a game class, a business class, a social class, a transaction class, a non-copyright class, a collection class, and a tag class.
Further, before receiving a cleaning request for at least one target storage data in the storage data satisfying the manual cleaning authority, the data cleaning method further includes:
receiving a selection instruction aiming at least one to-be-cleaned storage data in the storage data meeting the manual cleaning authority;
and outputting the data characteristics of at least one piece of to-be-cleaned storage data, so that the controller selects at least one piece of target storage data according to the data characteristics of at least one piece of to-be-cleaned storage data.
Further, in the data cleaning method, the cleaning object includes a terminal and/or at least one application program in the terminal.
The invention also provides data cleaning equipment, which comprises a memory and a controller;
the memory has stored thereon a computer program which, when executed by the controller, carries out the steps of the data cleansing method as described above.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the control method of the terminal as described above.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
according to the data cleaning method, the device and the storage medium, if the storage capacity of the storage space of the cleaning object is monitored to be larger than or equal to the preset threshold value, the data characteristics of the stored data in the storage space are extracted; after the stored data meeting the automatic cleaning authority in the stored data are determined according to the data characteristics of the stored data, the stored data meeting the automatic cleaning authority are cleaned based on a preset automatic cleaning strategy until the automatic cleaning stopping condition is met, and then the automatic cleaning operation is stopped, so that manual cleaning is avoided, the type of the data can be accurately distinguished, and data are prevented from being deleted by mistake. By adopting the technical scheme of the invention, the data cleaning efficiency and the data cleaning accuracy can be improved, the safety and the stability of the data can be improved, and the hesitation and the difficulty in selecting the data when the user manages and deletes the data can be reduced. .
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of one embodiment of a data cleansing method of the present invention;
FIG. 2 is a flow chart of another embodiment of a data cleansing method of the present invention;
FIG. 3 is a schematic structural diagram of a data cleansing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a data cleansing apparatus according to the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Example one
In order to solve the technical problems in the prior art, the embodiment of the invention provides a method for clearing data, which has low data clearing efficiency and high error rate.
Fig. 1 is a flowchart of an embodiment of a data cleansing method of the present invention, and as shown in fig. 1, the data cleansing method of the present embodiment may specifically include the following steps:
100. if the storage capacity of the storage space of the cleaning object is monitored to be larger than or equal to a preset threshold value, extracting the data characteristics of the stored data in the storage space;
in a specific implementation process, the storage amount of the storage space of the cleaning object can be monitored in real time, wherein the cleaning object comprises the terminal itself and at least one application program in the terminal. The storage amount of the storage space of the cleaning object comprises the data amount of the stored data, namely the data amount existing in the storage space of the cleaning object when the cleaning object does not need to download new data. Or the storage amount of the storage space of the cleaning object comprises the sum of the data amount of the stored data and the data amount of the data to be stored. That is, when the cleaning object needs to download new data, the sum of the data amount already existing in the storage space of the cleaning object and the data amount of the data to be stored.
In this embodiment, after the storage amount of the storage space of the cleaning object is monitored, the storage amount of the storage space of the cleaning object may be compared with a preset threshold, and if the comparison result indicates that the storage amount of the storage space of the cleaning object is monitored to be greater than or equal to the preset threshold, it indicates that the data in the storage space of the cleaning object is more, and the cleaning object may be stuck, crashed, stopped, or the like.
In this embodiment, the preset threshold may be set by the user according to the actual needs of the user. The data characteristics of the stored data in the storage space comprise at least one of data use frequency, data storage time and data type; the data type includes at least one of a video class, a game class, a business class, a social class, a transaction class, a non-copyright class, a collection class, and a tag class.
101. Determining stored data meeting the automatic cleaning authority in the stored data according to the data characteristics of the stored data;
after the data characteristics of the stored data in the storage space are extracted, the stored data meeting the automatic cleaning authority in the stored data can be further determined according to the data characteristics of the stored data. For example, the data characteristics of the stored data may be input into a data recognition model constructed by an artificial intelligence technique for data analysis, so as to obtain the stored data satisfying the automatic cleaning authority among the stored data and the stored data satisfying the manual cleaning authority among the stored data.
Specifically, after a certain amount of historical behavior data of the cleaning object used by the user is used as training data to train, a data recognition model is constructed, so that the data in the cleaning object is classified, and the stored data meeting the automatic cleaning authority in the stored data and the stored data meeting the manual cleaning authority in the stored data are obtained. For example, the stored data satisfying the manual cleaning authority in the stored data is preferably data of a transaction type, a non-copyright type, a collection type, a mark type, or the like, and may also be data whose use frequency is greater than a preset frequency. And other data can be classified as stored data satisfying the automatic cleaning authority, such as data with the use frequency less than the preset frequency, data without a mark, data for collection, and the like.
Such as identifying screenshots of money to and from to avoid automatic deletion, identifying pictures and content that are marked by the user as "favorite" or "favorite" types to avoid automatic deletion. Whether the downloaded music or other resources are in a non-copyright state in the current application or the Internet or not is detected, and the serious loss caused by deletion is avoided. Because the video and audio resources on the network are frequently changed due to copyright. Downloading is done in a copyrighted state, but over time, even if resources are off-shelf on the network because of copyright issues, there is no way to get downloads from elsewhere on this piece of software. At this time, it is very important to discriminate whether the downloaded resources in the mobile phone are 'solitary', and the data can be classified as stored data meeting the manual cleaning authority. And in other cases, may be categorized as stored data that satisfies the automatic cleaning authority.
102. And clearing the stored data meeting the automatic clearing authority based on a preset automatic clearing strategy, and stopping the automatic clearing operation until an automatic clearing stopping condition is met.
In a specific implementation process, according to the data characteristics of each storage data in the storage data meeting the automatic cleaning authority, determining the automatic cleaning grade of each storage data in the storage data meeting the automatic cleaning authority, and cleaning the storage data meeting the automatic cleaning authority according to the sequence from the low grade to the high grade of the automatic cleaning grade until the automatic cleaning stop condition is met, and stopping the automatic cleaning operation. The automatic clearing stop condition in this embodiment may include that the storage amount of the storage space is smaller than a preset threshold, or that all the storage data meeting the automatic clearing authority is cleared.
For example, the automatic cleaning level of each of the stored data satisfying the automatic cleaning authority may be set according to the following rule: less common software cache > frequency of use common software cache > common software cache. The embodiment is not limited to the example listed in the above 3, and the user may perform a custom setting according to actual needs. For example, 4 levels can be taken as an example, the first level automatically deletes the application cache which is not commonly used and the downloaded installation package, the second level automatically deletes the application cache which is mainly video, music and browse, the third level automatically deletes the picture and video cache in the chat software, and the fourth level automatically deletes the picture with high repetition degree in the photo album and uninstalls the application which is never opened for more than 3 months.
In the data cleaning method of this embodiment, if it is monitored that the storage amount of the storage space of the cleaning object is greater than or equal to a preset threshold, data features of stored data in the storage space are extracted; after the stored data meeting the automatic cleaning authority in the stored data are determined according to the data characteristics of the stored data, the stored data meeting the automatic cleaning authority are cleaned based on a preset automatic cleaning strategy until the automatic cleaning stopping condition is met, and then the automatic cleaning operation is stopped, so that manual cleaning is avoided, the type of the data can be accurately distinguished, and data are prevented from being deleted by mistake. By adopting the technical scheme of the invention, the data cleaning efficiency and the data cleaning accuracy can be improved, the safety and the stability of the data can be improved, and the hesitation and the difficulty in selecting the data when the user manages and deletes the data can be reduced.
Fig. 2 is a flowchart of another embodiment of the data cleansing method of the present invention, and the data cleansing method of the present embodiment further describes the technical solution of the present invention in more detail based on the above embodiment. As shown in fig. 2, the data cleaning method of this embodiment may specifically include the following steps:
200. if the storage capacity of the storage space of the cleaning object is monitored to be larger than or equal to a preset threshold value, extracting the data characteristics of the stored data in the storage space; the storage amount of the storage space comprises the data amount of the stored data, or the sum of the data amount of the stored data and the data amount of the data to be stored;
201. determining stored data meeting the automatic cleaning authority in the stored data according to the data characteristics of the stored data;
202. based on a preset automatic clearing strategy, clearing the stored data meeting the automatic clearing authority;
203. if the stored data meeting the automatic cleaning authority are completely cleaned and the storage amount of the storage space is greater than or equal to a preset threshold value, outputting the stored data meeting the manual cleaning authority in the stored data;
specifically, the manual cleaning level of each storage data in the storage data meeting the manual cleaning authority can be determined according to the data characteristics of each storage data in the storage data meeting the manual cleaning authority; and outputting each storage data in the storage data meeting the manual cleaning authority according to the sequence from the low level to the high level of the manual cleaning level.
The setting method of the manual cleaning level of each storage data in the storage data meeting the manual cleaning authority is also determined according to the use habits and relevant settings of the user, and is specifically similar to the manner of the automatic cleaning level of each storage data in the storage data meeting the automatic cleaning authority, and is not described herein again.
204. Receiving a cleaning request aiming at least one target storage data in the storage data meeting the manual cleaning authority;
205. and cleaning at least one target storage data.
In this embodiment, after the automatic cleaning, if the storage amount of the storage space of the cleaning object is still greater than or equal to the preset threshold, it may be output in a targeted manner which data is preferentially and manually deleted by the user to achieve the fastest data management.
Further, in the above embodiment, before step 204, a selection instruction for at least one to-be-cleaned storage data in the storage data satisfying the manual cleaning authority may also be received; and outputting the data characteristics of at least one piece of to-be-cleaned storage data, so that the controller can more accurately select at least one piece of target storage data according to the data characteristics of the at least one piece of to-be-cleaned storage data, and the data is prevented from being deleted by mistake.
The following describes the technical solution of the present invention by taking a mobile phone as a cleaning object and taking an example that the mobile phone needs to download new data, and the specific implementation process is as follows:
(1) after the operator a sets the preset threshold function and the deletion permission, if the storage space of the mobile phone reaches the preset threshold, the system will automatically delete the least important cache and files for the user, the system will not ask the user, and the user can use the mobile phone with confidence.
(2) At present, only 3G are left in the mobile phone, a new movie on the network today needs 5G memories, the operator a increases the original preset threshold to 6G, the data cleaning device starts to detect, and the data is automatically cleaned according to the priority level: the method comprises the steps that a first level automatically deletes the application cache which is not commonly used and an installation package which is downloaded, a second level starts to delete the application cache which is mainly video, music and browsing, a third level deletes pictures and video cache in chat software, a fourth level deletes pictures with high repeatability in an album and uninstalls applications which are never opened for more than 3 months, when the pictures with high repeatability such as chat screenshots are deleted, a system can identify economic and incoming transaction screenshots related to account transfer and the like and avoid deletion, and the application which is not commonly used is approved by an operator A before deletion.
It should be noted that the operator a may also directly execute the operation of automatically cleaning the data without modifying the preset threshold. And if the storage space of the mobile phone reaches a preset threshold value, new data cannot be downloaded.
(3) If the operation is not yet required by the operator A after the operation is completed, the operator A is prompted to delete the operation manually, the system can obtain that the user type is video, game, official, social and the like according to the use frequency of the application, and then the user is pertinently advised to preferentially delete which applications and caches so as to manage the file at the highest speed.
It should be noted that the method of the embodiment of the present invention may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In the case of such a distributed scenario, one device of the multiple devices may only perform one or more steps of the method according to the embodiment of the present invention, and the multiple devices interact with each other to complete the method.
Example two
In order to solve the above technical problems in the prior art, an embodiment of the present invention provides a data cleaning apparatus.
Fig. 3 is a schematic structural diagram of an embodiment of the data cleansing apparatus of the present invention, and as shown in fig. 3, the data cleansing apparatus of the present embodiment includes a monitoring module 30, a determining module 31, and a cleansing module 32.
The monitoring module 30 is configured to extract a data feature of stored data in the storage space if it is monitored that the storage amount of the storage space of the cleaning object is greater than or equal to a preset threshold.
The cleaning object comprises a terminal and/or at least one application program in the terminal; the storage capacity of the storage space comprises the data quantity of the stored data, or the sum of the data quantity of the stored data and the data quantity of the data to be stored; the data characteristics of the stored data in the storage space comprise at least one of data use frequency, data storage time and data type; the data type includes at least one of a video class, a game class, a business class, a social class, a transaction class, a non-copyright class, a collection class, and a tag class.
The determining module 31 is configured to determine, according to data characteristics of stored data, stored data that meets an automatic cleaning authority in the stored data;
specifically, according to the data characteristics of each piece of storage data in the storage data meeting the automatic cleaning authority, determining the automatic cleaning grade of each piece of storage data in the storage data meeting the automatic cleaning authority; and clearing the stored data meeting the automatic clearing authority according to the sequence of the automatic clearing level from the low level to the high level.
And the cleaning module 32 is configured to clean the stored data meeting the automatic cleaning permission based on a preset automatic cleaning policy, and stop the automatic cleaning operation until an automatic cleaning stop condition is met.
The automatic clearing stopping condition comprises that the storage amount of the storage space is smaller than a preset threshold value, or all the storage data meeting the automatic clearing authority are cleared.
In the data cleaning device of this embodiment, if it is monitored that the storage amount of the storage space of the cleaning object is greater than or equal to a preset threshold, data features of stored data in the storage space are extracted; after the stored data meeting the automatic cleaning authority in the stored data are determined according to the data characteristics of the stored data, the stored data meeting the automatic cleaning authority are cleaned based on a preset automatic cleaning strategy until the automatic cleaning stopping condition is met, and then the automatic cleaning operation is stopped, so that manual cleaning is avoided, the type of the data can be accurately distinguished, and data are prevented from being deleted by mistake. By adopting the technical scheme of the invention, the data cleaning efficiency and the data cleaning accuracy can be improved, the safety and the stability of the data can be improved, and the hesitation and the difficulty in selecting the data when the user manages and deletes the data can be reduced.
Further, in the above embodiment, the cleaning module 32 is further configured to, if all the stored data meeting the automatic cleaning authority are cleaned and the storage amount of the storage space is greater than or equal to the preset threshold, output the stored data meeting the manual cleaning authority in the stored data; receiving a cleaning request aiming at least one target storage data in the storage data meeting the manual cleaning authority; and cleaning at least one target storage data. Wherein, the stored data meeting the manual cleaning authority in the stored data is determined according to the data characteristics of the stored data.
Specifically, the manual cleaning level of each storage data in the storage data meeting the manual cleaning authority can be determined according to the data characteristics of each storage data in the storage data meeting the manual cleaning authority; and outputting each storage data in the storage data meeting the manual cleaning authority according to the sequence from the low level to the high level of the manual cleaning level.
Further, in the above embodiment, a selection instruction for at least one to-be-cleaned storage data in the storage data satisfying the manual cleaning authority is received; and outputting the data characteristics of the at least one piece of storage data to be cleaned, so that the controller selects the at least one piece of target storage data according to the data characteristics of the at least one piece of storage data to be cleaned.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and specific implementation schemes thereof may refer to the method described in the foregoing embodiment and relevant descriptions in the method embodiment, and have beneficial effects of the corresponding method embodiment, which are not described herein again.
EXAMPLE III
In order to solve the technical problems in the prior art, an embodiment of the present invention provides a data cleansing apparatus.
Fig. 4 is a schematic structural diagram of an embodiment of the data cleansing device of the present invention, as shown in fig. 3, the data cleansing device of the present embodiment includes a memory 40 and a controller 41;
the memory 40 has stored thereon a computer program which, when executed by the controller 41, implements the steps of the data cleansing method of the above-described embodiment.
Example four
In order to solve the above technical problems in the prior art, embodiments of the present invention provide a storage medium.
The storage medium of this embodiment stores thereon a computer program, and the computer program, when executed by the controller, implements the steps of the data cleaning method of the above embodiment.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module 32, or each unit may exist alone physically, or two or more units are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method of data scrubbing, comprising:
if the storage capacity of the storage space of the cleaning object is monitored to be larger than or equal to a preset threshold value, extracting the data characteristics of the stored data in the storage space; the storage amount of the storage space comprises the data amount of the stored data, or the sum of the data amount of the stored data and the data amount of the data to be stored;
determining stored data meeting automatic cleaning authority in the stored data according to the data characteristics of the stored data;
and clearing the stored data meeting the automatic clearing authority based on a preset automatic clearing strategy, and stopping the automatic clearing operation until an automatic clearing stopping condition is met.
2. The data cleaning method according to claim 1, wherein cleaning the stored data satisfying the automatic cleaning authority based on a preset automatic cleaning policy comprises:
determining the automatic cleaning grade of each storage data in the storage data meeting the automatic cleaning authority according to the data characteristics of each storage data in the storage data meeting the automatic cleaning authority;
and clearing the stored data meeting the automatic clearing authority according to the sequence of the automatic clearing level from low level to high level.
3. The data cleaning method according to claim 1, wherein the automatic cleaning stop condition includes that the storage amount of the storage space is less than the preset threshold, or that the stored data satisfying the automatic cleaning authority is completely cleaned.
4. The data cleansing method according to claim 3, further comprising:
if the stored data meeting the automatic cleaning authority are completely cleaned and the storage amount of the storage space is greater than or equal to a preset threshold value, outputting the stored data meeting the manual cleaning authority in the stored data; the storage data meeting the manual cleaning authority in the stored data is determined according to the data characteristics of the stored data;
receiving a cleaning request aiming at least one target storage data in the storage data meeting the manual cleaning authority;
and cleaning at least one target storage data.
5. The data cleaning method according to claim 4, wherein outputting the stored data satisfying the manual cleaning authority from among the stored data comprises:
determining the manual cleaning grade of each storage data in the storage data meeting the manual cleaning authority according to the data characteristics of each storage data in the storage data meeting the manual cleaning authority;
and outputting each storage data in the storage data meeting the manual cleaning authority according to the sequence from the low level to the high level of the manual cleaning level.
6. The data cleansing method according to claim 5, wherein the data characteristics of the stored data in the storage space include at least one of data usage frequency, data storage time, and data type;
the data type includes at least one of a video class, a game class, a business class, a social class, a transaction class, a non-copyright class, a collection class, and a tag class.
7. The data scrubbing method according to claim 6, before receiving a scrubbing request for at least one target storage data among the storage data satisfying the manual scrubbing authority, further comprising:
receiving a selection instruction aiming at least one to-be-cleaned storage data in the storage data meeting the manual cleaning authority;
and outputting the data characteristics of at least one piece of to-be-cleaned storage data, so that the controller selects at least one piece of target storage data according to the data characteristics of at least one piece of to-be-cleaned storage data.
8. A data cleaning method according to any one of claims 1-7, characterized in that the cleaning object comprises a terminal and/or at least one application in a terminal.
9. A data cleansing apparatus comprising a memory and a controller;
the memory has stored thereon a computer program which, when being executed by the controller, carries out the steps of the data cleansing method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of a method of controlling a terminal according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011280532.7A CN112416868A (en) | 2020-11-16 | 2020-11-16 | Data cleaning method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011280532.7A CN112416868A (en) | 2020-11-16 | 2020-11-16 | Data cleaning method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112416868A true CN112416868A (en) | 2021-02-26 |
Family
ID=74831340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011280532.7A Pending CN112416868A (en) | 2020-11-16 | 2020-11-16 | Data cleaning method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416868A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290315A (en) * | 2023-10-11 | 2023-12-26 | 河南师范大学 | Data classification cleaning method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766053A (en) * | 2017-09-21 | 2018-03-06 | 珠海格力电器股份有限公司 | Application unloading method and device, storage medium and terminal |
CN108121783A (en) * | 2017-12-19 | 2018-06-05 | 深圳创维数字技术有限公司 | A kind of automatic cleaning method, device, computer and storage medium for storing data |
CN108134878A (en) * | 2017-12-22 | 2018-06-08 | 苏州人为峰软件科技有限公司 | Smart mobile phone redundant data method for cleaning based on android system |
US20190095385A1 (en) * | 2016-07-28 | 2019-03-28 | Huawei Technologies Co., Ltd. | Method for Recognizing Infrequently-Used Data and Terminal |
-
2020
- 2020-11-16 CN CN202011280532.7A patent/CN112416868A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190095385A1 (en) * | 2016-07-28 | 2019-03-28 | Huawei Technologies Co., Ltd. | Method for Recognizing Infrequently-Used Data and Terminal |
CN107766053A (en) * | 2017-09-21 | 2018-03-06 | 珠海格力电器股份有限公司 | Application unloading method and device, storage medium and terminal |
CN108121783A (en) * | 2017-12-19 | 2018-06-05 | 深圳创维数字技术有限公司 | A kind of automatic cleaning method, device, computer and storage medium for storing data |
CN108134878A (en) * | 2017-12-22 | 2018-06-08 | 苏州人为峰软件科技有限公司 | Smart mobile phone redundant data method for cleaning based on android system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290315A (en) * | 2023-10-11 | 2023-12-26 | 河南师范大学 | Data classification cleaning method |
CN117290315B (en) * | 2023-10-11 | 2024-06-25 | 河南师范大学 | Data classification cleaning method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092700B (en) | Internal memory method for cleaning, device and terminal unit | |
CN108495195B (en) | Network live broadcast ranking list generation method, device, equipment and storage medium | |
CN107911487B (en) | Information push method, device, server and readable storage medium | |
CN104503840B (en) | The method and device that terminal resource is optimized | |
KR100765254B1 (en) | Data transmission management system, a mobile device and a server used therein | |
CN111258921B (en) | Garbage memory recycling method and device, electronic equipment and storage medium | |
CN104239157B (en) | Method and device for optimizing and cleaning data of mobile terminal | |
CN111159436B (en) | Method, device and computing equipment for recommending multimedia content | |
CN104317952B (en) | The scan method and device of memory space in mobile terminal | |
CN110018788A (en) | It is classified storage method, device, electronic equipment and computer readable storage medium | |
CN109656885B (en) | Storage space monitoring method and device, electronic terminal and storage medium | |
CN103164229A (en) | Method and device for clearing progresses of mobile terminal | |
CN106897141A (en) | The processing method and processing device of information | |
CN103269347B (en) | Method for optimizing resources, server, client and system are carried out based on server end | |
CN106155789A (en) | A kind of application freezing method and mobile terminal | |
CN106547615A (en) | A kind of management method and management module of background application | |
CN111045824A (en) | Application control method and device, electronic equipment and computer readable medium | |
CN104866510A (en) | Method and device for removing residual file and method and device for establishing feature library of residual file | |
CN107483521A (en) | An information display method, device and system | |
KR100690804B1 (en) | How to organize memory of mobile device | |
CN105893471B (en) | Data processing method and electronic equipment | |
CN107832470A (en) | A kind of object storage method and device based on storage system | |
CN111614529A (en) | Smart home control panel and its network management method, electronic equipment | |
CN112416868A (en) | Data cleaning method, device and storage medium | |
CN109274991B (en) | Memory management method and system of smart television |
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 |