Embodiment
Below in conjunction with accompanying drawing, provide the method for data processing in application system and the embodiment of device to be described in detail to the embodiment of the present invention.
The method that in a kind of application system that the embodiment of the present invention provides, data are processed as shown in Figure 1, specifically comprises the following steps:
Step 101, distribute physically mutually independently the first memory block and the second memory block for application system in advance, wherein, the first memory block is used for storage user's file, and the second memory block is used for reclaiming user's file;
Step 102, when receiving the instruction of file destination of user's appointment in deletion the first memory block, file destination is moved to the second memory block;
Step 103, discharge in the first memory block by the shared space of file destination.
the embodiment of the present invention is distributed physically mutually independently the first memory block and the second memory block for application system in advance, in receiving deletion the first memory block during the instruction of file destination of user's appointment, at once file destination is moved to the second memory block, discharge in the first memory block by the shared space of file destination, making the first memory block of distributing to user's storage file is all that the user is used, and file destination that can be not deleted is shared, and the user need not to reaffirm to discharge in the first memory block by the shared space of file destination, reduce the complexity of user's operation, in addition, the design proposal of the first memory block and the second memory block independently, the file destination of deletion temporarily can be kept in the second memory block, to a certain extent, the size of the storage space of the spendable application system of user is the first memory block size of distributing and the summation of the second memory block size, thereby makes the storage space of the actual available application system of user become large.
Application system described in this example can be specifically that mail E-mail system, cloud service system (cloudlike systems such as photograph albums) or equipment (as PC or mobile phone) operating system etc. can provide the Web of certain service to use or terminal is local uses for the user.
The embodiment of the present invention is when distributing physically mutually independently the first memory block and the second memory block for application system, specifically can also comprise: the size of the first memory block is set to the first predetermined value, and the size of the second memory block is set to a definite value or infinity; Wherein, the first predetermined value can be according to the storage capacity of application system itself or/and customer volume arranges, and this example does not limit, and can be that 5G, 10G are even larger etc.
The second memory block described in this example is not exactly an interim register mode area of data, be used for to place the data of the interim deletion of user, and here, the data in the second memory block still can take storage space, and is readable, can not edit, and can reduce, can thoroughly delete; This example can not limit the size of the second memory block, the technical scheme that provides according to this example, the file destination of deleting in the first memory block temporarily can be deposited with in the second memory block, and in the situation that this example does not limit the second memory block size, the file in a large amount of the first memory blocks can be deposited in the second memory block, can with user in application system can with the size of the storage space size that is described the first memory block by the expanded in size of described the first memory block add the size of the second memory block.
File described in this example can be picture file, word content text, video file or audio file etc.
The method that in the application system that the present embodiment provides, data are processed also comprises: when receiving the instruction of file destination deleted in reduction the second memory block, with in the second memory block originally deleted file destination move back to the first memory block, and with the record deletion of file destination described in the second memory block.
when the technical program can the first memory block can't hold new file in application system, some file destinations in the first memory block are moved to the second memory block to be deposited, like this, in the first memory block, the occupied space of part can be released, in order to store new file, when the user needs to check described file destination again, in the situation that the first memory block is full, can also adopt the technical program temporarily new file to be moved to the second memory block and deposit to discharge certain storage space, moving back to the first memory block with the file destination that will be deposited in the second memory block checks or edits for the user.Make that in application system, the user fixes available storage space (being also described the first memory block) originally by means of independently realizing dynamically changeable in the second memory block with it.
In the embodiment of the present invention, above-mentioned before the file destination in the second memory block is moved back to the first memory block, can also comprise: the number of times of determining to receive the instruction of file destination in reduction the second memory block; When determined number of times is not more than the second predetermined value, the file destination in the second memory block is moved back to the first memory block; , forbid the file destination in the second memory block is moved back to the first memory block during greater than the second predetermined value when determined number of times.Wherein, the second predetermined value can be arranged by application system, can be 3 times or 4 fourth class, and this examples comparative is not done too much restriction, repeatedly deletes or the number of times of restore target file in order to limited subscriber.
The method that in the application system that the embodiment of the present invention provides, data are processed also comprises: timer is set, when the timer timing then, remove part or all of file destination in the second memory block; To realize the automatic management to the second memory block.
The method that in the application system that the embodiment of the present invention provides, data are processed also comprises: the number of determining file destination in the second memory block; When the number of file destination during greater than the 3rd predetermined value, when opening the second memory block, only show the file destination of front the 3rd predetermined value in the second memory block; When the number of file destination is not more than the 3rd predetermined value, when opening the second memory block, show whole file destination in the second memory block; Wherein, the 3rd predetermined value can be by system's Set arbitrarily, as 100 or 1000 etc., in order to when too much, can accelerate the procedure for displaying of the second memory block File at the second memory block File.
The below take application system as the cloud album system, file is described in detail method provided by the invention as the application scenarios of photo as example, application under other application systems similarly, just repeat no more, as shown in Fig. 2 a, the process of the photo in the cloud photograph album being deleted processing comprises the steps:
Step 201a, be that user's cloud album system distributes physically independent the first memory block and the second memory block in advance;
When specific implementation, distribute the first memory block of one first predetermined value size for user's cloud photograph album, as the 5G size, and second memory block of not establishing the upper limit, here, the first memory block is used for storage user's photo, and the second memory block is used for the photo that temporary user deletes.
Step 202a, when receiving the request of user's storage picture, whether the first memory block of determining the cloud album system has enough remaining spaces to store the user is asked the photo stored;
When there was the photo that enough remaining space storage user asks to store the first memory block, the photo storage that institute ask to store arrived described the first memory block;
When the first memory block does not have photo that enough remaining space storage user asks to store, execution in step 203a;
Whether step 203a, prompting user delete some photos the first memory block in, when receiving the instruction of deleting the target photo of user's appointment in the first memory block, the target photo of user's appointment are moved to the second memory block;
Step 204a, discharge in the first memory block by the shared space of described target photo, ask the photo of storing with the storage user;
The embodiment of the present invention is that user's cloud photograph album distributes independently the first memory block and the second memory block in advance, in receiving deletion the first memory block during the instruction of target photo of user's appointment, at once the target photo is moved to the second memory block, discharge in the first memory block by the shared space of target photo, the user need not to reaffirm to discharge in the first memory block by the shared space of target photo, reduces the complexity of user's operation; In addition, the design proposal of the first memory block and the second memory block independently, the target photo of deletion temporarily can be kept in the second memory block, to a certain extent, the size of the storage space of the spendable cloud photograph album of user is the first memory block size of distributing and the summation of the second memory block size, thereby makes the storage space of the actual available cloud photograph album of user become large.
In this example, being moved to photo temporary in the second memory block can be reduced, and referring to Fig. 2 b, the process that the photo of the second memory block is replied comprises following operation:
Step 201b, when receiving in reduction the second memory block the instruction of target photo, determine to receive the number of times of the instruction of target photo in reduction the second memory block;
When determined number of times is not more than the second predetermined value, execution in step 202b;
, forbid the target photo in the second memory block is moved back to the first memory block during greater than the second predetermined value when determined number of times.
Step 202b, the target photo in the second memory block is moved back to the first memory block, and with the record deletion of target photo in the second memory block;
when the technical program can the first memory block can't hold new photo in the cloud photograph album, some target photos in the first memory block are moved to the second memory block to be deposited, like this, in the first memory block, the occupied space of part can be released, in order to store new photo, when the user needs to check described target photo again, in the situation that the first memory block is full, can also adopt the technical program temporarily new photo to be moved to the second memory block and deposit to discharge certain storage space, moving back to the first memory block with the target photo that will be deposited in the second memory block checks or edits for the user.Make that in the cloud photograph album, the user fixes available storage space (being also described the first memory block) originally by means of independently realizing dynamically changeable in the second memory block with it.
In addition, the technical program limits by the second predetermined value that the user deletes repeatedly or the number of times of restore target photo.Do some deletion of meaningless data and recovery operations with limited subscriber.
the technical program is when specific implementation, can also carry out clear management automatically to the second memory block of independent design in the cloud photograph album, specifically can comprise: timer is set, when the timer timing then, remove target photo part or all of in the second memory block, process data in the second memory block are carried out automatically remove, prevent from placing in the second memory block too much discarded record, in addition, because the data in the second memory block also take storage space, the mechanism of regularly clearing up the second memory block also helps to alleviate the data management burden of cloud photograph album, to strengthen the data management efficiency of cloud photograph album,
The technical program is when specific implementation, can also carry out corresponding display management to the photo in the second memory block of independent design in the cloud photograph album, in order at the second memory block File when too much, can accelerate the procedure for displaying of the second memory block File, referring to Fig. 2 c, specifically can comprise following operation:
Step 201c, when receiving the user and open the instruction of the second memory block, determine the number of target photo in the second memory block;
When the number of target photo during greater than the 3rd predetermined value, execution in step 202c;
When the number of target photo is not more than the 3rd predetermined value, execution in step 203c;
Step 202c, when opening described the second memory block, only show the target photo of front the 3rd predetermined value in the second memory block;
Step 203c, when opening the second memory block, show whole target photo in the second memory block.
Based on same inventive concept, the embodiment of the present invention also provides the device that in a kind of application system, data are processed, because the principle of this device solves problem is similar to the method for data processing in aforementioned a kind of application system, therefore the enforcement of this device can referring to the enforcement of method, repeat part and repeat no more.
The device that in a kind of application system that the embodiment of the present invention provides, data are processed as shown in Figure 3, comprising:
Allocation of space module 301 is used in advance distributing physically mutually independently the first memory block and the second memory block for application system, and wherein, the first memory block is used for storage user's file, and the second memory block is used for recovery user's file;
Data removing module 302 when being used for receiving the instruction of the file destination of deleting first memory block user's appointment, moves to the second memory block with file destination;
Space release module 303 is used for discharging the first memory block by the shared space of file destination.
Preferably, allocation of space module 301 also is used for the size of the first memory block is set to the first predetermined value, and the size of the second memory block is set to infinity.
Preferably, device shown in Figure 3 can also comprise data restoring module, regularly remove at least one in module and data disaply moudle, specifically can be referring to Fig. 4, and device shown in Figure 3 can also comprise:
Data restoring module 304 when being used for receiving the instruction of reduction the second memory block file destination, moves back to the first memory block with the file destination in the second memory block, and with the record deletion of file destination in the second memory block.
Regularly remove module 305, be used for arranging timer, when the timer timing then, remove part or all of file destination in the second memory block.
Data disaply moudle 306 is for the number of determining the second memory block file destination; When the number of file destination during greater than the 3rd predetermined value, when opening the second memory block, only show the file destination of front the 3rd predetermined value in the second memory block; When the number of file destination is not more than the 3rd predetermined value, when opening the second memory block, show whole file destination in the second memory block.
Preferably, referring to Fig. 5, data also grand master pattern 304 comprise:
Identifying unit 3041 is used for determining receiving the number of times of the instruction of reduction the second memory block file destination;
The first processing unit 3042 is used for when determined number of times is not more than the second predetermined value, the file destination in the second memory block being moved back to the first memory block;
The second processing unit 3043 is used for, forbidding the file destination in the second memory block is moved back to the first memory block during greater than the second predetermined value when determined number of times.
The embodiment of the present invention is distributed independently the first memory block and the second memory block for application system in advance, in receiving deletion the first memory block during the instruction of file destination of user's appointment, at once file destination is moved to the second memory block, discharge in the first memory block by the shared space of file destination, the user need not to reaffirm to discharge in the first memory block by the shared space of file destination, reduces the complexity of user's operation; In addition, the design proposal of the first memory block and the second memory block independently, the file destination of deletion temporarily can be kept in the second memory block, to a certain extent, the size of the storage space of the spendable application system of user is the first memory block size of distributing and the summation of the second memory block size, thereby makes the storage space of the actual available application system of user become large.
Through the above description of the embodiments, those skilled in the art can be well understood to the embodiment of the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.