CN108108402A - Data item paraphrase update method and device - Google Patents
Data item paraphrase update method and device Download PDFInfo
- Publication number
- CN108108402A CN108108402A CN201711287741.2A CN201711287741A CN108108402A CN 108108402 A CN108108402 A CN 108108402A CN 201711287741 A CN201711287741 A CN 201711287741A CN 108108402 A CN108108402 A CN 108108402A
- Authority
- CN
- China
- Prior art keywords
- data item
- paraphrase
- period
- idle
- candidate
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2462—Approximate or statistical queries
Abstract
The present invention proposes a kind of data item paraphrase update method and device, wherein, method includes:Idle data item is identified from all data item, obtains to replace the first paraphrase of the original paraphrase of idle data item, original paraphrase is replaced using the first paraphrase and completes to update the paraphrase for data item of leaving unused.When needing to increase new data item, the first paraphrase can be utilized to replace the original paraphrase of idle data item, achieve the purpose that increase data item by reusing idle data item, without increasing data item by occupying new memory space, save data space, reduce operation cost, it solves in correlation technique, due to increasing new data item by occupying new memory space, causes data item cumulative, the problem of occupying mass data memory space, increasing operation cost.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data item paraphrase update method and devices.
Background technology
Existing system is in data item architecture design, it then follows a data item corresponds to the principle of a paraphrase.With interconnection
The development of net, data volume, the data type of various industries are more and more extensive, are typically to be continuously increased new data in correlation technique
, it is cumulative to ultimately result in data item, so as to occupy substantial amounts of memory space, adds operation cost.
The content of the invention
It is contemplated that it solves at least some of the technical problems in related technologies.
For this purpose, first purpose of the present invention is to propose a kind of data item paraphrase update method, released by using first
Justice replaces the original paraphrase of idle data item, to re-use idle data item, saves data space, reduce operation into
This, solves in correlation technique, due to the data item new by constantly occupying new space increase, causes data item cumulative,
The problem of occupying a large amount of memory spaces, adding operation cost.
Second object of the present invention is to propose a kind of data item paraphrase updating device.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of computer program product.
The 5th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of data item paraphrase update method, including:
Idle data item is identified from all data item;
Obtain for replace the idle data item original paraphrase the first paraphrase;
The original paraphrase completion is replaced using first paraphrase to update the paraphrase of the idle data item.
It is described to be identified from all data item as a kind of possible realization method of first aspect present invention embodiment
Idle data item, including:
Pass through the preset use information buried point probe, obtain the data item of each data item;Wherein, it is described to use letter
Breath includes at least the usage time used every time;
According to the use information of each data item, idle data item is identified from the data item.
As a kind of possible realization method of first aspect present invention embodiment, the described of each data item of basis makes
With information, idle data item is identified from the data item, including:
According to the use information of the candidate data item of previous period, the first data item in present period is obtained;Wherein,
The previous period is the period formed from default first moment to current time, and the present period is default second
The period that moment to current time is formed;At the time of second moment is after first moment;The candidate data item
Generated time be in the previous period;
According to the generated time of first data item in the present period, to all in the present period
One data item is screened, and obtains the candidate data item in the present period;
If the present period is objective time interval, using the candidate data item in the present period as described in
Idle data item.
As a kind of possible realization method of first aspect present invention embodiment, this method further includes:
If the non-objective time interval of present period, using the candidate data item of the present period as institute
The candidate data item of previous period is stated, and returns to re-execute and be believed according to the use of the candidate data item of previous period
Breath obtains the first data item and subsequent step in present period, until the present period is the objective time interval.
As a kind of possible realization method of first aspect present invention embodiment, candidate's number according to the previous period
According to the use information of item, the first data item in present period is obtained, including:
According to the use information of the candidate data item of previous period, each time in the previous period is counted
Select the access times of data item;
According to the institute of the average access times of all candidate data items of the previous period and each candidate data item
Access times are stated, obtain the first frequency of use of each candidate data item;
The candidate data item of first frequency of use without departing from default threshold value is chosen as the present period
The first interior data item.
As a kind of possible realization method of first aspect present invention embodiment, the institute according in the present period
The generated time of the first data item is stated, all first data item in the present period are screened, is obtained described current
Candidate data item in period, including:
According to the average access times of all first data item in the present period and the institute of each first data item
Access times are stated, obtain the second frequency of use of each first data item;
First data item of second frequency of use without departing from the default threshold value is chosen as described current
The second data item in period;
According to the generated time of each first data item, the first data item within the second period is selected as the 3rd
Data item;Wherein, second period is the period formed from the 3rd moment to current time;3rd moment is described the
At the time of after two moment;
According to the average access times of all 3rd data item and the access times of each 3rd data item, described is obtained
3rd frequency of use of three data item;
Threeth data item of the 3rd frequency of use without departing from the default threshold value is chosen as described current
The 4th data item in period;
Duplicate removal processing is carried out to second data item and the 4th data item, obtains the time of the present period
Select data item.
As a kind of possible realization method of first aspect present invention embodiment, the use letter of each data item of basis
Breath, identifies idle data item from the data item, including:
According to the use information of each data item, the access times of the data item in present period are counted;Its
In, the present period is the period formed from the first moment to current time;
According to total access times of all data item in the present period and the access times of each data item, obtain
Take the frequency of use of each data item;
Using data item of the frequency of use without departing from default threshold value as candidate data item;
Obtain the usage time when candidate data item last time uses;
Usage time when last time uses is obtained to the time interval at the current time;
The candidate data item of the time interval beyond prefixed time interval is determined as the idle data item.
It is described to be identified from all data item as a kind of possible realization method of first aspect present invention embodiment
Before idle data item, further include:
The identity information of user is verified, it is validated user to determine the user;
Before the first paraphrase of the acquisition for replacing the original paraphrase of the idle data item, further include:
Inquire whether the user carries out paraphrase update to the idle data item.
It is described to replace institute using first paraphrase as a kind of possible realization method of first aspect present invention embodiment
After stating the paraphrase update that original paraphrase is completed to the idle data item, further include:
First paraphrase of the idle data item is shown to user by display interface.
The data item paraphrase update method of the embodiment of the present invention, by identifying idle data from all data item
, it obtains to replace the first paraphrase of the original paraphrase of idle data item, original paraphrase completion pair is replaced using the first paraphrase
The paraphrase update of idle data item.As a result, when needing to increase new data item, the first paraphrase can be utilized to replace idle data
The original paraphrase of item achievees the purpose that increase data item, without by occupying newly by reusing idle data item
Memory space increases data item, saves data space, reduces operation cost, solves in correlation technique, due to
Increase new data item by occupying new memory space, cause data item cumulative, occupy mass data memory space, increase
The problem of adding operation cost.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of data item paraphrase updating device, including:
Identification module, for identifying idle data item from all data item;
Acquisition module, for obtaining to replace the first paraphrase of the original paraphrase of the idle data item;
Update module releases the idle data item for replacing the original paraphrase completion using first paraphrase
Justice update.
The data item paraphrase updating device of the embodiment of the present invention, by identifying idle data from all data item
, it obtains to replace the first paraphrase of the original paraphrase of idle data item, original paraphrase completion pair is replaced using the first paraphrase
The paraphrase update of idle data item.As a result, when needing to increase new data item, the first paraphrase can be utilized to replace idle data
The original paraphrase of item achievees the purpose that increase data item, without by occupying newly by reusing idle data item
Memory space increases data item, saves data space, reduces operation cost, solves in correlation technique, due to
Increase new data item by occupying new memory space, cause data item cumulative, occupy mass data memory space, increase
The problem of adding operation cost.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of computer equipment, including processor and deposit
Reservoir;
Wherein, the processor by read the executable program code stored in the memory run with it is described can
The corresponding program of program code is performed, for realizing the data item paraphrase update method as described in first aspect embodiment.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer program product, when described
The data item paraphrase update as described in first aspect embodiment is realized when instruction in computer program product is performed as processor
Method.
To achieve these goals, fifth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory
Medium is stored thereon with computer program, and the data as described in first aspect embodiment are realized when which is executed by processor
Item paraphrase update method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
It obtains substantially or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Substantially and it is readily appreciated that, wherein:
Fig. 1 is a kind of flow diagram of data item paraphrase update method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another data item paraphrase update method provided in an embodiment of the present invention;
Fig. 3 is a kind of use information of each data item of basis provided in an embodiment of the present invention, is identified from data item
The method flow schematic diagram of idle data item;
Fig. 4 is the flow diagram of another data item paraphrase update method provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of data item paraphrase updating device provided in an embodiment of the present invention;
Fig. 6 is suitable for being used for realizing the block diagram of the exemplary computer device of the application embodiment.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the data item paraphrase update method and device of the embodiment of the present invention are described.
Existing system is in data item architecture design, it then follows a data item corresponds to a paraphrase.With the hair of internet
Exhibition, data volume, the data type of various industries are more and more extensive.It regenerates for example, various products are constantly updated, new product goes out
Existing, old product is eliminated.In correlation technique, usually increase new data item for new product come meet demand.But due to
Some data item that the product being eliminated occupies are not used to new product, and final data item is cumulative, a large amount of so as to occupy
Memory space, add operation cost.
For this problem, the embodiment of the present invention proposes a kind of data item paraphrase update method, by using the first paraphrase
The original paraphrase of idle data item is replaced, to re-use idle data item, data space is saved, cuts operating costs,
It solves in correlation technique, due to being continuously increased new data item, causes data item cumulative, occupy a large amount of memory spaces,
The problem of adding operation cost.
Fig. 1 is a kind of flow diagram of data item paraphrase update method provided in an embodiment of the present invention.
As shown in Figure 1, the data item paraphrase update method includes:
Step 101, idle data item is identified from all data item.
Wherein, idle data item refers to the data item not used at present or the last usage time at present
Until be more than preset duration data item.
As a kind of possible way of realization, it can identify whether data item is idle number according to the usage time of data item
According to item.Specifically, for each data item, the duration of the last usage time of each data item up to the present is calculated,
If duration is more than preset duration, data item can be identified as to idle data item.
Step 102, obtain to replace the first paraphrase of the original paraphrase of idle data item.
Wherein, paraphrase can be understood as the explanation to data item.For example, the data item of certain product information include grown place,
Date of manufacture, shelf-life etc., here the title of data item can be understood as the paraphrase of data item.
In the present embodiment, the first paraphrase can be by User Defined.When needing to increase new data item, user can need to
The paraphrase of increased data item is wanted, referred to herein as the first paraphrase is input in the system of storage data item, so as to obtain use
In the first paraphrase of the original paraphrase for replacing idle data item.
Step 103, original paraphrase is replaced using the first paraphrase to complete to update the paraphrase for data item of leaving unused.
After the first paraphrase is obtained, the original paraphrase of idle data item is replaced with the first paraphrase, to realize to data of leaving unused
The paraphrase update of item, reuses idle data item, increases data item without occupying new memory space, so as to
Data space is saved, reduces operation cost.
In order to become apparent from illustrating above-described embodiment, data item paraphrase proposed by the present invention is illustrated more with reference to Fig. 2
New method.
As shown in Fig. 2, the data item paraphrase update method includes:
Step 201, the preset use information buried point probe, obtain data item of each data item is passed through;Wherein, using letter
Breath includes at least the usage time used every time.
Wherein, the use information that point probe is used for recording data item, the time such as used every time are buried.That is, when number
According to item quilt in use, burying the time that point probe record data item is used.It is visited as a result, by preset the burying of each data item
Pin can obtain the use information of each data item.
Step 202, according to the use information of each data item, idle data item is identified from data item.
It, can be according to the use information of each data item, such as usage time, to determine whether data item is in the present embodiment
Idle state.An embodiment of the present invention provides the method for the idle data item of two kinds of identifications, rear extended meeting is described in detail, therefore herein
It repeats no more.
Step 203, obtain to replace the first paraphrase of the original paraphrase of idle data item.
In the present embodiment, the first paraphrase can be by User Defined.When needing to increase new data item, user can need to
The paraphrase of increased data item is wanted, referred to herein as the first paraphrase is input in the system of storage data item, so as to obtain use
In the first paraphrase of the original paraphrase for replacing idle data item.
Step 204, original paraphrase is replaced using the first paraphrase to complete to update the paraphrase for data item of leaving unused.
After the first paraphrase is obtained, the original paraphrase of idle data item is replaced with the first paraphrase, to realize to data of leaving unused
The paraphrase update of item, reuses idle data item, increases data item without occupying new memory space, so as to
Data space is saved, reduces operation cost.
Step 205, the first paraphrase of idle data item is shown to user by display interface.
After the paraphrase update that would sit idle for data item, in order to which user is made to confirm the more new state of idle data item, it can would sit idle for
The first paraphrase after data item update, is shown on display interface, with the update status of the idle data item of display directly perceived.
Illustrate above-described embodiment in order to clearer, for step 202, an embodiment of the present invention provides two kinds according to each
The use information of data item, the method that idle data item is identified from data item.Fig. 3 is one kind provided in an embodiment of the present invention
According to the use information of each data item, the method flow schematic diagram of idle data item is identified from data item.
As shown in figure 3, this method includes:
Step 301, according to the use information of the candidate data item of previous period, the first data in present period are obtained
.
Wherein, the previous period is the period formed from default first moment to current time, and present period is default
Period for being formed at the second moment to current time, wherein, at the time of the second moment was after the first moment.It is as it can be seen that previous
Period includes present period.
In the present embodiment, using all data item reached the standard grade within the previous period as candidate data item.Need what is illustrated
It is, it, can be using data item all in the previous period as candidate data if the previous period is first initial period
.
As a kind of possible realization method, according to the frequency of use of each candidate data item in the previous period, obtain
The first data item in present period.
Specifically, according to the use information of each candidate data item in the previous period, such as usage time counts previous
The access times of each candidate data item in period.Then, the access times of each candidate data item are added, and will add up
The number of obtain afterwards and value divided by candidate data item obtains the average use time of all candidate data items of previous period
Number.Afterwards, the average access times of the access times of each candidate data item and all candidate data items are made into ratio, obtained every
First frequency of use of a data item.
Further by the first frequency of use of each candidate data item compared with default threshold value, if first uses frequency
Rate illustrates that within the previous period candidate data item frequency of use than relatively low, is more likely to leave unused without departing from default threshold value
Data item, therefore be the first data in present period without departing from the candidate data item of default threshold value by the first frequency of use
.
Step 302, according to the generated time of the first data item in present period, to all first numbers in present period
It is screened according to item, obtains the candidate data item in present period.
Since the generated time of data item is closer to current time, that is, data item reach the standard grade it is more late, then when previous
The frequency of use of data item is lower in section.Therefore, according to the frequency of use of the candidate data item in the previous period, what is filtered out works as
In the first data item of preceding period, there may be the data item reached the standard grade soon.
In order to improve the recognition accuracy to data item of leaving unused, in the present embodiment, according to the first data in present period
The generated time of item, all first data item in present period are screened, obtain the candidate data item in present period.
As a kind of possible realization method, the first number that frequency of use is high in present period can be screened out according to frequency of use
According to item.Specifically, according to the usage time for the first data item for burying point probe record, each first data item is counted when current
Access times in section, and the average access times of all first data item are calculated, further made according to the first data item
With number and the average access times of all first data item, second use frequency of first data item in present period is calculated
Rate.
Afterwards, by the second frequency of use of the first data item compared with default threshold value, if the second frequency of use
Without departing from default threshold value, illustrate that the second data item frequency of use is relatively low, then using the first data item as the time in present period
Select data item.All second frequency of use are selected in the first data item as a result, without departing from the first data item of default threshold value
As the second data item in present period.
In order to screen out the first later data item of reaching the standard grade, a moment is chosen after the second moment as the 3rd moment, from
3rd moment value is to the period that current time is formed as the 3rd period, and to screen out, generated time is later but frequency of use is higher
Data item.
Specifically, according to the generated time of the first data item, in the first data item out of present period, generation is selected
Time is in the first data item of the second period as the 3rd data item.Then, count each 3rd data item at second
Access times in section, and calculate the average access times of all 3rd data item.Afterwards, each 3rd data item is made
With the average access times of number and all 3rd data item, the 3rd frequency of use of the 3rd data item is calculated.Further will
3rd frequency of use selects threeth data of the 3rd frequency of use without departing from default threshold value compared with default threshold value
Item is as the 4th data item in present period.
Finally, the 4th data item in the second data item in present period and present period is subjected to duplicate removal processing, i.e.,
By the second data item in current slot compared with the 4th data item in current slot, if there is identical
Two data item then delete a data item for avoiding the occurrence of repetition, after duplicate removal is handled, it is possible to obtain the time of present period
Select data item.
In the present embodiment, according to the generated time of the first data item, later data item of reaching the standard grade is screened out, it is not busy to improve identification
Put the accuracy rate of data item.
Step 303, if present period is objective time interval, using the candidate data item in present period as idle data
.
The goal period can be configured as needed, such as either one month or half three months.
It is understood that if present period is not objective time interval, using the candidate data item of present period as before
The candidate data item of one period, and the use information for re-executing the candidate data item according to the previous period is returned, it obtains
The first data item and subsequent step in present period, until present period is objective time interval.
By taking the data item of certain product as an example, all data item in nearest 3 years are chosen, frequency is used according to each data item
Rate and default threshold value choose first data item of nearest 2 years.
Then, according to the generated time of the first data item, all first data item in nearest 2 years is screened, are had
Body step can be found in above-described embodiment, obtain the candidate data item of nearest 2 years.
Further, according to the candidate data item of nearest 2 years, first data item of nearest 1 year is obtained, according to the above method,
Obtain the candidate data item of nearest 1 year.
Further according to the candidate data item of nearest 1 year, the first data item of nearest half a year is obtained, according to the above method, is obtained
The candidate data item of nearest half a year.
It repeats the above steps, gets the candidate data item of nearest 1 month, since nearest 1 month is objective time interval, then will
The candidate data item of nearest 1 month is as idle data item.
Above-mentioned frequency of use and generated time for according to data item, the method for identifying idle data item, as one kind
The usage time interval according to data item is described below in realization method optionally, the method for obtaining idle data item.
Specifically, according to bury point probe record data item use information, such as usage time, count from the first moment to
The access times of each data item in the present period at current time obtain the average access times of all data item.Then, root
According to the average access times of all data item and the access times of each data item, each data item is calculated in present period
Frequency of use.
Afterwards, the size of the frequency of use of more each data item and default threshold value, by frequency of use without departing from default
Threshold value data item as candidate data item.
In order to improve the accuracy rate of the idle data item of identification, extracted from candidate data item using the longer candidate in interval
Data item is as idle data item.Specifically, use when last time of the candidate data item in present period uses is obtained
Time calculates usage time when last time uses to the time interval at current time, will be between time interval and preset time
Every being compared.If time interval is more than prefixed time interval, illustrate that candidate data item is not used by for a long time, it can be by candidate
Data item is as idle data item.Thus, it is possible to all idle data item are selected from candidate data item.
Above-mentioned is two kinds of use informations according to each data item provided in an embodiment of the present invention, identifies idle data item
Method.
In order to become apparent from illustrating above-described embodiment, the data of embodiment proposition are further illustrated the present invention with reference to Fig. 4
Item paraphrase update method.
As shown in figure 4, the data item paraphrase update method includes:
Step 401, the identity information of user is verified, it is validated user to determine user.
In the present embodiment, data item stores in a system, and user can log in the system.Wherein it is possible to by more
Kind mode is logged in, and is such as logged in, is logged in by recognition of face, Huo Zhetong by registering the account obtained and password
It crosses cell-phone number to be logged in, this is not limited by the present invention for specific landing approach.
After user logs in, system verifies the identity information of user, if the identity information inputted when user logs in
It is consistent with some identity information to prestore in system, it may be determined that user understands validated user.Otherwise, it may be determined that user is not conform to
Method user, system demonstration log in the prompt message of failure.
It should be noted that system supports that user's progress of all registrations is self-defined, between different institutions, different user
It can carry out self-defined.
Step 402, user-defined paraphrase is determined whether.If it is, perform step 403;Otherwise, step is performed
404。
After user's successful log system, system determines whether user-defined paraphrase, that is to say, that judges whether to deposit
In the updated data item of paraphrase, data item can be idle data item or with data item here.
Step 403, read self-defined paraphrase from cache database and pass through display interface and shown to user.
If there is user-defined paraphrase, then the self-defined paraphrase of data item is read from cache database, and led to
Display interface is crossed to show to user.
Step 404, idle data item is identified from all data item.
If there is no user-defined paraphrase, then idle data are identified from all data item of owning user
, specific identification process can be found in above-described embodiment, and details are not described herein.
Step 405, ask the user whether to carry out paraphrase update to idle data item.
System can pop up prompt message on display interface, ask the user whether to carry out paraphrase update to idle data item.
Step 406, if user is not updated idle data item, original paraphrase is obtained, and passes through display interface
It is shown.
When user is not updated idle data item, the original paraphrase of data item is obtained, and it is enterprising in display interface
Row displaying.
Step 407, if user carries out paraphrase update to idle data item, the first paraphrase input by user is received, is used in combination
The original paraphrase of idle data item is replaced in first paraphrase.
If user carries out paraphrase update to idle data item, user can input the first paraphrase in systems, and system connects
The first paraphrase input by user is received, and the original paraphrase of idle data item is replaced with the first paraphrase.
Step 408, the first paraphrase of idle data item is shown to user by display interface.
After the paraphrase update that would sit idle for data item, in order to which user is made to confirm the more new state of idle data item, it can would sit idle for
The first paraphrase after data item update, is shown on display interface, with the update status of the idle data item of display directly perceived.
The data item paraphrase update method of the present embodiment, by asking the user whether to carry out more the paraphrase for data item of leaving unused
Newly, when user is updated the paraphrase for data item of leaving unused, user can input the first paraphrase as needed, and it is defeated to obtain user
The first paraphrase entered is updated the original paraphrase for data item of leaving unused, and meets the individual demand of user.
The data item paraphrase update method of the embodiment of the present invention, by identifying idle data from all data item
, it obtains to replace the first paraphrase of the original paraphrase of idle data item, original paraphrase completion pair is replaced using the first paraphrase
The paraphrase update of idle data item.As a result, when needing to increase new data item, the first paraphrase can be utilized to replace idle data
The original paraphrase of item achievees the purpose that increase data item, without by occupying newly by reusing idle data item
Memory space increases data item, saves data space, reduces operation cost, solves in correlation technique, due to
Increase new data item by occupying new memory space, cause data item cumulative, occupy mass data memory space, increase
The problem of adding operation cost.
In order to realize above-described embodiment, the present invention also proposes a kind of data item update device.Fig. 5 carries for the embodiment of the present invention
A kind of structure diagram of the data item update device supplied.
As shown in figure 5, the data item update device includes:Identification module 510, acquisition module 520, update module 530.
Wherein, identification module 510, for identifying idle data item from all data item.
Acquisition module 520, for obtaining to replace the first paraphrase of the original paraphrase of idle data item.
Update module 530 is completed to update the paraphrase for data item of leaving unused for replacing original paraphrase using the first paraphrase.
As a kind of possible realization method of the present embodiment, identification module 510 may include:
Acquiring unit, for passing through the preset use information buried point probe, obtain data item of each data item;Wherein,
Use information includes at least the usage time used every time;
Recognition unit for the use information according to each data item, identifies idle data item from data item.
As a kind of possible realization method of the present embodiment, recognition unit can be additionally used in:
According to the use information of the candidate data item of previous period, the first data item in present period is obtained;Wherein,
The previous period is the period formed from default first moment to current time, and present period is extremely worked as default second moment
The period that the preceding moment is formed;At the time of second moment is after the first moment;Before the generated time of candidate data item is in described
In one period;
According to the generated time of the first data item in present period, all first data item in present period are carried out
Screening, obtains the candidate data item in present period;
If present period is objective time interval, using the candidate data item in present period as idle data item.
As a kind of possible realization method of the present embodiment, recognition unit can be additionally used in:
If the present period non-targeted period, using the candidate data item of present period as candidate's number of previous period
According to item, and the use information for re-executing the candidate data item according to the previous period is returned to, obtain first in present period
Data item and subsequent step, until present period is objective time interval.
As a kind of possible realization method of the present embodiment, recognition unit can be additionally used in:
According to the use information of the candidate data item of previous period, each candidate data item in the previous period is counted
Access times;
According to the use of the average access times of all candidate data items of previous period and each candidate data item time
Number obtains the first frequency of use of each candidate data item;
Candidate data item of first frequency of use without departing from default threshold value is chosen as the first data in present period
.
As a kind of possible realization method of the present embodiment, recognition unit can be additionally used in:
According to the use of the average access times of all first data item in present period and each first data item time
Number, obtains the second frequency of use of each first data item;
First data item of second frequency of use without departing from default threshold value is chosen as the second data in present period
;
According to the generated time of each first data item, the first data item within the second period is selected as the 3rd
Data item;Wherein, the second period was the period formed from the 3rd moment to current time;3rd moment is after the second moment
Moment;
According to the average access times of all 3rd data item and the access times of each 3rd data item, the 3rd number is obtained
According to the 3rd frequency of use of item;
Threeth data item of the 3rd frequency of use without departing from default threshold value is chosen as the 4th data in present period
;
Duplicate removal processing is carried out to the second data item and the 4th data item, obtains the candidate data item of present period
As a kind of possible realization method of the present embodiment, recognition unit can be additionally used in:
According to the use information of each data item, the access times of the data item in present period are counted;Wherein, when current
The period that Duan Weicong the first moment to current times are formed;
According to total access times of all data item in present period and the access times of each data item, obtain per number
According to the frequency of use of item;
Using data item of the frequency of use without departing from default threshold value as candidate data item;
Obtain usage time when candidate data item last time uses;
Usage time when last time uses is obtained to the time interval at current time;
Time interval is determined as idle data item beyond the candidate data item of prefixed time interval.
As a kind of possible realization method of the present embodiment, which may also include:
Determining module, for before idle data item is identified from all data item, to the identity information of user
It is verified, it is validated user to determine user;
Module is inquired, for before the first paraphrase for replacing the original paraphrase of idle data item is obtained, inquiry to be used
Whether family carries out paraphrase update to idle data item.
As a kind of possible realization method of the present embodiment, which may also include:
Display module, for completing to update it to the paraphrase for data item of leaving unused using the original paraphrase of the first paraphrase replacement
Afterwards, the first paraphrase of idle data item is shown to user by display interface.
It should be noted that the foregoing explanation to data item paraphrase update method embodiment, is also applied for the implementation
The data item paraphrase updating device of example, details are not described herein.
The data item paraphrase updating device of the embodiment of the present invention, by identifying idle data from all data item
, it obtains to replace the first paraphrase of the original paraphrase of idle data item, original paraphrase completion pair is replaced using the first paraphrase
The paraphrase update of idle data item.As a result, when needing to increase new data item, the first paraphrase can be utilized to replace idle data
The original paraphrase of item achievees the purpose that increase data item, without by occupying newly by reusing idle data item
Memory space increases data item, saves data space, reduces operation cost, solves in correlation technique, due to
Increase new data item by occupying new memory space, cause data item cumulative, occupy mass data memory space, increase
The problem of adding operation cost.
In order to realize above-described embodiment, the invention also provides a kind of computer equipment, including processor and memory;
Wherein, processor is run and executable program code by reading the executable program code stored in memory
Corresponding program, for realizing the data item paraphrase update method as described in foregoing any embodiment.
Fig. 6 shows to be used for the block diagram for the exemplary computer device for realizing the application embodiment.What Fig. 6 was shown
Computer equipment 12 is only an example, should not bring any restrictions to the function and use scope of the embodiment of the present application.
As shown in fig. 6, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (Industry Standard
Architecture;Hereinafter referred to as:ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as:MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as:VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as:PCI) bus.
Computer equipment 12 typically comprises various computing systems readable medium.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile medium, moveable and immovable medium.
Memory 28 can include the computer system readable media of form of volatile memory, such as random access memory
Device (Random Access Memory;Hereinafter referred to as:RAM) 30 and/or cache memory 32.Computer equipment 12 can be with
Further comprise other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example,
Storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 6 do not show, commonly referred to as " hard drive
Device ").Although it not shown in Fig. 6, can provide to drive the disk for moving non-volatile magnetic disk (such as " floppy disk ") read-write
Dynamic device and to removable anonvolatile optical disk (such as:Compact disc read-only memory (Compact Disc Read Only
Memory;Hereinafter referred to as:CD-ROM), digital multi read-only optical disc (Digital Video Disc Read Only
Memory;Hereinafter referred to as:DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program and produce
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28
In, such program module 42 include but not limited to operating system, one or more application program, other program modules and
Program data may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual
Perform the function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, the equipment interacted with the computer equipment 12 communication can be also enabled a user to one or more and/or with making
Obtain any equipment that the computer equipment 12 can communicate with one or more of the other computing device (such as network interface card, modulatedemodulate
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as LAN (Local Area Network;Hereinafter referred to as:
LAN), wide area network (Wide Area Network;Hereinafter referred to as:WAN) and/or public network, for example, internet) communication.Such as figure
Shown, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.It should be understood that although do not show in figure
Go out, computer equipment 12 can be combined and use other hardware and/or software module, included but not limited to:Microcode, device drives
Device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various functions application and
Data processing, such as realize the method referred in previous embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when in computer program product
Instruction data item paraphrase update method as described in foregoing any embodiment is realized when being performed as processor.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon
Computer program is contained, the data item paraphrase update side as described in foregoing any embodiment is realized when which is executed by processor
Method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the different embodiments described in this specification or example and different embodiments or exemplary feature
It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement custom logic function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
Row system, device or equipment instruction fetch and the system executed instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized:With for data-signal realize logic function logic gates from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be employed in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and is independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (13)
1. a kind of data item paraphrase update method, which is characterized in that including:
Idle data item is identified from all data item;
Obtain for replace the idle data item original paraphrase the first paraphrase;
The original paraphrase completion is replaced using first paraphrase to update the paraphrase of the idle data item.
2. according to the method described in claim 1, it is characterized in that, described identify idle data from all data item
, including:
Pass through the preset use information buried point probe, obtain the data item of each data item;Wherein, the use information is extremely
Few usage time for including using every time;
According to the use information of each data item, idle data item is identified from the data item.
3. according to the method described in claim 2, it is characterized in that, the use information of each data item of the basis, from
Idle data item is identified in the data item, including:
According to the use information of the candidate data item of previous period, the first data item in present period is obtained;Wherein, it is described
The previous period is the period formed from default first moment to current time, and the present period is default second moment
The period formed to current time;At the time of second moment is after first moment;The life of the candidate data item
It is in into the time in the previous period;
According to the generated time of first data item in the present period, to all first numbers in the present period
It is screened according to item, obtains the candidate data item in the present period;
If the present period is objective time interval, using the candidate data item in the present period as described idle
Data item.
4. it according to the method described in claim 3, it is characterized in that, further includes:
If the non-objective time interval of present period, using the candidate data item of the present period as before described
The candidate data item of one period, and the use information for re-executing the candidate data item according to the previous period is returned,
The first data item and subsequent step in present period are obtained, until the present period is the objective time interval.
5. the according to the method described in claim 3, it is characterized in that, use of the candidate data item according to the previous period
Information obtains the first data item in present period, including:
According to the use information of the candidate data item of previous period, each candidate's number in the previous period is counted
According to the access times of item;
Make according to the average access times of all candidate data items of the previous period and each candidate data item
With number, the first frequency of use of each candidate data item is obtained;
The candidate data item of first frequency of use without departing from default threshold value is chosen as in the present period
First data item.
6. according to the method described in claim 4, it is characterized in that, first data according in the present period
The generated time of item, all first data item in the present period are screened, obtain the time in the present period
Data item is selected, including:
Make according to the average access times of all first data item in the present period and each first data item
With number, the second frequency of use of each first data item is obtained;
First data item of second frequency of use without departing from the default threshold value is chosen as the present period
The second interior data item;
According to the generated time of each first data item, the first data item within the second period is selected as the 3rd data
;Wherein, second period is the period formed from the 3rd moment to current time;When 3rd moment is described second
At the time of after quarter;
According to the average access times of all 3rd data item and the access times of each 3rd data item, the 3rd number is obtained
According to the 3rd frequency of use of item;
Threeth data item of the 3rd frequency of use without departing from the default threshold value is chosen as the present period
The 4th interior data item;
Duplicate removal processing is carried out to second data item and the 4th data item, obtains candidate's number of the present period
According to item.
7. according to the method described in claim 2, it is characterized in that, the use information of each data item of the basis, from described
Idle data item is identified in data item, including:
According to the use information of each data item, the access times of the data item in present period are counted;Wherein, institute
It is the period formed from the first moment to current time to state present period;
According to total access times of all data item in the present period and the access times of each data item, obtain every
The frequency of use of a data item;
Using data item of the frequency of use without departing from default threshold value as candidate data item;
Obtain the usage time when candidate data item last time uses;
Usage time when last time uses is obtained to the time interval at the current time;
The candidate data item of the time interval beyond prefixed time interval is determined as the idle data item.
8. according to claim 1-7 any one of them methods, which is characterized in that described to identify the spare time from all data item
Before putting data item, further include:
The identity information of user is verified, it is validated user to determine the user;
Before the first paraphrase of the acquisition for replacing the original paraphrase of the idle data item, further include:
Inquire whether the user carries out paraphrase update to the idle data item.
9. according to claim 1-7 any one of them methods, which is characterized in that described using described in first paraphrase replacement
After the paraphrase update to the idle data item is completed in original paraphrase, further include:
First paraphrase of the idle data item is shown to user by display interface.
10. a kind of data item paraphrase updating device, which is characterized in that including:
Identification module, for identifying idle data item from all data item;
Acquisition module, for obtaining to replace the first paraphrase of the original paraphrase of the idle data item;
Update module, for completing the paraphrase to the idle data item using the first paraphrase replacement original paraphrase more
Newly.
11. a kind of computer equipment, which is characterized in that including processor and memory;
Wherein, the processor can perform by reading the executable program code stored in the memory to run with described
The corresponding program of program code, for realizing the data item paraphrase update method as described in any in claim 1-9.
12. a kind of computer program product, which is characterized in that when the instruction in the computer program product is performed by processor
Data item paraphrase update methods of the Shi Shixian as described in any in claim 1-9.
13. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program
The data item paraphrase update method as described in any in claim 1-9 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711287741.2A CN108108402B (en) | 2017-12-07 | 2017-12-07 | Data item paraphrasing updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711287741.2A CN108108402B (en) | 2017-12-07 | 2017-12-07 | Data item paraphrasing updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108108402A true CN108108402A (en) | 2018-06-01 |
CN108108402B CN108108402B (en) | 2020-07-17 |
Family
ID=62209402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711287741.2A Active CN108108402B (en) | 2017-12-07 | 2017-12-07 | Data item paraphrasing updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108402B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6307866B1 (en) * | 1997-01-15 | 2001-10-23 | Roke Manor Research Limited | Broadband telecommunications system |
CN103049392A (en) * | 2012-10-17 | 2013-04-17 | 华为技术有限公司 | Method and device for achieving cache catalogue |
CN103108047A (en) * | 2013-02-06 | 2013-05-15 | 浪潮电子信息产业股份有限公司 | Optimization method for object storage system metadata cache |
US20130227237A1 (en) * | 2012-02-23 | 2013-08-29 | Hitachi Computer Peripherals Co., Ltd. | Data management system and data management method |
CN103313121A (en) * | 2013-06-28 | 2013-09-18 | 深圳Tcl新技术有限公司 | Method and device for recording by utilizing free memories of television set |
CN105162622A (en) * | 2015-08-03 | 2015-12-16 | 瑞斯康达科技发展股份有限公司 | Storage method and system |
-
2017
- 2017-12-07 CN CN201711287741.2A patent/CN108108402B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6307866B1 (en) * | 1997-01-15 | 2001-10-23 | Roke Manor Research Limited | Broadband telecommunications system |
US20130227237A1 (en) * | 2012-02-23 | 2013-08-29 | Hitachi Computer Peripherals Co., Ltd. | Data management system and data management method |
CN103049392A (en) * | 2012-10-17 | 2013-04-17 | 华为技术有限公司 | Method and device for achieving cache catalogue |
CN103108047A (en) * | 2013-02-06 | 2013-05-15 | 浪潮电子信息产业股份有限公司 | Optimization method for object storage system metadata cache |
CN103313121A (en) * | 2013-06-28 | 2013-09-18 | 深圳Tcl新技术有限公司 | Method and device for recording by utilizing free memories of television set |
CN105162622A (en) * | 2015-08-03 | 2015-12-16 | 瑞斯康达科技发展股份有限公司 | Storage method and system |
Non-Patent Citations (1)
Title |
---|
黄水松 等: "《计算机操作系统》", 31 August 2003, 武汉:武汉大学出版社 * |
Also Published As
Publication number | Publication date |
---|---|
CN108108402B (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108024145A (en) | Video recommendation method, device, computer equipment and storage medium | |
CN109491902A (en) | Interactive testing method, apparatus and system | |
CN108038107A (en) | Sentence sensibility classification method, device and its equipment based on convolutional neural networks | |
CN108399073A (en) | Information displaying method, device, server and computer-readable medium | |
CN110163257A (en) | Method, apparatus, equipment and the computer storage medium of drawing-out structure information | |
CN108182246A (en) | Sensitive word detection filter method, device and computer equipment | |
CA2575418A1 (en) | Information recording medium, recording/ reproducing apparatus, and recording/ reproducing method | |
CN107391295A (en) | The processing method and processing device of application exception | |
CN106681698A (en) | Dynamic list generating method and device | |
CN109766793A (en) | Data processing method and device | |
CN109304034A (en) | A kind of game cheat detection method and relevant device | |
CN107341005A (en) | Chart generation method and its device | |
CN107704549A (en) | Voice search method, device and computer equipment | |
CN109977826A (en) | The classification recognition methods of object and device | |
CN110084230A (en) | Vehicle body direction detection method and device based on image | |
CN107978310A (en) | Audio-frequency processing method and device | |
CN108153904A (en) | Language material collection method, device and computer equipment | |
CN110827386A (en) | Rendering layer object distribution method and system for Maya | |
CN107169134A (en) | Promotion information display method and device and electronic equipment | |
CN108108402A (en) | Data item paraphrase update method and device | |
CN106528575B (en) | Data interconnection method and device | |
CN107544989A (en) | A kind of presentation file delamination process and device | |
CN108197164A (en) | Business data storage method and device | |
JP5449506B1 (en) | Product quality management device and product quality management program | |
CN110955798A (en) | Control method, device and equipment based on vehicle-mounted multimedia system and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |