Summary of the invention
The invention provides a kind of historical record disposal route and equipment, to improve treatment effect to historical record.
The invention provides a kind of historical record disposal route, comprising:
According to the raw data in the default software module database that gets access to, generate the historical record data storehouse;
According to the query statement that receives described historical record data storehouse is inquired about, obtained the data query of described query statement correspondence, and handle.
Raw data in the default software module database that aforesaid historical record disposal route, described basis get access to generates the historical record data storehouse and comprises:
According to the attribute of the raw data of the default software module database that gets access to, be that described raw data is added inquiry tag;
Generate described historical record data storehouse according to the raw data behind the described inquiry tag of interpolation.
Aforesaid historical record disposal route is characterized in that, according to the raw data in the default software module database that gets access to, generates after the historical record data storehouse, also comprises:
Described default software module database is monitored, when judgement knows that raw data in the described default software module database increases, obtained the raw data of increase;
Upgrade described historical record data storehouse according to the raw data of described increase.
Aforesaid historical record disposal route, described raw data according to described increase are upgraded described historical record data storehouse and are comprised:
According to the attribute of the raw data of described increase, be that the raw data of described increase is added inquiry tag;
According to the raw data of the described increase behind the interpolation inquiry tag, upgrade described historical record data storehouse.
Aforesaid historical record disposal route, wherein,
The classification of described inquiry tag comprises time tag, contact person's label, telephone number label and number of the account label.
Aforesaid historical record disposal route, the query statement that described basis receives is inquired about described historical record data storehouse, obtains the data query of described query statement correspondence, and handles, and comprising:
Described query statement is resolved, determine the inquiry tag of described query statement correspondence;
Inquire about described historical record data storehouse, obtain the data query of the inquiry tag correspondence of described query statement correspondence;
According to described inquiry tag described data query is shown.
The invention provides a kind of historical record treatment facility, comprising:
Historical record data storehouse generation module is used for the raw data according to the default software module database that gets access to, and generates the historical record data storehouse;
Enquiry module is used for according to the query statement that receives described historical record data storehouse being inquired about, and obtains the data query of described query statement correspondence, and handles.
Aforesaid historical record treatment facility, described historical record data storehouse generation module comprises:
The inquiry tag adding device according to the attribute of the raw data of the default software module database that gets access to, is that described raw data is added inquiry tag;
The database generation unit generates described historical record data storehouse according to the raw data behind the described inquiry tag of interpolation.
Aforesaid historical record treatment facility also comprises:
Monitor module, be used for described default software module database is monitored, when judgement knows that raw data in the described default software module database increases, obtain the raw data of increase;
Update module is used for upgrading described historical record data storehouse according to the raw data of described increase.
Aforesaid historical record treatment facility, described enquiry module comprises:
The query statement resolution unit is used for described query statement is resolved, and determines the inquiry tag of described query statement correspondence;
The data query acquiring unit is used to inquire about described historical record data storehouse, obtains the data query of the inquiry tag correspondence of described query statement correspondence;
The data query display unit is used for according to described inquiry tag described data query being shown.
As shown from the above technical solution, historical record disposal route provided by the invention and equipment, by generating the historical record data storehouse according to the raw data in the default software module database, raw data in the default software module database is combined, query statement according to the user is inquired about the historical record data storehouse, can in an organized way present to the user by historical record these are not too regular, that layout is disperseed, the user need not to enter into the inquiry that each software module is carried out corresponding historical record, has improved the treatment effect to historical record.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the technical scheme in the embodiment of the invention is clearly and completely described below in conjunction with the embodiment of the invention.Need to prove that in accompanying drawing or instructions, similar or components identical is all used identical Reference numeral.
The historical record process flow figure that Fig. 1 provides for the embodiment of the invention.As shown in Figure 1, the historical record disposal route that present embodiment provides specifically can be applied to the historical record of portable terminal and handle, and can realize by the form of hardware and/or software, but not as limit, specifically comprises:
Raw data in step 10, the basis default software module database that gets access to generates the historical record data storehouse;
In the portable terminal that the user uses multiple application software is installed usually, the user can set in advance the software that needs the query history record data as required, is default software module.Store the historical record data that corresponding software module produces in the default software module database in application process, i.e. raw data.The message registration of the module of for example conversing, the note record of SMS module, the mail record of mailbox module, the QQ chat record of QQ module, QQ spatial registration and microblogging record, the MSN chat record of MSN module etc.According to the raw data in the default software module database that gets access to, generate the historical record data storehouse.Comprised the raw data in the default software module database in the historical record data storehouse, the historical record data storehouse also can be provided with according to user's inquiry needs, and the raw data in the software module database that the selection user is provided with generates.
The query statement that step 20, basis receive is inquired about the historical record data storehouse, obtains the data query of query statement correspondence, and handles.
Can be for the user provide query interface with indication user input query instruction, query statement is specifically as follows by the time query statement, by contact person's query statement etc.If query statement also is specifically as follows the inquiry historical record instruction of some day for by the time query statement.According to query statement the historical record data storehouse is inquired about, obtained the data query of this query statement correspondence, and be that according to the time user shows.For example, the user has set in advance inquiring call history, note record and QQ chat record, and the input inquiry instruction then shows all message registrations, note record and the QQ chat record on May 1st, 2011 for inquiring about the above-mentioned historical record on May 1st, 2011 for the user.Query statement as if user's input is certain contact person's of inquiry an above-mentioned historical record, then is the user's message registration near to demonstration far away and this contact person generation, note record and QQ chat record in chronological order.For example, the user has set in advance inquiring call history, note record and QQ chat record, and the input inquiry instruction then shows all message registrations, note record and the QQ chat record that produces with Li Lei for the user for inquiring about Li Lei's above-mentioned historical record.
The historical record disposal route that present embodiment provides, by generating the historical record data storehouse according to the raw data in the default software module database, raw data in the default software module database is combined, query statement according to the user is inquired about the historical record data storehouse, can in an organized way present to the user by historical record these are not too regular, that layout is disperseed, the user need not to enter into the inquiry that each software module is carried out corresponding historical record, has improved the treatment effect to historical record.
In the present embodiment, step 10 according to the raw data in the default software module database that gets access to, generates the historical record data storehouse, specifically can may further comprise the steps:
The attribute of the raw data of the default software module database that step 101, basis get access to is that raw data is added inquiry tag;
The raw data of default software module database has attribute usually, and the attribute of the raw data in the different software module databases also can be different.The attribute of the message registration in the module database of for example conversing can be name of contact person, mobile phone/telephone number, time, talking state (as answering, extract, not answering) etc.QQ chat record in the QQ module database can be name of contact person, QQ number, time etc.Attribute according to raw data is that raw data is added inquiry tag, so that carry out data processing.
Step 102, generate the historical record data storehouse according to the raw data of adding behind the inquiry tag.
The historical record data storehouse that generates according to the raw data of adding behind the inquiry tag can be according to the inquiry tag processing of classifying, to mate when data query is carried out in this historical record data storehouse.
In the present embodiment, the raw data in step 10, the basis default software module database that gets access to generates after the historical record data storehouse, specifically can also may further comprise the steps:
Step 30, default software module database is monitored, when judgement knows that raw data in the default software module database increases, obtained the raw data of increase;
Step 40, upgrade the historical record data storehouse according to the raw data that increases.
The new data that each software module produces in application process in the software module database of correspondence, is perhaps operated a part of data of deleting in the software module database according to the user as the original data storage that increases.By the software module database is monitored, when judgement knows that the raw data of presetting in the software module database increases, obtain the raw data of increase, and upgrade the historical record data storehouse according to the raw data of this increase.Concrete, the raw data that increases can be added in the historical record data storehouse, to realize renewal the historical record data storehouse.When the user carries out the data deletion operation to certain software module database, still preserve these deleted data in the historical record data storehouse, so that the user inquires about.
In the present embodiment, step 40, upgrade the historical record data storehouse, specifically can may further comprise the steps according to the raw data that increases:
Step 401, according to the attribute of the raw data that increases, be that the raw data that increases is added inquiry tag;
Step 402, according to the raw data of adding the increase behind the inquiry tag, upgrade the historical record data storehouse.
Specifically can improve treatment effeciency earlier for being updated to again in the historical record data storehouse behind the raw data interpolation inquiry tag that increases to the raw data that increases.
In the present embodiment, preferably, the classification of inquiry tag comprises time tag, contact person's label, telephone number label and number of the account label.The classification of inquiry tag specifically can be provided with according to the inquiry needs, mates when historical record is inquired about, to obtain corresponding historical record.
In the present embodiment, the query statement that step 20, basis receive is inquired about the historical record data storehouse, obtains the data query of query statement correspondence, and handles, and specifically can may further comprise the steps:
Step 201, query statement is resolved, determine the inquiry tag of query statement correspondence;
Step 202, query history database of record obtain the data query of the inquiry tag correspondence of query statement correspondence;
Step 203, data query is shown according to inquiry tag.
In actual application, except passing through historical record data library inquiry historical record, can also safeguard the historical record data storehouse, the user can delete a certain historical record as required, can provide all historical records of selecting the interface to select some software module correspondences of required deletion for the user for the user, also can be for the user provide single contact person's historical record interface, the user can write down or the wall scroll historical record from whole software corresponding historical of selecting the interface screening according to the single contact person's of indication deletion user.Can also delete automatically overlong time or otiose historical record, take unnecessary storage space to avoid the historical record data storehouse.The user can preset the data holding time in historical record data storehouse as required or preserve the bar number, as preserves one month with interior historical record, perhaps preserves 2000 historical records etc.
To the note that inquires and the demonstration of mail, can adopt the mode of summary.Extract a part of content of note and e-mail messages, take out a part of text message with the open ended standard in list items informative abstract zone, the part under the long demonstration or not suspension points, as " you are at of that month cost details: converse 11 yuan 3 yuan of notes ... ".Give the certain prompting sense of user, help the recorded information that the user finds apace to be needed.
A kind of historical record treatment facility structural representation that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, the historical record treatment facility that present embodiment provides can be realized the historical record disposal route that any embodiment of the present invention provides, but not as limit.This historical record treatment facility specifically comprises historical record data storehouse generation module 11 and enquiry module 12.Historical record data storehouse generation module 11 is used for the raw data according to the default software module database that gets access to, and generates the historical record data storehouse.Enquiry module 12 is used for according to the query statement that receives the historical record data storehouse being inquired about, and obtains the data query of query statement correspondence, and handles.
The historical record treatment facility that present embodiment provides, setting by historical record data storehouse generation module 11, generate the historical record data storehouse according to the raw data in the default software module database, raw data in the default software module database is combined, enquiry module 12 is inquired about the historical record data storehouse according to user's query statement, can these are not too regular, the historical record that layout is disperseed is in an organized way presented to the user, the user need not to enter into the inquiry that each software module is carried out corresponding historical record, has improved the treatment effect to historical record.
The another kind of historical record treatment facility structural representation that Fig. 3 provides for the embodiment of the invention.As shown in Figure 3, in the present embodiment, historical record data storehouse generation module 11 can comprise inquiry tag adding device 111 and database generation unit 112.Inquiry tag adding device 111 is according to the attribute of the raw data of the default software module database that gets access to, for raw data is added inquiry tag.Database generation unit 112 generates the historical record data storehouse according to the raw data of adding behind the inquiry tag.
In the present embodiment, this historical record treatment facility can also comprise monitors module 13 and update module 14, monitor module 13 and be used for default software module database is monitored, when judgement knows that the raw data of presetting in the software module database increases, obtain the raw data of increase.Update module 14 is used for upgrading the historical record data storehouse according to the raw data that increases.By monitoring the setting of module 13 and update module 14, the accuracy of historical record inquiry has been improved in the Data Update historical record data storehouse that can in time increase according to default software module database.
In the present embodiment, enquiry module 12 can comprise query statement resolution unit 121, data query acquiring unit 122 and data query display unit 123.Query statement resolution unit 121 is used for query statement is resolved, and determines the inquiry tag of query statement correspondence.Data query acquiring unit 122 is used for the query history database of record, obtains the data query of the inquiry tag correspondence of query statement correspondence.Data query display unit 123 is used for according to inquiry tag data query being shown.
Historical record disposal route and equipment that the embodiment of the invention provides, by generating the historical record data storehouse according to the raw data in the default software module database, raw data in the default software module database is combined, query statement according to the user is inquired about the historical record data storehouse, can in an organized way present to the user by historical record these are not too regular, that layout is disperseed, the user need not to enter into the inquiry that each software module is carried out corresponding historical record, has improved the treatment effect to historical record.
Historical record disposal route and equipment that the embodiment of the invention provides, can be message registration, note record, mail record, with someone QQ chat record, the MSN record, someone microblogging record, QQ spatial registration etc. combines, and the mode of wishing with the user is classified selectively to be in order and is dedicated the user to.Can realize single contact person's history information is screened, sorts, the user is integrated and be shown to the information that filters out.Can be with message registration, note record, mail record, with someone QQ chat record, the MSN record, someone microblogging record, QQ spatial registration etc. is that historical record is integrated into horizontal historical record longitudinally, to get in touch artificial unit, the user can check and certain contact person between the information of all contact histories, improved user's experience effect.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that previous embodiment is put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.