Summary of the invention
Embodiments provide a kind of Dropbox SPATIAL CALCULATION method and device, solve at present by using
Family carries out once-through operation in network hard disc and calculates the design that memory space is enough the most in real time, due to often
Once-through operation just carries out the calculating of memory space so that the server moment is in the duty of intensive,
Thus the work of highly energy-consuming is easily caused the technical problem that server is impaired.
A kind of Dropbox SPATIAL CALCULATION method that the embodiment of the present invention provides, including:
Obtaining the queue lists being added with operating side ID, described operating side ID and Dropbox carry out the behaviour operated
Make instruction corresponding;
Described queue lists is scanned, and extracts successively in described queue lists according to being introduced into order
Described operating side ID;
During extracting successively, the described Dropbox corresponding for described operating side ID every time extracted is carried out
SPATIAL CALCULATION, and in presently described queue lists, delete the described all information of operating side ID.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION method,
Obtaining the queue lists being added with operating side ID, described operating side ID and Dropbox carry out the behaviour operated
Work instruction is corresponding to be specifically included:
The queue lists being added with operating side ID, described operating side ID and net is obtained every preset time period
The operational order that dish carries out operating is corresponding.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION method,
Obtaining the queue lists being added with operating side ID, described operating side ID and Dropbox carry out the behaviour operated
Also include before work instruction is corresponding:
Continuously acquiring the queue lists being added with operating side ID, described operating side ID operates with Dropbox
Operational order corresponding.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION method,
During extracting successively, the described Dropbox corresponding for described operating side ID every time extracted is carried out
SPATIAL CALCULATION, and in presently described queue lists, delete the described all information of operating side ID specifically include:
The described Dropbox corresponding for described operating side ID extracted is carried out SPATIAL CALCULATION, and in presently described team
Row list is deleted the described all information of operating side ID;
Judge whether described queue lists empties, the most then terminate the operation of Dropbox SPATIAL CALCULATION, if it is not,
The described Dropbox corresponding for described operating side ID that then next one is extracted by return previous step carries out space meter
Calculate, and in described queue lists, delete the described all information of operating side ID that the next one extracts.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION method,
Described operational order includes newly-built operation, deletion action and renewal operation.
A kind of Dropbox SPATIAL CALCULATION device that the embodiment of the present invention provides, including:
Adding device, for obtaining the queue lists being added with operating side ID, described operating side ID and net
The operational order that dish carries out operating is corresponding;
Scanning element, for being scanned described queue lists, and extracts successively according to being introduced into order
Described operating side ID in described queue lists;
Computing unit is for during extracting successively, corresponding to the described operating side ID extracted every time
Described Dropbox carry out SPATIAL CALCULATION, and in presently described queue lists, delete described operating side ID own
Information.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION device,
Described adding device includes:
First adds subelement, for obtaining the queue lists being added with operating side ID every preset time period,
The operational order that described operating side ID carries out operating with Dropbox is corresponding.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION device,
Described adding device includes:
Second adds subelement, for continuously acquiring the queue lists being added with operating side ID, described operation
The operational order that end ID carries out operating with Dropbox is corresponding.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION device,
Described computing unit specifically includes:
Computation subunit, for the described Dropbox corresponding for described operating side ID extracted is carried out SPATIAL CALCULATION,
And in presently described queue lists, delete the described all information of operating side ID;
Judgment sub-unit, is used for judging whether described queue lists empties, the most then terminate Dropbox space
Calculate operation, if it is not, the most again trigger the described operating side ID that the next one is extracted by described computation subunit
Corresponding described Dropbox carries out SPATIAL CALCULATION, and deletes in described queue lists described in next one extraction
The all information of operating side ID.
Preferably, in above-mentioned Dropbox SPATIAL CALCULATION device, described operational order includes newly-built operation, deletes
Division operation and renewal operation.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of Dropbox SPATIAL CALCULATION method and device that the embodiment of the present invention provides, wherein, Dropbox space is counted
Calculation method step includes: obtaining the queue lists being added with operating side ID, operating side ID is carried out with Dropbox
The operational order of operation is corresponding;Queue lists is scanned, and extracts successively according to being introduced into order
Operating side ID in queue lists;During extracting successively, corresponding to the operating side ID extracted every time
Dropbox carry out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list.This enforcement
In example, the queue lists being added with operating side ID is scanned, and extracts successively according to being introduced into order
Operating side ID in queue lists, and during extracting successively, to ID pair, the operating side extracted every time
The Dropbox answered carries out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list, just real
Show the calculating in units of the ID of operating side, it is to avoid due to many in the short time of same operating side ID
The technical problem repeatedly calculated that secondary operation is caused, meanwhile, is correspondingly solved and is existed by user at present
Network hard disc carries out once-through operation and calculates the design that memory space is enough the most in real time, due to each time
Operation just carries out the calculating of memory space so that the server moment is in the duty of intensive, from
And the work of highly energy-consuming is easily caused the technical problem that server is impaired.
Detailed description of the invention
Embodiments provide a kind of Dropbox SPATIAL CALCULATION method and device, solve at present by using
Family carries out once-through operation in network hard disc and calculates the design that memory space is enough the most in real time, due to often
Once-through operation just carries out the calculating of memory space so that the server moment is in the duty of intensive,
Thus the work of highly energy-consuming is easily caused the technical problem that server is impaired.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativeness
The all other embodiments obtained under work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, an embodiment of a kind of Dropbox SPATIAL CALCULATION method provided in the embodiment of the present invention
Including:
101, acquisition is added with the queue lists of operating side ID;
In the present embodiment, when needing the space of Dropbox is calculated, acquisition is needed to be added with operating side
The queue lists of ID, the operational order that this operating side ID carries out operating with Dropbox is corresponding, it is possible to understand that
It is that aforesaid operating side ID can be user name ID etc..
It should be noted that in the present embodiment before needing the space of Dropbox is calculated, need to build
Found the queue lists carrying out the operating side ID operated for storage, such as user list, often have an operating side
ID carries out once-through operation, then need in queue lists this operating side ID is carried out once record.
102, queue lists is scanned, and extracts the behaviour in queue lists successively according to being introduced into order
Make end ID;
After obtaining the queue lists being added with operating side ID, need queue lists is scanned, and
The operating side ID in queue lists is extracted successively according to being introduced into order.
It is understood that the aforesaid order that is introduced into can be by queue lists, such as queue
The clooating sequence of list is from top to bottom or/and from front to back, or vice versa under supreme or/and by rear to front according to
The order that all operations end ID operates at first in corresponding Dropbox enters in queue lists.
103, during extracting successively, the Dropbox corresponding for operating side ID every time extracted is carried out sky
Between calculate, and all information of deletion action end ID in current queue list.
When queue lists is scanned, and extract the operation in queue lists successively according to being introduced into order
After end ID, need during extracting successively, to the Dropbox corresponding for operating side ID extracted every time
Carry out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list.
It should be noted that it is aforesaid during extracting successively, to ID pair, the operating side extracted every time
The Dropbox answered carries out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list, permissible
It is when queue lists is respectively c user, b user, a according to the arrangement such as operating side ID being introduced into order
User, b user, a user, the record of a user, all c users being the most first extracted in queue lists
Record, and in time the space of the Dropbox corresponding to c user is calculated, and deletes the queue of extraction
The record of all c users in list, carries out the follow-up calculating carrying out operating side ID in queue lists,
The concrete of the follow-up calculating carrying out operating side ID in queue lists is carried out it is understood that aforesaid
Process will be described in detail in subsequent embodiment, the most just repeat no more.
In the present embodiment, the queue lists being added with operating side ID is scanned, and suitable according to being introduced into
Sequence extracts the operating side ID in queue lists successively, and during extracting successively, to extract every time
Dropbox corresponding for operating side ID carries out SPATIAL CALCULATION, and deletion action end ID institute in current queue list
There is information, just achieve the calculating in units of the ID of operating side, it is to avoid same operating side ID's is short
The technical problem repeatedly calculated caused due to multi-pass operation in time, meanwhile, correspondingly solves mesh
Before in network hard disc, carry out once-through operation calculate enough the setting of memory space the most in real time by user
Meter, owing to operating the calculating just carrying out memory space each time so that the server moment is in intensive
Duty, thus the work of highly energy-consuming is easily caused the technical problem that server is impaired.
The above is that the process to Dropbox SPATIAL CALCULATION method is described in detail, and will arrange to queue below
Table is scanned, and carries out according to the process of the operating side ID being introduced in order extraction queue lists successively
Detailed description, refers to Fig. 2, the one of a kind of Dropbox SPATIAL CALCULATION method provided in the embodiment of the present invention
Individual embodiment includes:
201, acquisition is added with the queue lists of operating side ID;
In the present embodiment, when needing the space of Dropbox is calculated, acquisition is needed to be added with operating side
The queue lists of ID, the operational order that this operating side ID carries out operating with Dropbox is corresponding, it is possible to understand that
That aforesaid operating side ID can be user name ID etc., aforesaid operational order include newly-built operation,
Deletion action and renewal operation.
It should be noted that in the present embodiment before needing the space of Dropbox is calculated, need to build
Found the queue lists carrying out the operating side ID operated for storage, such as user list, often have an operating side
ID carries out once-through operation, then need in queue lists this operating side ID is carried out once record.
Needing explanation, aforesaid acquisition is added with the queue lists of operating side ID, can be every in advance
Putting the time period obtains and is added with the queue lists of operating side ID, or continuously acquires and be added with operating side ID
Queue lists, each preset time period and continuous print situation will be described in detail in subsequent step again,
Here is omitted.
202, queue lists is scanned, and extracts the behaviour in queue lists successively according to being introduced into order
Make end ID;
After obtaining the queue lists being added with operating side ID, need queue lists is scanned, and
The operating side ID in queue lists is extracted successively according to being introduced into order.
It is understood that the aforesaid order that is introduced into can be by queue lists, such as queue
The clooating sequence of list is from top to bottom or/and from front to back, or vice versa under supreme or/and by rear to front according to
The order that all operations end ID operates at first in corresponding Dropbox enters in queue lists.
203, the Dropbox corresponding for operating side ID extracted is carried out SPATIAL CALCULATION, and in current queue list
The middle deletion action all information of end ID;
When queue lists is scanned, and extract the operation in queue lists successively according to being introduced into order
After end ID, the Dropbox corresponding for operating side ID to extracting is needed to carry out SPATIAL CALCULATION, and in current team
The all information of deletion action end ID in row list.
It should be noted that the aforesaid Dropbox corresponding for operating side ID to extracting carries out SPATIAL CALCULATION, and
The all information of deletion action end ID in current queue list, can be when in queue lists according to being introduced into
The arrangement such as operating side ID of order is respectively c user, b user, a user, b user, a user, a
The record of user, the record of all c users being the most first extracted in queue lists, and in time to c user institute
The space of corresponding Dropbox calculates, and deletes the record of all c users in the queue lists of extraction.
204, judge whether queue lists empties, the most then perform step 205, if it is not, then repeat step
Rapid 203;
When the Dropbox corresponding for operating side ID extracted is carried out SPATIAL CALCULATION, and delete in current queue list
After all information of division operation end ID, it is judged that whether queue lists empties, the most then perform step 205,
If it is not, then repeat step 203, it is that to return the previous step operating side ID that extracts the next one corresponding
Dropbox carries out SPATIAL CALCULATION, and deletes all information of operating side ID that the next one extracts in queue lists.
It should be noted that aforesaid judgement queue lists does not empties, the most then repeat step 203, can
Be when in queue lists according to be introduced into order arrangement such as operating side ID be respectively c user, b user,
A user, b user, a user, the record of a user, all c users being the most first extracted in queue lists
Record, and in time the space of the Dropbox corresponding to c user is calculated, and deletes the queue of extraction
The record of all c users in list, then judges that queue lists does not empties, then to corresponding to b user
The space of Dropbox calculate, and delete the record of all b users in the queue lists of extraction, depend on
Secondary until judging that queue lists empties, perform step 205.
Must be noted that aforesaid queue lists changes always, calculate the most now c user,
Meanwhile c user may be also in constantly operation, and at this time the operation of c finally enters queue lists, right
After c calculating is complete, whole queue c user is all deleted, if c user comes in again at once, then c
User can only be to wait at queue tail, if it gets into queue in a flash before deleting c user,
So will be deleted, if the most just getting into after Shan Chuing, just in queue lists.
205, the operation of Dropbox SPATIAL CALCULATION is terminated.
After judging that queue lists empties, then terminate the operation of Dropbox SPATIAL CALCULATION.
It should be noted that in the present embodiment, after aforesaid end Dropbox SPATIAL CALCULATION operates, can
Being to repeat step 201 every preset time period or continuous print, e.g. when the Dropbox system non-busy stage
Time, possible noncontinuity have operation, therefore can be the character according to its Dropbox system be that server enters
One step reduces operating frequency.
In the present embodiment, the queue lists being added with operating side ID is scanned, and suitable according to being introduced into
Sequence extracts the operating side ID in queue lists successively, and during extracting successively, to extract every time
Dropbox corresponding for operating side ID carries out SPATIAL CALCULATION, and deletion action end ID institute in current queue list
There is information, just achieve the calculating in units of the ID of operating side, it is to avoid same operating side ID's is short
The technical problem repeatedly calculated caused due to multi-pass operation in time, meanwhile, correspondingly solves mesh
Before in network hard disc, carry out once-through operation calculate enough the setting of memory space the most in real time by user
Meter, owing to operating the calculating just carrying out memory space each time so that the server moment is in intensive
Duty, thus the work of highly energy-consuming is easily caused the technical problem that server is impaired, simultaneously, it is judged that
Whether queue lists empties, the most then terminate the operation of Dropbox SPATIAL CALCULATION, if it is not, then return previous step
Suddenly the Dropbox corresponding for operating side ID extracted the next one carries out SPATIAL CALCULATION, and deletes in queue lists
The design of the next all information of operating side ID extracted, is determined by whether queue lists empties, to enter
Row correspondingly operates, and not only achieves the frequent amended SPATIAL CALCULATION of big data quantity, meanwhile, perfect
The calculating in the frequent amended Dropbox space of big data quantity.
Refer to Fig. 3, an embodiment of a kind of Dropbox SPATIAL CALCULATION device provided in the embodiment of the present invention
Including:
Adding device 301, for obtaining the queue lists being added with operating side ID, operating side ID and Dropbox
The operational order carrying out operating is corresponding;
Scanning element 302, for being scanned queue lists, and extracts team successively according to being introduced into order
Operating side ID in row list;
Computing unit 303 is for during extracting successively, corresponding to the operating side ID extracted every time
Dropbox carry out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list.
In the present embodiment, the queue lists being added with operating side ID is scanned by scanning element 302, and
Extract the operating side ID in queue lists successively according to being introduced into order, and computing unit 303 is carrying successively
During taking, the Dropbox corresponding for operating side ID every time extracted is carried out SPATIAL CALCULATION, and in current team
In row list, all information of deletion action end ID, just achieves the calculating in units of the ID of operating side, keeps away
The technology repeatedly calculated having exempted to be caused due to multi-pass operation in short time of same operating side ID is asked
Topic, meanwhile, correspondingly solves and at present carries out once-through operation in network hard disc by user and count the most in real time
Calculate the design that memory space is enough, owing to operating the calculating just carrying out memory space each time so that
The server moment is in the duty of intensive, thus the work of highly energy-consuming to be easily caused server impaired
Technical problem.
The above is that each unit to Dropbox SPATIAL CALCULATION device is described in detail, below will be single to calculating
Each subelement of unit is described in detail, and refers to Fig. 4, a kind of Dropbox provided in the embodiment of the present invention
One embodiment of SPATIAL CALCULATION device includes:
Adding device 401, for obtaining the queue lists being added with operating side ID, operating side ID and Dropbox
The operational order carrying out operating is corresponding, and aforesaid operational order includes newly-built operation, deletion action and more
New operation;
Wherein, adding device 401 can further include:
First adds subelement 4011, for obtaining the queue being added with operating side ID every preset time period
List, the operational order that operating side ID carries out operating with Dropbox is corresponding.
And/or
Second adds subelement 4012, for continuously acquiring the queue lists being added with operating side ID, and operation
The operational order that end ID carries out operating with Dropbox is corresponding.
Scanning element 402, for being scanned queue lists, and extracts team successively according to being introduced into order
Operating side ID in row list;
Computing unit 403 is for during extracting successively, corresponding to the operating side ID extracted every time
Dropbox carry out SPATIAL CALCULATION, and all information of deletion action end ID in current queue list.
Wherein, computing unit 403 can further include:
Computation subunit 4031, for the Dropbox corresponding for operating side ID extracted is carried out SPATIAL CALCULATION, and
The all information of deletion action end ID in current queue list;
Judgment sub-unit 4032, is used for judging whether queue lists empties, the most then terminate Dropbox space
Calculate operation, if it is not, the most again trigger ID pair, the operating side that the next one is extracted by computation subunit 4031
The Dropbox answered carries out SPATIAL CALCULATION, and deletes all letters of operating side ID that the next one extracts in queue lists
Breath.
In the present embodiment, the queue lists being added with operating side ID is scanned by scanning element 402, and
Extract the operating side ID in queue lists successively according to being introduced into order, and computing unit 403 is carrying successively
During taking, the Dropbox corresponding for operating side ID every time extracted is carried out SPATIAL CALCULATION, and in current team
In row list, all information of deletion action end ID, just achieves the calculating in units of the ID of operating side, keeps away
The technology repeatedly calculated having exempted to be caused due to multi-pass operation in short time of same operating side ID is asked
Topic, meanwhile, correspondingly solves and at present carries out once-through operation in network hard disc by user and count the most in real time
Calculate the design that memory space is enough, owing to operating the calculating just carrying out memory space each time so that
The server moment is in the duty of intensive, thus the work of highly energy-consuming to be easily caused server impaired
Technical problem, meanwhile, the judgment sub-unit 4032 of computing unit 403 judges whether queue lists empties,
The most then terminate the operation of Dropbox SPATIAL CALCULATION, if it is not, then return the behaviour that the next one is extracted by previous step
Make Dropbox corresponding for end ID and carry out SPATIAL CALCULATION, and in queue lists, delete the operating side that the next one extracts
The design of all information of ID, is determined by whether queue lists empties, correspondingly to operate, not only
Achieve the frequent amended SPATIAL CALCULATION of big data quantity, meanwhile, perfect frequently repairing of big data quantity
The calculating in the Dropbox space after changing.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit 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 according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment 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 list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list
The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this
The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme
Completely or partially can embody with the form of software product, this computer software product is stored in one
In storage medium, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention
Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.