CN105912572A - Data management method and terminal - Google Patents

Data management method and terminal Download PDF

Info

Publication number
CN105912572A
CN105912572A CN201610194822.7A CN201610194822A CN105912572A CN 105912572 A CN105912572 A CN 105912572A CN 201610194822 A CN201610194822 A CN 201610194822A CN 105912572 A CN105912572 A CN 105912572A
Authority
CN
China
Prior art keywords
user data
duration
user
resolution
storage
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.)
Withdrawn
Application number
CN201610194822.7A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610194822.7A priority Critical patent/CN105912572A/en
Publication of CN105912572A publication Critical patent/CN105912572A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments

Abstract

Embodiments of the invention provide a data management method and a terminal. The method comprises the following steps: getting user data needing management; determining the correlation information of the user data, wherein the correlation information includes at least one of use frequency, resolution, occupied space, storage time length and storage type; and managing the user data if the correlation information meets preset data management conditions, wherein management of the user data includes at least one of the following: de-weighting the user data, degrading the user data, compressing the user data, and deleting the user data. By implementing the embodiments of the invention, terminal data can be managed according to the demand of users, data management is more convenient and quicker, and the storage space of the terminal is saved.

Description

A kind of method of data management and terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to method and the terminal of a kind of data management.
Background technology
Along with the development of terminal technology, research staff be meet the growing material requisite of people based on The various application of terminal development;Wherein, particularly chat software is liked by numerous people and is made With, such as move QQ, wechat etc..
But in practice, it has been found that along with people use time of these chat softwares the longest, terminal can accumulate The exchange of information such as increasing picture, video and chat record, sometimes even over several G, and this Having part exchange of information in a little stored exchange of information is that user is unwanted, thus causes terminal and deposits The waste in storage space.In existing erasing of information scheme, people can use the cleanout tool of terminal to institute The exchange of information stating terminal storage carries out disposable all removings;Or, exchange of information can also be entered by people Row wall scroll is removed one by one, which increases user operation, takes time and effort.
Summary of the invention
The embodiment of the present invention provides method and the terminal of a kind of data management, can be according to the demand of user to terminal Data are managed, and improve the convenient and swift property of data management, save the memory space of terminal.
On the one hand, the open a kind of method providing data management of the embodiment of the present invention, described method includes:
Obtain and need the user data carrying out data management;
Determine that the related information of described user data, described related information are access times, resolution, storage At least one in duration, storage class;
If described related information meets preset data management condition, then described user data is managed;
The described management carrying out described user data includes that the duplicate removal to described user data processes, degrades At least one in process, delete processing.
On the other hand, the embodiment of the present invention is open provides a kind of terminal, and described terminal includes:
Acquiring unit, needs, for obtaining, the user data carrying out data management;
Determine unit, for determining the related information of described user data, described related information be access times, At least one in resolution, storage duration, storage class;
Administrative unit, if determining that the related information determined in unit meets preset data management condition for described, Then described user data is managed;The described management carrying out described user data includes described use The duplicate removal of user data processes, degrade in process, delete processing at least one.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, described related information is in access times, resolution, storage duration, storage class At least one, if described related information meets preset data management condition, then described user data is entered Line pipe manage, the described management that described user data is carried out include the duplicate removal to described user data process, Degrade at least one in process, delete processing;So can according to the demand of user targetedly, have purpose Property ground user data is managed, improve the convenient and swift property of data management, also save terminal simultaneously Memory source.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be some embodiments of the present invention, for those of ordinary skill in the art, do not paying wound On the premise of the property made work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data managing method of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind of data managing method of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the another kind of data managing method of the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of data administrator of the embodiment of the present invention;
Fig. 5 is the structural representation of the another kind of data administrator of the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of terminal of the embodiment of the present invention.
Detailed description of the invention
Embodiments provide a kind of method of data management, device and terminal, to can be to pass Keyword carries out fast search, obtains the most conceivable object information of user, and simple to operate, efficiency is high.
In order to make those skilled in the art be more fully understood that the present invention program, implement below in conjunction with the present invention Accompanying drawing in example, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that institute The embodiment described is the embodiment of a present invention part rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its His embodiment, all should belong to the scope of protection of the invention.
Term " first ", " second " and " in description and claims of this specification and above-mentioned accompanying drawing Three " it is etc. for distinguishing different object, not for describing particular order.Additionally, term " include " with And they any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or unit Process, method, system, product or equipment be not limited to step or the unit listed, but optional Ground also includes step or the unit do not listed, or the most also includes for these processes, method, product Or intrinsic other step of equipment or unit.
Referring to Fig. 1, be the schematic flow sheet of a kind of data managing method of the embodiment of the present invention, the present invention is real The described method executing example can be applied at bands such as such as smart mobile phone, panel computer, intelligence wearable devices logical In the terminal of communication network function, specifically can be realized by the processor of these communication terminals.The embodiment of the present invention Described method also comprise the steps.
S101, acquisition need the user data carrying out data management.
In the embodiment of the present invention, user can carry out such as picture removing on communication terminals, video is removed, The user data management operations such as chat record removing, the preservation of important note, short message deletion, described communication Terminal can detect and obtain user and carry out the user data of data management.
Described communication terminal can include smart mobile phone (such as Android phone, IOS mobile phone etc.), Ge Ren electricity Brain, panel computer, palm PC, mobile internet device (MID, Mobile Internet Devices) or The internet devices such as wearable intelligent equipment, the embodiment of the present invention is not construed as limiting.
S102, determine the related information of described user data, described related information be access times, resolution, At least one take up room, stored in duration, storage class.
In the embodiment of the present invention, communication terminal can determine that the pass of the described user data got in S101 Connection information, wherein said related information can be to include the size that takes up room of described user data, resolution The attribute informations such as size, it is also possible to include the access times of the most described user data, storage duration, storage The information such as type.
If the described related information of S103 meets preset data management condition, then described user data is managed Reason;The described management carrying out described user data includes that the duplicate removal to described user data processes, degrades At least one in process, compression process, delete processing.
In the embodiment of the present invention, the association of the described user data determined in checking S102 is believed by communication terminal Whether breath meets user/system preset data management condition of self-defined setting in described communication terminal in advance; If meeting, the most described communication terminal can carry out correspondingly data management to described user data;Wherein said Data management includes at least one in duplicate removal process, the process that degrades, compression process, delete processing.
The most alternatively, in the embodiment of the present invention, if described related information is access times, if described Related information meets preset data management condition, then be managed described user data, including:
Judge whether described access times exceed the access times threshold value in described preset data management condition;
The most described user data is carried out duplicate removal process;Described described user data is carried out at duplicate removal Reason specifically includes: only preserve described user data once, deletes the described user data repeated.
If the described related information that described communication terminal determines in S102 is access times, described communication is eventually End can be by the described access times determined in S102 and setting in user/system this communication terminal in advance Access times threshold value (such as 5 times) in preset data management condition compares, if described communication terminal ratio Relatively exceed, to described access times, the described access times threshold that user/system is arranged in advance in this communication terminal Value, then described communication terminal can delete the described user data of redundance, only to described user data Preserve once;Described communication terminal described user data can also be carried out packing compression, by described compression it After user data by compression display in the way of show on the display interface of this communication terminal;Otherwise, Terminate flow process.
The most alternatively, in the embodiment of the present invention, if described related information is resolution, if described pass Connection information meets preset data management condition, then be managed described user data, including:
Within the scope of judging described resolution resolution threshold whether in described preset data management condition;
The most then degrade process to described user data;Described place that described user data is degraded Reason specifically includes: reduce the resolution of described user data, in order to the resolution of described user data is less than Described resolution threshold scope.
If the described related information that described communication terminal determines in S102 is resolution, described communication terminal Can be by presetting of arranging in the described resolution determined in S102 and user/system this communication terminal in advance (such as 300PPI-700PPI, Pixels Per Inch, pixel is close for resolution threshold scope in data management condition Degree, be called for short PPI) compare judge described resolution whether within the scope of described resolution threshold, if institute State communication terminal and determine the described resolution that described point variability is arranged in user/system is in advance at this communication terminal Within rate threshold range, then described communication terminal can reduce the resolution of described user data so that fall The resolution of the described user data after low, within the scope of described resolution threshold, so can also reduce The size that takes up room of described user data, thus save the memory source of terminal;Otherwise, flow process is terminated.
The most alternatively, in the embodiment of the present invention, if described related information is for taking up room, if described Related information meets preset data management condition, then be managed described user data, including:
Take up room described in judgement the threshold value that takes up room whether exceeded in described preset data management condition;
The most then it is compressed described user data processing;Described be compressed described user data is located Reason specifically includes: described user data carries out packing compression, in order to the user data after described compression Take up room the threshold value that takes up room described in being less than.
If the described related information that described communication terminal determines in S102 is for taking up room, described communication is eventually End takes up room and setting in user/system this communication terminal in advance described in can determining in S102 Whether the threshold value that takes up room (such as 2M) in preset data management condition compares and takes up room as described in judgement Exceed or take up room described in being more than or equal to threshold value, if described communication terminal determine described in take up room super Cross or more than or equal to user/system arrange in this communication terminal in advance described in take up room threshold value, then Described communication terminal can carry out packing compression to described user data so that the described number of users after compression According to take up room be less than described in take up room threshold value, so can save described user data in the terminal Memory space;Otherwise, flow process is terminated.
The most alternatively, in the embodiment of the present invention, if described related information is storage duration, if described Related information meets preset data management condition, then be managed described user data, including:
Judge that whether described storage duration is more than or equal to the first duration threshold in described preset data management condition Value, and judge whether the duration that described user data is not used by a user is more than or equal to described preset data pipe The second duration threshold value in reason condition;
If described storage duration be more than or equal to described first duration threshold value, and described be not used by a user time Long more than or equal to described second duration threshold value, then described user data is carried out delete processing;Described to institute State user data to carry out delete processing and specifically include: by described storage duration more than or equal to described first duration Threshold value, and the described duration not being used by a user enters more than or equal to the user data of described second duration threshold value Row is deleted.
If the described related information that described communication terminal determines in S102 is storage duration, described communication is eventually End can be by the described storage duration determined in S102 and setting in user/system this communication terminal in advance The first duration threshold value (such as 1 month) in preset data management condition compare judge as described in storage duration Whether exceed or more than or equal to described first duration threshold value, and/or, described communication terminal can also obtain also Determine that described user data is the duration being used by a user, and whether the duration that is not used by a user described in judging Exceed or more than or equal to the in the preset data management condition arranged in user/system this communication terminal in advance Two duration threshold values (such as 30 days), exceed when described communication terminal determines described storage duration or are more than Exceed or more than or equal to described second in described first duration threshold value and/or the described duration not being used by a user During duration threshold value, then described communication terminal can be deleted storage duration in this communication terminal and exceed described first Duration threshold value and the described duration not being used by a user exceed all or part of use of described second duration threshold value User data;Otherwise, flow process is terminated.
The most alternatively, in the embodiment of the present invention, if described related information is storage class, if described Related information meets preset data management condition, then be managed described user data, including:
Judge whether described storage class is the default storage class in described preset data management condition;
The most described user data is carried out delete processing;Described described user data is carried out at deletion Reason specifically includes: retains the user data that storage is corresponding with described storage class, deletes other user data.
If the described related information that described communication terminal determines in S102 is storage class, described communication is eventually End can be by the described storage class determined in S102 and setting in user/system this communication terminal in advance Default storage class (such as important relation people) in preset data management condition compare judge as described in storage Whether type is described default storage class, if described communication terminal determines during described storage class described pre- If storage class, then described communication terminal can retain the user data that storage is corresponding with described storage class, Delete the user data remaining other in described communication terminal;Otherwise, flow process is terminated.
The most alternatively, in the embodiment of the present invention, described method also includes:
Display subscriber administration interface, described subscriber administration interface shows for prompting described user data It is managed the information arranged;
Detect and obtain the managing configuration information that user inputs on described subscriber administration interface;
Wherein, described managing configuration information includes access times threshold value, resolution threshold scope, takes up room At least one in threshold value, the first duration threshold value, the second duration threshold value, default storage class.
Described communication terminal can show subscriber administration interface, described use on the display interface of this communication terminal Can show one or more information on the administration interface of family, described information is used for prompt terminal Family described user data is carried out autonomous management arrange (as set delete picture/video of presetting in date range/ Chat record/note etc.);User can be self-defined on the described subscriber administration interface of described communication terminal displays Carrying out user data management setting, described communication terminal can detect and obtain user at described user's management field The managing configuration information (that is to say user data management configuration information) of input, described managing configuration information on face Can include such as access times threshold value, resolution threshold scope, the threshold value that takes up room, the first duration threshold value, The information such as the second duration threshold value, default storage class.
Exemplarily, user self-defined on the subscriber administration interface of described communication terminal can arrange this communication Terminal carries out the various management requirements of data management to described user data, user can independently as described in use On the administration interface of family, described user data is reused number of times to be configured, that is to say described user data Reuse number of times require more than or more than or equal to how many times described communication terminal just can be to described user Data carry out data management, and described communication terminal can detect and obtain user on described subscriber administration interface Reuse number of times described in Shu Ru, described communication terminal can also will detect described in reuse number of times As the access times threshold value in described preset data management condition;In like manner, user can also be described user To the resolution of described user data on administration interface, take up room, store duration, storage class etc. and arrange Information is configured, and described communication terminal can check and obtain user and input on described subscriber administration interface Resolution sizes, the size that takes up room, the storage information such as duration information, storage class information, described logical Each configuration information that the user got can also be inputted on described subscriber administration interface by letter terminal respectively As corresponding predetermined threshold value in described preset data management condition, as described communication terminal can will be used The resolution sizes that family inputs on described subscriber administration interface is as dividing in described preset data management condition Resolution threshold value.
In order to help the understanding to above-described embodiment, it is explained in detail below by an example.Existing One user A needs to be purged all pictures including normal picture and high definition picture in this mobile phone A pipe Reason, it is assumed that user A has carried out different pictures to normal picture, high definition picture in advance in mobile phone A respectively Management is arranged, and it is specially user and is provided with in described mobile phone A when same pictures is reused more than 5 Need this picture to carry out duplicate removal process, when the resolution of a normal picture is at 100-300PPI after secondary Need this picture is degraded process, when high definition picture file size more than 1M or high definition picture point This high definition picture is degraded process and compression process is needed when resolution is more than 300PPI;User A also may be used Be configured with the storage period to picture, as to storage duration more than 1 month and within 20 days not by with The picture that family uses is purged;User A can also be for the different connection in mobile phone A chat software/telephone directory Being people to the picture received or send carries out classification storage, as user can therefrom choose some such as relatives, Important friend, colleague etc. are as important relation people, and will be received or send in described important relation people Picture stores.
Mobile phone A can detect and obtain the various pictures managements setting that user is carried out in described mobile phone A, institute State mobile phone A also the picture that the user got A is arranged is reused number of times as in default management condition Access times threshold value 5 times, normal picture is managed in default management condition by 100-300PPI Resolution threshold scope, using 1M as the threshold value that takes up room in default management condition, by 300PPI make For the resolution threshold in default management condition, high definition picture being managed;Described mobile phone A can also will be used Family arrange 1 month as the first duration threshold value, using 20 days as the second duration threshold value, by described important It is that people is as default storage class.
Mobile phone A can detect and obtain individual use time of all pictures including normal picture and high definition picture Number (that is to say the number of times that single picture is received or sends), described mobile phone A can also judge described use Whether number of times exceedes access times threshold value 5 times, if exceeding, then described picture will only be preserved by mobile phone A Once, the described picture repeating to preserve is deleted;Exemplarily, if mobile phone A detects a certain single picture and connect The number of times received or send is the access times threshold value that exceeded in default management condition for 7 times 5 times, then hands Described picture is only preserved once by machine A, deletes and is repeated 6 times the preservation to described picture, and mobile phone A also may be used To be compressed described picture processing, the thumbnail identical with this picture is used to show in chat software; And/or,
Mobile phone A can detect and obtain the resolution sizes of all normal picture in this mobile phone A, described hands Machine A can also judge described resolution whether within resolution threshold scope 100-300PPI, if so, that Mobile phone A will reduce the resolution of described picture;Exemplarily, if mobile phone A detects in this mobile phone a certain The resolution sizes of normal picture is 180PPI resolution threshold scope in described default management condition Within 100-300PPI, described normal picture will be degraded process by described mobile phone A, reduce described commonly The resolution of picture, reduces the file size of described normal picture so that the resolution of described normal picture is low In described resolution threshold 100PPI;And/or,
Mobile phone A can detect and obtain the size that takes up room of all of high definition picture in this mobile phone A, described Mobile phone A takes up room whether exceed threshold value 1M that takes up room, if exceeding, then mobile phone described in can also judging Described high definition picture will be compressed processing by A;And/or,
Mobile phone A can detect and obtain the resolution sizes of all of high definition picture, described hands in this mobile phone A Machine A can also judge whether described resolution exceedes resolution threshold 500PPI, if exceeding, then mobile phone A To be degraded process and/or compression process to described high definition picture;Exemplarily, if mobile phone A detects this In mobile phone the resolution sizes of a high definition picture be 500PPI, the file size of this high definition picture be 1.2M, institute State mobile phone A and may determine that resolution 500PPI of described high definition picture exceedes in described default management condition Resolution threshold 300PPI, and/or file size 1.2M determining described high definition picture (that is to say described height Taking up room as 1.2M of clear picture) exceed threshold value 1M that takes up room in described default management condition, institute State mobile phone A described high definition picture can be degraded process and/or compression process, that is to say described mobile phone A Described high definition picture can be carried out packing pressure by resolution and/or the mobile phone A that can reduce described high definition picture Contracting, reduces the file size reducing described high definition picture, reduces the memory space taking mobile phone A, mobile phone A The thumbnail identical with this high definition picture can also be used in chat software to show, user A can click on This thumbnail check described high definition picture degrade after effect picture, user A can double-click or click on mobile phone The artwork high definition picture of packaged compression checked by artwork button on A;And/or,
Mobile phone A can detect and obtain the storage duration of all pictures in this mobile phone A, and deposits described in judgement Storage duration whether exceed/more than or equal to described first duration threshold value 1 month (60 days), if exceeding/being more than or equal to, So mobile phone A can delete this mobile phone A stores duration exceed/more than or equal to the institute of 1 month (60 days) Have picture, within a length of 75 days when the storage of picture a certain during mobile phone A detects this mobile phone, exceeded as described in first Duration threshold value 1 month (60 days), then mobile phone A can delete this picture;And/or,
Mobile phone A can detect and obtain the duration that all pictures in this mobile phone A are not used by a user, and sentences Whether the duration not being used by a user described in Duan exceed/more than or equal to described second duration threshold value 20 days, if exceeding / be more than or equal to, then mobile phone A can delete the duration not being used by a user described in this mobile phone A exceed/big In all pictures equal to 20 days;And/or,
Mobile phone A can detect and obtain the storage class of all pictures in this mobile phone A, and deposits described in judgement Whether storage type is to preset storage class (such as important storage class), the most so mobile phone A to retain and deposit Storage type is the picture of important storage class, deletes all pictures that storage class is not important storage class, That is to say that mobile phone A retains in the important relation people such as the above-mentioned such as relatives of storage, important friend, colleague to be sent out The all pictures sent or receive, delete in insignificant contact person (such as acquaintance) and are sent or receive The all pictures arrived.
Carrying out in storage period setting up procedure it should be noted that above-mentioned to picture, user A can be to including All pictures of normal picture and high definition picture carry out storage period setting, if the deletion of above-mentioned setting is more than 1 Individual month storage duration and all pictures not being used by a user within 20 days, wherein said all pictures include The pictures such as the high definition picture that have normal picture, compressed, the high definition picture/normal picture being degraded process;With Family A only can also carry out storage period and set high definition picture or normal picture or other certain class picture Putting, arrange as user A only carries out deletion to the normal picture more than 1 month, the embodiment of the present invention is not made Limit.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, if described related information meets preset data management condition, then to described number of users According to being managed, the described management carrying out described user data includes at the duplicate removal to described user data One or more in reason, the process that degrades, compression process, delete processing;So can be according to the demand of user Have for, on purpose user data is managed, improve the convenient and swift property of data management, simultaneously Also save the memory source of terminal.
See also Fig. 2, be the schematic flow sheet of the another kind of data managing method of the embodiment of the present invention, this The described method of inventive embodiments can include step S101 as above to step S103, wherein step S103 specifically includes:
If the described related information of S201 is access times, it is judged that whether described access times exceed described presetting Access times threshold value in data management condition.
In the embodiment of the present invention, if communication terminal determine described access times exceed or more than or equal to user/ Access times threshold value in the preset data management condition that system is arranged in advance in this communication terminal, then continue Perform step S202;Otherwise terminate flow process.
S202, described user data is only preserved once, delete the described user data repeated.
And/or, step S103 specifically includes:
If the described related information of S203 is resolution, it is judged that whether described resolution is at described preset data pipe Within the scope of resolution threshold in reason condition.
In the embodiment of the present invention, if communication terminal determines described resolution in user/system in advance in this communication Within the scope of resolution threshold in the preset data management condition arranged in terminal, then continue executing with step S204;Otherwise terminate flow process.
S204, reduce the resolution of described user data, in order to the resolution of described user data is less than institute State resolution threshold scope.
And/or, step S103 specifically includes:
If the described related information of S205 is for taking up room, it is judged that described in take up room whether exceed described preset The threshold value that takes up room in data management condition.
In the embodiment of the present invention, if communication terminal determine described in take up room exceed or more than or equal to user/ The threshold value that takes up room in the preset data management condition that system is arranged in advance in this communication terminal, then continue Perform step S206;Otherwise terminate flow process.
S206, described user data is carried out packing compression, in order to accounting for of the user data after described compression With space be less than described in take up room threshold value.
And/or, step S103 specifically includes:
If the described related information of S207 is storage duration, it is judged that whether described storage duration is more than or equal to institute State the first duration threshold value in preset data management condition, and judge what described user data was not used by a user Whether duration is more than or equal to the second duration threshold value in described preset data management condition.
In the embodiment of the present invention, if communication terminal determine described storage duration exceed or more than or equal to user/ The first duration threshold value in the preset data management condition that system is arranged in advance in this communication terminal, and judge To the described duration not being used by a user more than or equal to user/system in advance in this communication terminal arrange pre- If the described second duration threshold value in data management condition, then continue executing with step S208;Otherwise terminate flow process.
S208, by described storage duration more than or equal to described first duration threshold value, and described do not made by user Duration delete more than or equal to the user data of described second duration threshold value.
And/or, step S103 specifically includes:
If the described related information of S209 is storage class, it is judged that whether described storage class is described present count According to the default storage class in management condition.
In the embodiment of the present invention, if it is that user/system is in advance in BENTONG that communication terminal determines described storage class Default storage class in the preset data management condition arranged in letter terminal, then continue executing with step S210; Otherwise terminate flow process.
S210, reservation store the user data corresponding with described storage class, delete other user data.
It should be noted that above-mentioned steps S201-S202, S203-S204, S205-S206, S207-S208, S209-S210 can be arranged side by side, that is to say that communication terminal can select in above-mentioned 5 step stage any one Implement step stage to perform, it is also possible to being 5, to implement the step stage order that is carried out and performs be can Becoming, the embodiment of the present invention is not construed as limiting.
See also Fig. 3, be the schematic flow sheet of the another kind of data managing method of the embodiment of the present invention, this The described method of inventive embodiments can include such as figure 1 above embodiment in step S101 to step S103, and / or, step S201 in can including such as figure 2 above embodiment is to step S210, it is also possible to including:
S301, display subscriber administration interface, described subscriber administration interface shows for prompting described use User data is managed the information arranged.
S302, detect and obtain the managing configuration information that user inputs on described subscriber administration interface;Wherein, Described managing configuration information include access times threshold value, resolution threshold scope, the threshold value that takes up room, first One or more in duration threshold value, the second duration threshold value, default storage class.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, if described related information meets preset data management condition, then to described number of users According to being managed, the described management carrying out described user data includes at the duplicate removal to described user data One or more in reason, the process that degrades, compression process, delete processing;So can be according to the demand of user Have for, on purpose user data is managed, improve the convenient and swift property of data management, simultaneously Also save the memory source of terminal.
Referring to Fig. 4, be the structural representation of a kind of data administrator of the embodiment of the present invention, the present invention is real The described device executing example can may be provided at the band such as such as smart mobile phone, panel computer, intelligence wearable device In the terminal of communications network functionality, described device 4 includes:
Acquiring unit 30, needs, for obtaining, the user data carrying out data management;
Determining unit 31, for determining the related information of described user data, described related information is secondary for using Number, resolution, take up room, store in duration, storage class at least one;
For described, administrative unit 32, if determining that the related information determined in unit 31 meets preset data management Condition, then be managed described user data;It is right that the described management carrying out described user data includes At least one in the duplicate removal process of described user data, the process that degrades, compression process, delete processing.
Implementing of the unit related in the embodiment of the present invention refers to Fig. 1 to Fig. 3 correspondence embodiment The description of middle correlation function, is not repeated herein.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, described related information is access times, take up room, resolution, storage duration, At least one in storage class, if described related information meets preset data management condition, then to described User data is managed, and the described management carrying out described user data includes described user data At least one in duplicate removal process, the process that degrades, compression process, delete processing;So can be according to user's Demand have for, on purpose user data is managed, improve the convenient and swift property of data management, Also save the memory source of terminal simultaneously.
See also Fig. 5, be the structural representation of the another kind of data administrator of the embodiment of the present invention, this The described device 5 of inventive embodiments can be above-mentioned acquiring unit 30, determine unit 31, administrative unit 32, Can also include:
If determining that the related information determined in unit 31 is access times described, described administrative unit 32 includes:
Judging unit 320, for judging whether described access times exceed in described preset data management condition Access times threshold value;
Processing unit 321, if determining described access times for described judging unit 320 to exceed described use Frequency threshold value, then carry out duplicate removal process to described user data;Described described user data is carried out at duplicate removal Reason specifically includes: only preserve described user data once, deletes the described user data repeated.
The most alternatively, in the embodiment of the present invention, determine that the related information determined in unit 31 is for dividing if described Resolution,
Described judging unit 320, is additionally operable to judge that described resolution is whether in described preset data management condition Resolution threshold within the scope of;
Described processing unit 321, if being additionally operable to described judging unit 320 to determine described resolution at described point Within resolution threshold range, then degrade process to described user data;Described described user data is entered The capable process that degrades specifically includes: reduce the resolution of described user data, in order to the resolution of described user data Rate is less than described resolution threshold scope.
The most alternatively, in the embodiment of the present invention, determine that the related information determined in unit 31 is for accounting for if described With space,
Described judging unit 320, whether being additionally operable to described in judgement takes up room exceedes described preset data management bar The threshold value that takes up room in part;
Described processing unit 321, if be additionally operable to described judging unit 320 determine described in take up room and exceed institute State the threshold value that takes up room, be then compressed described user data processing;Described described user data is carried out Compression processes and specifically includes: described user data carries out packing compression, in order to the user after described compression The taking up room of data takes up room threshold value described in being less than.
The most alternatively, in the embodiment of the present invention, determine that the related information determined in unit 31 is for depositing if described Storage duration,
Described judging unit 320, is additionally operable to judge that whether described storage duration is more than or equal to described preset data The first duration threshold value in management condition, and judge that the duration that described user data is not used by a user is the biggest In or equal to the second duration threshold value in described preset data management condition;
Described processing unit 321, if be additionally operable to described judging unit 320 determine described storage duration more than or Equal to described first duration threshold value, and the described duration not being used by a user is more than or equal to described second duration Threshold value, then carry out delete processing to described user data;Described described user data is carried out delete processing tool Body includes: by described storage duration more than or equal to described first duration threshold value, and described is not used by a user Duration carry out deleting evidence more than or equal to the user data of described second duration threshold value.
The most alternatively, in the embodiment of the present invention, determine that the related information determined in unit 31 is for depositing if described Storage type,
Described judging unit 320, is additionally operable to judge whether described storage class is described preset data management condition In default storage class;
Described processing unit 321, if it is described for be additionally operable to described judging unit 320 determining described storage class Preset storage class, then described user data is carried out delete processing;Described described user data is deleted Except process specifically includes: retain the user data that storage is corresponding with described storage class, delete other user Data.
The most alternatively, in the embodiment of the present invention, described device also includes:
Display module 33, is used for showing subscriber administration interface, described subscriber administration interface shows for carrying Show the information that described user data is managed to be arranged;
Described acquisition module 30, is additionally operable to detection and obtains the pipe that user inputs on described subscriber administration interface Reason configuration information;Wherein, described managing configuration information include access times threshold value, resolution threshold scope, Take up room at least one in threshold value, the first duration threshold value, the second duration threshold value, default storage class.
Implementing of the unit related in the embodiment of the present invention refers to Fig. 1 to Fig. 3 correspondence embodiment The description of middle correlation function, is not repeated herein.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, if described related information meets preset data management condition, then to described number of users According to being managed, the described management carrying out described user data includes at the duplicate removal to described user data At least one in reason, the process that degrades, compression process, delete processing;So can have according to the demand of user For, on purpose user data is managed, improve the convenient and swift property of data management, the most also Save the memory source of terminal.
Refer to Fig. 6 again, be the structural representation of a kind of terminal of the embodiment of the present invention.Described terminal can be The equipment of the band communications network functionalities such as smart mobile phone, panel computer, intelligence wearable device, as shown in Figure 6, The described terminal of the embodiment of the present invention can include the modules such as display screen, button, speaker, pick up, and And also include: at least one bus 501, at least one processor 502 being connected with bus 501 and with always At least one memorizer 503 that line 501 is connected, it is achieved the communicator 505 of communication function, for communication terminal The supply unit 504 of each power consumption module for power supply.
Described processor 502 can pass through bus 501, calls the code of storage in memorizer 503 relevant to perform Function.
Described processor 502, needs, for obtaining, the user data carrying out data management;Determine described number of users According to related information, described related information is access times, resolution, takes up room, stores duration, deposits At least one in storage type;If described related information meets preset data management condition, then to described user Data are managed;The described management carrying out described user data includes the duplicate removal to described user data At least one in process, the process that degrades, compression process, delete processing.
Still optionally further, if it is access times that described processor 502 is additionally operable to described related information, it is judged that Whether described access times exceed the access times threshold value in described preset data management condition;The most right Described user data carries out duplicate removal process;Described described user data is carried out duplicate removal process specifically include: right Described user data only preserves once, deletes the described user data repeated.
Still optionally further, if it is resolution that described processor 502 is additionally operable to described related information, it is judged that institute Within the scope of stating resolution resolution threshold whether in described preset data management condition;The most right Described user data carries out the process that degrades;The described process that degrades described user data specifically includes: fall The resolution of low described user data, in order to the resolution of described user data is less than described resolution threshold Scope.
Still optionally further, if described processor 502 is additionally operable to described related information for taking up room, it is judged that The described threshold value that takes up room whether exceeded in described preset data management condition that takes up room;The most right Described user data is compressed processing;Described described user data is compressed process specifically includes: will Described user data carries out packing compression, in order to taking up room of the user data after described compression is less than The described threshold value that takes up room.
Still optionally further, if described processor 502 is additionally operable to described related information for storage duration, it is judged that Whether described storage duration is more than or equal to the first duration threshold value in described preset data management condition, and sentences Whether the duration that disconnected described user data is not used by a user is more than or equal in described preset data management condition The second duration threshold value;If described storage duration is more than or equal to described first duration threshold value, and described not by Described user data more than or equal to described second duration threshold value, is then carried out at deletion by the duration that user uses Reason;Described described user data is carried out delete processing specifically include: described storage duration is more than or equal to Described first duration threshold value, and the described duration not being used by a user is more than or equal to described second duration threshold value User data delete.
Still optionally further, if it is storage class that described processor 502 is additionally operable to described related information, it is judged that Whether described storage class is the default storage class in described preset data management condition;The most then to institute State user data and carry out delete processing;Described described user data is carried out delete processing specifically include: retain Store the user data corresponding with described storage class, delete other user data.
The embodiment of the present invention can need to carry out the user data of data management by acquisition, and determines described user The related information of data, if described related information meets preset data management condition, then to described number of users According to being managed, the described management carrying out described user data includes at the duplicate removal to described user data One or more in reason, the process that degrades, compression process, delete processing;So can be according to the demand of user Data management is managed, have for, on purpose user data is managed, improve data pipe The convenient and swift property of reason, also saves the memory source of terminal simultaneously.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can be deposited Containing program, this program includes when performing that any audio frequency described in said method embodiment plays the behaviour of application Make the part or all of step of method.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore it is all stated For a series of combination of actions, but those skilled in the art should know, the present invention is not by described The restriction of sequence of movement, because according to the present invention, some step can use other orders or enter simultaneously OK.Secondly, those skilled in the art also should know, embodiment described in this description belongs to excellent Select embodiment, necessary to involved action and the unit not necessarily present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, can be passed through it Its mode realizes.Such as, device embodiment described above is only schematically, the most described list The division of unit, is only a kind of logic function and divides, and actual can have other dividing mode, example when realizing As multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, Or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can To be the INDIRECT COUPLING by some interfaces, device or unit or communication connection, can be electrical or other Form.
The described unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit In.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ SFU software functional unit Form realizes.
If described integrated unit realizes using the form of SFU software functional unit and as independent production marketing or During use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention The part that the most in other words prior art contributed of technical scheme or this technical scheme whole or Part can embody with the form of software product, and this computer software product is stored in a storage medium In, including some instructions with so that a computer equipment (can be personal computer, server or net Network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage Medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code Medium.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.
The above, above example only in order to technical scheme to be described, is not intended to limit;To the greatest extent The present invention has been described in detail by pipe with reference to previous embodiment, and those of ordinary skill in the art should manage Solve: the technical scheme described in foregoing embodiments still can be modified by it, or to wherein part Technical characteristic carries out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution take off Scope from various embodiments of the present invention technical scheme.

Claims (10)

1. the method for a data management, it is characterised in that described method includes:
Obtain and need the user data carrying out data management;
Determine that the related information of described user data, described related information are access times, resolution, storage At least one in duration, storage class;
If described related information meets preset data management condition, then described user data is managed;
The described management carrying out described user data includes that the duplicate removal to described user data processes, degrades At least one in process, delete processing.
2. the method for claim 1, it is characterised in that described related information is access times, institute If stating described related information to meet preset data management condition, then described user data is managed, including:
Judge whether described access times exceed the access times threshold value in described preset data management condition;
The most described user data is carried out duplicate removal process;Described described user data is carried out at duplicate removal Reason specifically includes: only preserve described user data once, deletes the described user data repeated.
3. the method for claim 1, it is characterised in that described related information is resolution, described If described related information meets preset data management condition, then described user data is managed, including:
Within the scope of judging described resolution resolution threshold whether in described preset data management condition;
The most then degrade process to described user data;Described place that described user data is degraded Reason specifically includes: reduce the resolution of described user data, in order to the resolution of described user data is less than Described resolution threshold scope.
4. the method for claim 1, it is characterised in that described related information is storage duration, institute If stating described related information to meet preset data management condition, then described user data is managed, including:
Judge that whether described storage duration is more than or equal to the first duration threshold in described preset data management condition Value, and judge whether the duration that described user data is not used by a user is more than or equal to described preset data pipe The second duration threshold value in reason condition;
If described storage duration be more than or equal to described first duration threshold value, and described be not used by a user time Long more than or equal to described second duration threshold value, then described user data is carried out delete processing;Described to institute State user data to carry out delete processing and specifically include: by described storage duration more than or equal to described first duration Threshold value, and the described duration not being used by a user enters more than or equal to the user data of described second duration threshold value Row is deleted.
5. the method for claim 1, it is characterised in that described related information is storage class, institute If stating described related information to meet preset data management condition, then described user data is managed, including:
Judge whether described storage class is the default storage class in described preset data management condition;
The most described user data is carried out delete processing;Described described user data is carried out at deletion Reason specifically includes: retains the user data that storage is corresponding with described storage class, deletes other user data.
6. a terminal, it is characterised in that described terminal includes:
Acquiring unit, needs, for obtaining, the user data carrying out data management;
Determine unit, for determining the related information of described user data, described related information be access times, At least one in resolution, storage duration, storage class;
Administrative unit, if determining that the related information determined in unit meets preset data management condition for described, Then described user data is managed;The described management carrying out described user data includes described use The duplicate removal of user data processes, degrade in process, delete processing at least one.
7. terminal as claimed in claim 6, it is characterised in that described determine the association letter determined in unit Breath is access times, and described administrative unit includes:
Judging unit, for judging whether described access times exceed making in described preset data management condition Use frequency threshold value;
Processing unit, if determining described access times for described judging unit to exceed described access times threshold Value, then carry out duplicate removal process to described user data;The described duplicate removal that carries out described user data processes concrete Including: described user data is only preserved once, deletes the described user data repeated.
8. terminal as claimed in claim 6, it is characterised in that described determine the association letter determined in unit Breath is resolution,
Described judging unit, is additionally operable to judge that described resolution is whether in described preset data management condition Within the scope of resolution threshold;
Described processing unit, if being additionally operable to described judging unit to determine described resolution at described resolution threshold Within the scope of value, then degrade process to described user data;Described described user data is degraded Process specifically includes: reduce the resolution of described user data, in order to the resolution of described user data does not surpasses Cross described resolution threshold scope.
9. terminal as claimed in claim 6, it is characterised in that described determine the association letter determined in unit Breath is storage duration,
Described judging unit, is additionally operable to judge that whether described storage duration is more than or equal to described preset data pipe The first duration threshold value in reason condition, and judge whether the duration that described user data is not used by a user is more than Or equal to the second duration threshold value in described preset data management condition;
Described processing unit, if being additionally operable to described judging unit to determine described storage duration more than or equal to institute State the first duration threshold value, and the described duration not being used by a user be more than or equal to described second duration threshold value, Then described user data is carried out delete processing;Described described user data carried out delete processing specifically include: By described storage duration more than or equal to described first duration threshold value, and described be not used by a user time grow up In or delete equal to the user data of described second duration threshold value.
10. terminal as claimed in claim 6, it is characterised in that described determine the association determined in unit Information is storage class,
Described judging unit, is additionally operable to judge whether described storage class is in described preset data management condition Default storage class;
Described processing unit, if be additionally operable to described judging unit determining described storage class is that described presetting is deposited Storage type, then carry out delete processing to described user data;Described described user data is carried out delete processing Specifically include: retain the user data that storage is corresponding with described storage class, delete other user data.
CN201610194822.7A 2016-03-30 2016-03-30 Data management method and terminal Withdrawn CN105912572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610194822.7A CN105912572A (en) 2016-03-30 2016-03-30 Data management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610194822.7A CN105912572A (en) 2016-03-30 2016-03-30 Data management method and terminal

Publications (1)

Publication Number Publication Date
CN105912572A true CN105912572A (en) 2016-08-31

Family

ID=56745271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610194822.7A Withdrawn CN105912572A (en) 2016-03-30 2016-03-30 Data management method and terminal

Country Status (1)

Country Link
CN (1) CN105912572A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295173A (en) * 2017-06-21 2017-10-24 广东欧珀移动通信有限公司 Delete the method and Related product of chat messages
CN110166619A (en) * 2018-02-13 2019-08-23 阿里巴巴集团控股有限公司 The method for down loading and client of picture
CN111031030A (en) * 2019-12-10 2020-04-17 深圳前海环融联易信息科技服务有限公司 Cache processing method and device, computer equipment and storage medium
CN111639764A (en) * 2020-05-19 2020-09-08 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177591A1 (en) * 2004-02-06 2005-08-11 Akitsugu Kanda Storage system for managing data with predetermined retention periods
CN103761306A (en) * 2014-01-22 2014-04-30 深圳市欧珀通信软件有限公司 Smart terminal file cleaning method and device
CN103870549A (en) * 2014-02-27 2014-06-18 中国石油天然气股份有限公司 Method and device for cleaning petroleum geology software data
CN104572922A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Image processing method and device based on mobile equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177591A1 (en) * 2004-02-06 2005-08-11 Akitsugu Kanda Storage system for managing data with predetermined retention periods
CN103761306A (en) * 2014-01-22 2014-04-30 深圳市欧珀通信软件有限公司 Smart terminal file cleaning method and device
CN103870549A (en) * 2014-02-27 2014-06-18 中国石油天然气股份有限公司 Method and device for cleaning petroleum geology software data
CN104572922A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Image processing method and device based on mobile equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295173A (en) * 2017-06-21 2017-10-24 广东欧珀移动通信有限公司 Delete the method and Related product of chat messages
CN110166619A (en) * 2018-02-13 2019-08-23 阿里巴巴集团控股有限公司 The method for down loading and client of picture
CN111031030A (en) * 2019-12-10 2020-04-17 深圳前海环融联易信息科技服务有限公司 Cache processing method and device, computer equipment and storage medium
CN111639764A (en) * 2020-05-19 2020-09-08 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability
CN111639764B (en) * 2020-05-19 2021-04-09 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability

Similar Documents

Publication Publication Date Title
CN105912572A (en) Data management method and terminal
CN104021160B (en) A kind of client data method for cleaning and device
CN103970774A (en) Notice icon clearing method and device
CN104516794B (en) Backup method, the apparatus and system of database file
CN104021159B (en) A kind of client file method for cleaning and device
CN104679851B (en) A kind of data-erasure method and terminal
CN105989102A (en) Method and device for deleting backup data
CN107016123B (en) File management method and terminal device
CN104601683A (en) File download management method, mobile terminal and communication system
CN106953985A (en) The management method and terminal of a kind of PUSH message
CN107832452A (en) A kind of photo management method and device
CN103473343A (en) File management method, device and terminal
CN104778168A (en) Data processing method and device
CN104935444B (en) Isomery log system management configuration device and method
CN103577417A (en) Desktop cleaning method and device
CN106127593A (en) Emoticon processing method, device and terminal
CN105487769B (en) A kind of media file methods of exhibiting, device and electronic equipment
CN108777810A (en) Video data storage method, device, equipment and storage medium
CN106406747A (en) Hard disk storage management method and apparatus for mobile terminal
CN107943581A (en) Using method for cleaning, device, storage medium and electronic equipment
CN104954552B (en) A kind of information processing method and device, terminal
CN110263023A (en) Automatic outer call method, apparatus and computer readable storage medium
CN103092768A (en) Method and device of data processing in application system
CN110543451A (en) Method and device for efficiently cleaning equipment files
CN109255214A (en) A kind of authority configuring method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20160831

WW01 Invention patent application withdrawn after publication