WO2016145804A1 - 一种数据处理和装置 - Google Patents
一种数据处理和装置 Download PDFInfo
- Publication number
- WO2016145804A1 WO2016145804A1 PCT/CN2015/089639 CN2015089639W WO2016145804A1 WO 2016145804 A1 WO2016145804 A1 WO 2016145804A1 CN 2015089639 W CN2015089639 W CN 2015089639W WO 2016145804 A1 WO2016145804 A1 WO 2016145804A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- attribute
- stored
- hard disk
- storage unit
- Prior art date
Links
Images
Classifications
-
- 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
Definitions
- This paper relates to the field of data processing technology, and in particular to a data processing and device.
- the main technical problem to be solved by the present invention is to provide a data processing method and apparatus, which solves the problem that the data in the mobile hard disk needs to be manually cleared in the related art.
- a data processing method comprising:
- the preset automatic data clearing condition includes:
- the step of automatically clearing, in the hard disk storage unit, the data whose attribute is an unprotected attribute is:
- the data stored in the hard disk storage unit with the non-protected attribute is automatically cleared according to a preset clearing rule.
- the method before the step of storing the acquired data to be stored in the hard disk storage unit of the terminal, the method further includes:
- the step of storing the acquired data to be stored in the hard disk storage unit of the terminal includes: storing the acquired storage attribute of the data to be stored into the non-protected area.
- the storing attribute further includes a protection storage attribute
- the step of partitioning the hard disk storage unit further includes:
- the at least one protection zone is separated, and the acquired storage attribute of the data to be stored is stored in the protection zone as a protection storage attribute, and when the data in the protection zone needs to be cleared, a clear warning is issued to the user.
- a data processing device includes an attribute setting module, a data storage module, and an automatic clearing module:
- the attribute setting module is configured to: set a storage attribute of the data to be stored, where the storage attribute includes an unprotected storage attribute;
- the data storage module is configured to: acquire current data to be stored, and store the acquired data to be stored in a hard disk storage unit of the terminal;
- the automatic clearing module is configured to automatically clear data stored in the hard disk storage unit as an unprotected attribute when the preset data automatic clearing condition is triggered.
- the preset automatic data clearing condition includes:
- the automatic clearing module is configured to be configured to automatically clear data stored in the hard disk storage unit as an unprotected attribute in the following manner:
- the data stored in the hard disk storage unit with the non-protected attribute is automatically cleared according to a preset clearing rule.
- the device further includes a storage partition module, wherein
- the storage partitioning module is configured to partition the hard disk storage unit and divide at least one non-protected area before storing the acquired data to be stored in the hard disk storage unit of the terminal;
- the data storage module is further configured to: store the acquired storage attribute of the to-be-stored data into the non-protected area.
- the apparatus further includes a clear warning module, the storage attribute further comprising a protection storage attribute, wherein
- the storage partition module is further configured to: separate at least one protection zone;
- the data storage module is further configured to: store the acquired storage attribute of the data to be stored as a protection storage attribute in the protection zone;
- the clear warning module is configured to issue a clear warning to the user when it is determined that the data in the protected area needs to be cleared.
- a mobile terminal includes any of the above data processing devices.
- a computer program comprising program instructions which, when executed by a computer, cause the computer to perform any of the above described data processing methods.
- the data processing method and device provided by the technical solution of the present invention set a storage attribute of each data to be stored, the storage attribute includes an unprotected storage attribute, and acquires current data to be stored, which will be acquired.
- the storage data is stored in the hard disk storage unit of the terminal; when the preset data automatic clear condition is triggered, the data stored in the hard disk storage unit with the attribute unprotected is automatically cleared.
- the data of the unprotected storage attribute in the terminal storage unit can be automatically cleared, which not only can avoid clearing the data, but also can automatically clear the useless data, which can be well guaranteed.
- the space utilization of the disk does not require the user to perform manual operations, thereby improving the user experience.
- FIG. 1 is a flowchart of a data processing method according to Embodiment 1 of the present invention.
- FIG. 2 is a flowchart of a data processing method according to Embodiment 2 of the present invention.
- FIG. 3 is a schematic structural diagram 1 of a data processing apparatus according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram 2 of a data processing apparatus according to Embodiment 3 of the present invention.
- FIG. 5 is a schematic structural diagram 3 of a data processing apparatus according to Embodiment 3 of the present invention.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- the data processing method of the embodiment of the present application is as shown in FIG. 1 , and the method includes:
- Step S101 setting storage attributes of all data to be stored, where the storage attributes include unprotected storage attributes;
- the data to be stored herein includes data stored by the user, application file data, log file data, and the like.
- the application file data here includes the application System data and cached data during application use, etc.
- the storage attribute here refers to whether the data can clear the data, that is, whether the data is important data for the user.
- important data cannot be cleared, that is, the storage attribute is protected, that is, the data has a protected storage attribute; unimportant data can be cleared, that is, the storage attribute is not protected. That is, the data has an unprotected storage attribute.
- the installation data of an application in the system is important. Once cleared, the application cannot be used.
- protected storage attributes that cannot be cleared.
- the cached data during use These are generally less important and will take up hard disk space. These are data with unprotected storage attributes that can be cleared and cleared to improve the utilization of the hard disk.
- Step S102 Acquire current data to be stored, and store the acquired data to be stored in a hard disk storage unit of the terminal;
- the data to be stored here includes application system data generated by the user at the time of installation of the application, cache data generated in the user's use application, and other data stored by the user himself.
- Step S103 Automatically clear data stored in the hard disk storage unit as an unprotected attribute when the preset data automatic clear condition is triggered.
- the specific preset data automatic clearing conditions include:
- the data that can be cleared during use can be immediately cleared, and automatically when the remaining space of the hard disk is less than 10%. Clear. It should be understood that the specific clearing may be determined according to the specific settings of the user.
- the preset data automatic clearing condition is to determine whether the storage space of the hard disk storage unit is less than a preset threshold, that is, whether the data automatic clearing condition is satisfied, and when the data automatic clearing condition is met, the hard disk is The data of the unprotected attribute in the storage unit is automatically cleared.
- determining whether the data automatic clearing condition is met includes: determining a hard disk storage unit Whether the storage space is less than the preset threshold.
- the data of the non-protected attribute in the hard disk storage unit is automatically cleared, and the data of the unprotected attribute in the hard disk storage unit is automatically cleared according to a preset clearing rule.
- the preset clearing rule here may be based on the size of the stored data, for example, the storage data is first cleared, or the storage time is used. For example, the storage time is cleared first, and the specific situation may be specifically set according to the user.
- the hard disk storage unit is partitioned, and at least one non-protected area is separated; and the obtained to-be-stored data is stored in the hard disk storage unit of the terminal, including:
- the storage attribute of the data to be stored is stored in the non-protected area for the unprotected storage attribute.
- Automatically clearing data stored in the hard disk storage unit with non-protected attributes includes automatically clearing data in the unprotected area. In this way, the data in the fixed hard disk area can be cleared only later, and the data is not searched and cleared one by one, which can improve data management and removal efficiency.
- the storage attribute further includes a protection storage attribute
- the partitioning the hard disk storage unit further includes: separating at least one protection area, which will be obtained.
- the storage attribute of the data to be stored is stored in the protected area for the protected storage attribute, and a clear warning is issued to the user when the data in the protected area needs to be cleared. Subsequent clearing is based on the received user command. In this way, important data can be cleared according to the user's own choice, and the use space of the hard disk can also be improved.
- the terminal in this example includes a mobile phone, a tablet, etc., and it should be understood that terminals having certain processing capabilities and hard disk storage are included.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- the data processing method of the embodiment of the present application is as shown in FIG. 2, and the method includes:
- Step S201 The system first performs area division on the storage unit, and is divided into a protection area and a non-protection area;
- the storage unit of the terminal is divided into two types of areas, one type of area is used to store system level information and the user is marked as protected application information, which may be referred to herein as a protected area;
- the class area is used to store general-purpose application information, which can be automatically cleaned conditionally, which can be called a non-protected area.
- Step S202 The user sets an attribute of the application information data
- Step S203 The system places the corresponding application information data into the corresponding storage unit area according to the set attributes
- the system will specify the location area of the storage unit according to the attribute of the information data, that is, the information data with the protected attribute will be placed in the protection area of the storage unit; and the information with the non-protected attribute The data is placed in the unprotected area of the storage unit;
- Step S204 If an alarm occurs in the remaining space of the storage unit
- the alarm in the remaining space of the storage unit is a preset clearing condition, that is, it is determined whether the storage space of the hard disk storage unit is less than a preset threshold. If not, an alarm occurs.
- Step S205 Perform condition determination on the application information data in the non-protected area, and clean the data satisfying the condition;
- the system will judge the files in the non-protected area according to the conditions, and clean up the files satisfying the conditions.
- the judgment according to the conditions here refers to the preset processing conditions.
- Step S206 judging whether it is necessary to clean up the information data in the protected area, and notifying the user to manually clean up if necessary.
- the system does not automatically clean up the information data in the protection zone, and the user keeps the processing according to the requirements. However, if the remaining space of the storage unit cannot be cleared after the non-protection zone is cleaned, the prompt is prompted. The user performs manual processing.
- Embodiment 3 is a diagrammatic representation of Embodiment 3
- the embodiment of the present application provides a data processing apparatus 300, as shown in FIG. 3, including an attribute setting module 301, a data storage module 302, and an automatic clearing module 303:
- the attribute setting module 301 is configured to: set a storage attribute of each data to be stored, and the storage attribute includes an unprotected storage attribute;
- the data storage module 302 is configured to: acquire current data to be stored, and store the acquired data to be stored in a hard disk storage unit of the terminal;
- the automatic clearing module 303 is configured to automatically clear data stored in the hard disk storage unit as an unprotected attribute when the preset data automatic clearing condition is triggered.
- the preset data automatic clearing condition includes: determining whether the storage space of the hard disk storage unit is less than a preset threshold, if it is less than, triggering; or determining whether the preset processing cycle is reached, if it is, triggering; or determining the current storage Whether the entered data is in use, such as when it is not in use.
- the automatic clearing module 303 is further configured to: automatically clear the data stored in the hard disk storage unit as an unprotected attribute according to a preset clearing rule.
- the embodiment of the present application provides a terminal data processing apparatus 300.
- the method further includes a storage partition module 304.
- the storage partition module 304 is configured to: before storing the acquired data to be stored in a hard disk storage unit of the terminal, The hard disk storage unit is partitioned to divide at least one non-protected area; the data storage module 302 is further configured to: store the acquired storage attribute of the to-be-stored data into the non-protected area.
- the embodiment of the present application provides a data processing apparatus 300.
- the method further includes a clearing warning module 305.
- the storage attribute further includes a protection storage attribute.
- the storage partition module 304 is further configured to: separate at least one protection area, and store data.
- the module 302 is further configured to: store the acquired storage attribute of the data to be stored as a protection storage attribute in the protection area, and the clear warning module 305 issues a clear warning to the user when the data in the protected area needs to be cleared.
- the above program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.
- a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.
- all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
- each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
- the embodiment of the invention also discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to execute any of the above data processing methods.
- the embodiment of the invention also discloses a carrier carrying the computer program.
- the data processing method and device provided by the technical solution of the present invention set the storage attributes of the data to be stored, and the storage attributes include the unprotected storage attributes; the current data to be stored is obtained, and the acquired data to be stored is stored in the hard disk storage unit of the terminal.
- the preset data automatic clear condition is triggered, the data stored in the hard disk storage unit with the attribute unprotected is automatically cleared.
- the data of the unprotected storage attribute in the terminal storage unit can be automatically cleared, which not only can avoid clearing the data, but also can automatically clear the useless data, which can be well guaranteed.
- the space utilization of the disk does not require the user to perform manual operations, thereby improving the user experience. Therefore, the present invention has strong industrial applicability.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
一种数据处理方法和装置,该方法包括:设置各待存储数据的存储属性,存储属性包括非保护存储属性;获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;在预设的数据自动清除条件触发时,对硬盘存储单元中存储属性为非保护属性的数据进行自动清除。与相关技术相比,对终端存储单元中的非保护存储属性的数据能够进行自动清除,不仅可以避免将不能清除数据进行清除,还可以进行自动对没用的数据进行清除,能够很好的保证磁盘的空间利用,不用用户去进行手动操作,提高了用户的体验度。
Description
本文涉及数据处理技术领域,具体涉及一种数据处理和装置。
随着电子通信技术的不断发展和成熟,移动终端越来越智能,例如智能手机已成为人们日常生活和工作中不可缺少的工具,各种满足人们日常需要的app应用层出不穷,几乎每个应用都会在手机的硬件存储器上建立应用信息文件和日志文件,长时间使用后,这部分内容占据了越来越多存储器的空间,其中有很多是无用的信息数据,占用严重时甚至会应用某些应用的正常使用。而目前市场上的清理工具都是针对内存和垃圾文件进行清理,针对硬件存储单元的清理工具却没有,上述的应用信息文件和日志文件通常都需要用户手动进行清除,智能手机在这点上变得一点都不智能了。
发明内容
本发明要解决的主要技术问题是,提供一种数据处理方法和装置,解决相关技术中对于移动硬盘中的数据需要进行手动清除的问题。
为解决上述问题,采用如下技术方案:
一种数据处理方法,包括:
设置待存储数据的存储属性,所述存储属性包括非保护存储属性;
获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;
在预设的数据自动清除条件触发时,对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
可选地,所述预设的数据自动清除条件包括:
判断所述硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;
或者,
判断是否到达预设处理周期,如到达,则触发;或者,
判断当前存入的数据是否处于非使用状态,如处于非使用状态,则触发。
可选地,所述对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除的步骤包括:
对所述硬盘存储单元中存储属性为非保护属性的数据按照预设清除规则自动进行清除。
可选地,所述将获取的待存储数据存入终端的硬盘存储单元中的步骤之前,该方法还包括:
对所述硬盘存储单元进行分区,分出至少一个非保护区;
所述将获取的待存储数据存入终端的硬盘存储单元中的步骤包括:将获取的待存储数据的存储属性为非保护存储属性存入所述非保护区中。
可选地,所述存储属性还包括保护存储属性,所述对所述硬盘存储单元进行分区的步骤还包括:
分出至少一个保护区,将获取的待存储数据的存储属性为保护存储属性存入所述保护区中,当需要对所述保护区中的数据进行清除时,向用户发出清除警告。
一种数据处理装置,包括属性设置模块、数据存储模块和自动清除模块:
所述属性设置模块设置成:设置待存储数据的存储属性,所述存储属性包括非保护存储属性;
所述数据存储模块设置成:获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;
所述自动清除模块设置成:在预设的数据自动清除条件触发时,对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
可选地,所述预设的数据自动清除条件包括:
判断所述硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;
或者,
判断是否到达预设处理周期,如到达,则触发;或者,
判断当前存入的数据是否处于非使用状态,如处于非使用状态,则触发。
可选地,所述自动清除模块设置成设置成按照如下方式对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除:
对所述硬盘存储单元中存储属性为非保护属性的数据按照预设清除规则自动进行清除。
可选地,该装置还包括存储分区模块,其中
所述存储分区模块设置成:在将获取的待存储数据存入终端的硬盘存储单元中之前,对所述硬盘存储单元进行分区,分出至少一个非保护区;
所述数据存储模块还设置成:将获取的待存储数据的存储属性为非保护存储属性存入所述非保护区中。
可选地,该装置还包括清除警告模块,所述存储属性还包括保护存储属性,其中
所述存储分区模块还设置成:分出至少一个保护区;
所述数据存储模块还设置成:将获取的待存储数据的存储属性为保护存储属性存入所述保护区中;
所述清除警告模块设置成:当确定需要对所述保护区中的数据进行清除时,向用户发出清除警告。
一种移动终端,包括上述任意的数据处理装置。
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的数据处理方法。
一种载有所述的计算机程序的载体。
本发明技术方案的有益效果是:
本发明技术方案提供的数据处理方法和装置,设置各待存储数据的存储属性,存储属性包括非保护存储属性;获取当前的待存储数据,将获取的待
存储数据存入终端的硬盘存储单元中;在预设的数据自动清除条件触发时,对硬盘存储单元中存储属性为非保护属性的数据进行自动清除。与相关技术相比,对终端存储单元中的非保护存储属性的数据能够进行自动清除,不仅可以避免将不能清除数据进行清除,还可以进行自动对没用的数据进行清除,能够很好的保证磁盘的空间利用,不用用户去进行手动操作,提高了用户的体验度。
附图概述
图1为本发明实施例一提供的数据处理方法方法流程图;
图2为本发明实施例二提供的数据处理方法流程图;
图3为本发明实施例三提供的数据处理装置结构示意图一;
图4为本发明实施例三提供的数据处理装置结构示意图二;
图5为本发明实施例三提供的数据处理装置结构示意图三。
本发明的较佳实施方式
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一:
本申请实施例的数据处理方法,如图1所示,该方法包括:
步骤S101:设置所有待存储数据的存储属性,存储属性包括非保护存储属性;
可选地,在该步骤中,这里的待存储数据包括用户自己存储的数据、应用程序文件数据和日志文件数据等。这里的应用程序文件数据包括应用程序
***数据和应用程序使用过程中的缓存数据等。
这里的存储属性是指该数据是不是可以清除数据,也即对于用户来讲该数据是不是重要数据。一般来讲重要的数据是不可以清除的,也就是说存储属性是受保护的,即该数据具有保护存储属性;不重要的数据是可以清除的,也就是说存储属性是不受保护的,即该数据具有非保护存储属性。例如,***中应用程序的安装数据是重要的,一旦清除后,该应用程序便无法使用,这些就是带有保护存储属性的数据,是不能清除的;而对于该应用程序使用过程中的缓存数据,这些一般不太重要,并且会占用硬盘空间,这些就是带有非保护存储属性的数据,可以清除,清除后,提高硬盘的利用。
步骤S102:获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;
在该步骤中,这里的待存储数据包括用户在应用程序的安装时产生的应用程序***数据和在用户使用应用程序中产生的缓存数据以及用户自己存储的其他数据。
步骤S103:在预设的数据自动清除条件触发时,对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
在该步骤中,具体的预设的数据自动清除条件包括:
判断硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;或
判断是否到达预设处理周期,如到达,则触发;或
判断当前存入的数据是否处于使用状态,如处于非使用状态,则触发。
例如,可以设置为每天定时清除一次,也可以在某个应用程序不使用后,对其使用过程中的可以清除的数据立即进行清除,还可以当硬盘的剩余空间不足百分之十时进行自动清除。应该理解为,具体的清除可以根据用户具体设置而定。
为了降低***的处理,可选地,预设的数据自动清除条件为判断硬盘存储单元的存储空间是否小于预设阈值,即判断是否满足数据自动清除条件,当满足数据自动清除条件时,对硬盘存储单元中的非保护属性的数据自动进行清除。具体的,判断是否满足数据自动清除条件包括:判断硬盘存储单元
的存储空间是否小于预设阈值。
进一步,为了更加合理的对存储数据进行清除,对硬盘存储单元中的非保护属性的数据自动进行清除包括:对硬盘存储单元中的非保护属性的数据按照预设清除规则进行自动进行清除。这里的预设处清除规则可以根据存储数据的大小,例如存储数据大的先进行清除,也可以是存储时间,例如存储时间早的先进行清除,具体的情况可以根据用户具体设置。
为了便于后续的清除,优选的,对终端存储单元中的内容进行分类存储并进行及时的有条件清理。在将获取的待存储数据存入终端的硬盘存储单元中之前,对硬盘存储单元进行分区,分出至少一个非保护区;将获取的待存储数据存入终端的硬盘存储单元中包括:将获取的待存储数据的存储属性为非保护存储属性存入非保护区中。对硬盘存储单元中存储属性为非保护属性的数据进行自动清除包括:对非保护区中的数据自动进行清除。这样就可以后期只对固定硬盘区域中的数据进行清除即可,不用逐个数据进行查找清除,能够提高数据管理和清除效率。
进一步,如果需要存储空间很大的情况下,对于重要的数据也可以进行清除,具体的,存储属性还包括保护存储属性,对硬盘存储单元进行分区还包括:分出至少一个保护区,将获取的待存储数据的存储属性为保护存储属性存入保护区中,当需要对保护区中的数据进行清除时,对用户发出清除警告。后续根据接收的用户指令进行清除。这样就可以根据用户自己的选择进行重要数据清除,也可以提高硬盘的使用空间。
值得注意的是,本实例中的终端包括手机,平板等,应该理解为具有一定处理能力和硬盘存储的终端都包含在内。
实施例二:
本申请实施例的数据处理方法,如图2所示,该方法包括:
步骤S201:***首先对存储单元进行区域划分,分为保护区和非保护区;
在该步骤中,将终端的存储单元划分为两类区域,一类区域用来存储***级别信息和用户标记为受保护的应用信息,这里可以称其为保护区;另一
类区域用来存储一般类的应用信息,这些信息可以被有条件的自动清理,这里可以称其为非保护区。
步骤S202:用户设置应用信息数据的属性;
在该步骤中,设置手机内应用和数据的属性。手机中***级的信息数据以及用户标记过的应用信息数据会带有保护属性;而用户没有标记过的应用信息数据则会带有非保护属性。
步骤S203:***根据设置的属性,将相应的应用信息数据放置到对应的存储单元区域中;
在该步骤中,***会按照信息数据的属性来指定其保存在存储单元的位置区域,即带有受保护属性的信息数据会被放在存储单元的保护区;而带有非保护属性的信息数据则会被放在存储单元的非保护区;
步骤S204:如果存储单元的剩余空间出现告警;
在该步骤中,这里存储单元的剩余空间出现告警是预设清除条件的一种,也即判断所述硬盘存储单元的存储空间是否小于预设阈值,如果小于,则出现告警。
步骤S205:对非保护区中的应用信息数据进行条件判断,并对满足条件的数据进行清理;
在该步骤中,当存储单元的剩余空间达到一定的告警区间时,***就会对非保护区中的文件按照条件进行判断,对于满足条件的文件进行清理。这里的按照条件判断是指预设处理条件。
步骤S206:对保护区中的信息数据,判断是否有必要进行清理,如果有必要就通知用户手动清理。
在该步骤中,对于保护区中的信息数据,***不会自动进行清理,保留给用户自行按照需要进行处理,但是当非保护区清理后仍无法使存储单元的剩余空间告警退出的话,则提示用户进行手动处理。
实施例三:
本申请实施例提供一种数据处理装置300,如图3所示,包括属性设置模块301、数据存储模块302和自动清除模块303:
属性设置模块301设置成:设置各待存储数据的存储属性,存储属性包括非保护存储属性;
数据存储模块302设置成:获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;
自动清除模块303设置成:在预设的数据自动清除条件触发时,对硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
具体的,预设的数据自动清除条件包括:判断硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;或判断是否到达预设处理周期,如到达,则触发;或判断当前存入的数据是否处于使用状态,如处于非使用状态,则触发。
进一步,自动清除模块303还设置成:对硬盘存储单元中存储属性为非保护属性的数据按照预设清除规则自动进行清除。
本申请实施例提供一种终端数据处理装置300,如图4所示,还包括存储分区模块304,存储分区模块304设置成:在将获取的待存储数据存入终端的硬盘存储单元中之前,对硬盘存储单元进行分区,分出至少一个非保护区;数据存储模块302还设置成:将获取的待存储数据的存储属性为非保护存储属性存入非保护区中。
本申请实施例提供一种数据处理装置300,如图5所示,还包括清除警告模块305,存储属性还包括保护存储属性,存储分区模块304还设置成:分出至少一个保护区,数据存储模块302还设置成:将获取的待存储数据的存储属性为保护存储属性存入保护区中,清除警告模块305当需要对保护区中的数据进行清除时,对用户发出清除警告。
本发明实施例所述的各种方法、***和装置可以应用于各种终端,尤其是移动终端中。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序
来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
以上实施例仅用以说明本发明的技术方案而非限制,仅仅参照较佳实施例对本发明进行了详细说明。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的数据处理方法。
本发明实施例还公开了一种载有所述的计算机程序的载体。
在阅读并理解了附图和详细描述后,可以明白其他方面。
本发明技术方案提供的数据处理方法和装置,设置各待存储数据的存储属性,存储属性包括非保护存储属性;获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;在预设的数据自动清除条件触发时,对硬盘存储单元中存储属性为非保护属性的数据进行自动清除。与相关技术相比,对终端存储单元中的非保护存储属性的数据能够进行自动清除,不仅可以避免将不能清除数据进行清除,还可以进行自动对没用的数据进行清除,能够很好的保证磁盘的空间利用,不用用户去进行手动操作,提高了用户的体验度。因此本发明具有很强的工业实用性。
Claims (13)
- 一种数据处理方法,包括:设置待存储数据的存储属性,所述存储属性包括非保护存储属性;获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;在预设的数据自动清除条件触发时,对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
- 如权利要求1所述的数据处理方法,其中,所述预设的数据自动清除条件包括:判断所述硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;或者,判断是否到达预设处理周期,如到达,则触发;或者,判断当前存入的数据是否处于非使用状态,如处于非使用状态,则触发。
- 如权利要求1所述的数据处理方法,其中,所述对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除的步骤包括:对所述硬盘存储单元中存储属性为非保护属性的数据按照预设清除规则自动进行清除。
- 如权利要求1-3中任一项所述的数据处理方法,其中,所述将获取的待存储数据存入终端的硬盘存储单元中的步骤之前,该方法还包括:对所述硬盘存储单元进行分区,分出至少一个非保护区;所述将获取的待存储数据存入终端的硬盘存储单元中的步骤包括:将获取的待存储数据的存储属性为非保护存储属性存入所述非保护区中。
- 如权利要求4所述的数据处理方法,其中,所述存储属性还包括保护存储属性,所述对所述硬盘存储单元进行分区的步骤还包括:分出至少一个保护区,将获取的待存储数据的存储属性为保护存储属性存入所述保护区中,当需要对所述保护区中的数据进行清除时,向用户发出清除警告。
- 一种数据处理装置,包括属性设置模块、数据存储模块和自动清除模块:所述属性设置模块设置成:设置待存储数据的存储属性,所述存储属性包括非保护存储属性;所述数据存储模块设置成:获取当前的待存储数据,将获取的待存储数据存入终端的硬盘存储单元中;所述自动清除模块设置成:在预设的数据自动清除条件触发时,对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除。
- 如权利要求6所述的数据处理装置,其中,所述预设的数据自动清除条件包括:判断所述硬盘存储单元的存储空间是否小于预设阈值,如小于,则触发;或者,判断是否到达预设处理周期,如到达,则触发;或者,判断当前存入的数据是否处于非使用状态,如处于非使用状态,则触发。
- 如权利要求6所述的数据处理装置,其中,所述自动清除模块设置成设置成按照如下方式对所述硬盘存储单元中存储属性为非保护属性的数据进行自动清除:对所述硬盘存储单元中存储属性为非保护属性的数据按照预设清除规则自动进行清除。
- 如权利要求6-8中任一项所述的数据处理装置,该装置还包括存储分区模块,其中所述存储分区模块设置成:在将获取的待存储数据存入终端的硬盘存储单元中之前,对所述硬盘存储单元进行分区,分出至少一个非保护区;所述数据存储模块还设置成:将获取的待存储数据的存储属性为非保护存储属性存入所述非保护区中。
- 如权利要求9所述的数据处理装置,该装置还包括清除警告模块,所述存储属性还包括保护存储属性,其中所述存储分区模块还设置成:分出至少一个保护区;所述数据存储模块还设置成:将获取的待存储数据的存储属性为保护存储属性存入所述保护区中;所述清除警告模块设置成:当确定需要对所述保护区中的数据进行清除时,向用户发出清除警告。
- 一种移动终端,包括如权利要求6-10中任一项所述的数据处理装置。
- 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行如权利要求1-5中任一项所述的数据处理方法。
- 一种载有如权利要求12所述的计算机程序的载体。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510484230.4 | 2015-08-03 | ||
CN201510484230.4A CN106406747A (zh) | 2015-08-03 | 2015-08-03 | 一种移动终端硬盘存储管理和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016145804A1 true WO2016145804A1 (zh) | 2016-09-22 |
Family
ID=56918396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/089639 WO2016145804A1 (zh) | 2015-08-03 | 2015-09-15 | 一种数据处理和装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106406747A (zh) |
WO (1) | WO2016145804A1 (zh) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107193886A (zh) * | 2017-04-27 | 2017-09-22 | 北京小米移动软件有限公司 | 文件存储方法及装置 |
CN108170478B (zh) * | 2017-11-27 | 2020-07-24 | 拉卡拉支付股份有限公司 | 数据清除方法、装置、可穿戴设备及计算机可读存储介质 |
CN108831241A (zh) * | 2018-09-10 | 2018-11-16 | 河南职业技术学院 | 一种物联网仿真教学*** |
CN110737408B (zh) * | 2019-10-18 | 2022-08-02 | 苏州浪潮智能科技有限公司 | 一种硬盘清除方法、***及装置 |
CN116560587B (zh) * | 2023-07-10 | 2023-10-13 | 北京小米移动软件有限公司 | 数据管理***及终端设备 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122873A1 (en) * | 2002-12-20 | 2004-06-24 | International Business Machines Corporation | Free space management |
CN102880713A (zh) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | 文件清理方法及装置 |
CN102880714A (zh) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | 文件清理方法及装置 |
CN103995843A (zh) * | 2014-05-05 | 2014-08-20 | 安一恒通(北京)科技有限公司 | ***垃圾清理方法和装置 |
CN104572819A (zh) * | 2014-12-02 | 2015-04-29 | 深圳市腾讯计算机***有限公司 | 一种垃圾数据的清理方法和*** |
CN104699529A (zh) * | 2015-03-26 | 2015-06-10 | 联想(北京)有限公司 | 一种信息获取方法及装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955421A (zh) * | 2014-05-06 | 2014-07-30 | 珠海市君天电子科技有限公司 | 一种针对文件删除的方法及*** |
-
2015
- 2015-08-03 CN CN201510484230.4A patent/CN106406747A/zh not_active Withdrawn
- 2015-09-15 WO PCT/CN2015/089639 patent/WO2016145804A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122873A1 (en) * | 2002-12-20 | 2004-06-24 | International Business Machines Corporation | Free space management |
CN102880713A (zh) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | 文件清理方法及装置 |
CN102880714A (zh) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | 文件清理方法及装置 |
CN103995843A (zh) * | 2014-05-05 | 2014-08-20 | 安一恒通(北京)科技有限公司 | ***垃圾清理方法和装置 |
CN104572819A (zh) * | 2014-12-02 | 2015-04-29 | 深圳市腾讯计算机***有限公司 | 一种垃圾数据的清理方法和*** |
CN104699529A (zh) * | 2015-03-26 | 2015-06-10 | 联想(北京)有限公司 | 一种信息获取方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN106406747A (zh) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016145804A1 (zh) | 一种数据处理和装置 | |
US9970966B2 (en) | Method, device and computer storage medium for detecting power consumption of an application | |
EP2696285A1 (en) | Method and device for allocating resource | |
CN106708578B (zh) | 基于双线程的日志输出方法及装置 | |
WO2020211791A1 (zh) | 匿名页面管理方法、装置、终端设备及可读存储介质 | |
WO2016183918A1 (zh) | 存储空间处理方法及装置 | |
CN110764906A (zh) | 内存回收处理方法、装置、电子设备以及存储介质 | |
CN108205474B (zh) | 内存管理方法、终端设备、计算机装置以及可读存储介质 | |
CN109800181B (zh) | 一种基于磁盘的数据写入方法、数据写入装置及终端设备 | |
CN107766005B (zh) | 电子文件处理方法、装置及电子终端 | |
WO2017219524A1 (zh) | 一种页面保存的方法及电子设备 | |
EP3680787A1 (en) | Method for synchronization between primary database and standby database, database system and device | |
EP3128789B1 (en) | Method, device and mobile terminal for reducing power consumption | |
TW201621623A (zh) | 內存清理系統、方法及終端設備 | |
CN103874987B (zh) | 嵌入式多媒体卡分区存储空间调整方法和终端 | |
CN105511876B (zh) | 一种推送信息的处理方法及装置 | |
CN111124282A (zh) | 一种对象存储***中的存储方法、存储装置及存储设备 | |
CN114490160A (zh) | 一种数据倾斜优化因子自动调整方法、装置、设备和介质 | |
CN108205559B (zh) | 一种数据管理方法及其设备 | |
EP3444721A1 (en) | Method and apparatus for clearing up process, and storage medium | |
US10754674B2 (en) | Method, apparatus, and system for reducing memory usage of a browser in a portable terminal device | |
CN110941597B (zh) | 解压缩文件的清理方法、装置、计算设备及计算机存储介质 | |
CN109426563B (zh) | 一种进程管理方法及装置 | |
CN115562840A (zh) | 一种任务处理方法、装置及介质 | |
CN115587049A (zh) | 内存回收方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15885178 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15885178 Country of ref document: EP Kind code of ref document: A1 |