Summary of the invention
Based on this, it is necessary to provide the cloud data fusion method of a kind of time can saved spent by data query.
Additionally, there is a need to provide the cloud data fusion system of a kind of time can saved spent by data query.
A kind of cloud data fusion method, comprises the steps:
Read destructuring cloud data;
Described destructuring cloud data are carried out parallel processing output processing result;
Undertaken described result being converted to structuring cloud data, and store.
Wherein in an embodiment, the step of described reading destructuring cloud data includes:
Unstructured data storehouse is carried out digital independent, obtains destructuring cloud data.
Wherein in an embodiment, described described result being carried out is converted to structuring cloud data, and also includes before the step stored:
Described result is stored in the step in described unstructured data storehouse.
Wherein in an embodiment, described described result being carried out is converted to structuring cloud data, and the step stored includes:
Obtain the data type that the row of the structured database that namely described result is stored into are corresponding;
The data type acquired described in described result is converted to;
By the described result write structure data base being converted to.
Wherein in an embodiment, described described result being carried out is converted to structuring cloud data, and also includes after the step stored:
Obtain the inquiry request of described result, in described structuring cloud data, carry out inquiry according to described inquiry request and obtain result.
A kind of cloud data fusion system, including:
Read module, is used for reading destructuring cloud data;
Parallel processing module, for carrying out parallel processing output processing result to described destructuring cloud data;
Modular converter, for being undertaken being converted to structuring cloud data by described result, and stores.
Wherein in an embodiment, described read module is additionally operable to destructuring cloud data base is carried out digital independent, obtains destructuring cloud data.
Wherein in an embodiment, described system also includes:
Unstructured data storehouse, is used for being stored in result.
Wherein in an embodiment, described modular converter includes:
Type acquiring unit, is used for obtaining the data type corresponding to row of the structured database that namely described result is stored into;
Type conversion unit, is used for the data type acquired described in described result being converted to;
Structured database, is used for the result being converted to described in writing.
Wherein in an embodiment, described system also includes:
Enquiry module, for obtaining the inquiry request of described result, carries out inquiry according to described inquiry request in described structuring cloud data and obtains result.
In above-mentioned cloud data fusion method and system, the destructuring cloud data of reading are carried out parallel processing, obtain result, this result is changed, result is made to be transformed to structuring cloud data by destructuring cloud data and store, owing to result is to store with the form of structuring cloud data, therefore, to make to process structure to can adapt to inquire about frequently, and save the time that inquiry is spent.
Detailed description of the invention
As it is shown in figure 1, in one embodiment, a kind of cloud data fusion method, comprise the steps:
Step S110, reads destructuring cloud data.
In the present embodiment, cloud data are the various data being applied in cloud computing, destructuring cloud data are the data being inconvenient to use two dimension logical table to realize, it may include the office documents of all forms, text, picture, XML, HTML, all kinds of form, image and audio/visual information etc..Prestore the various destructuring cloud data for realizing miscellaneous service logic, used in follow-up processing procedure.
In one embodiment, the detailed process of above-mentioned steps S110 is: unstructured data storehouse is carried out digital independent, obtains destructuring cloud data.
In the present embodiment, pre-set unstructured data storehouse, be used for writing various destructuring cloud data, carry out the storage of destructuring cloud data.Digital independent is carried out, to obtain required destructuring cloud data in unstructured data storehouse.
Destructuring cloud data are carried out parallel processing output processing result by step S130.
In the present embodiment, the destructuring cloud data read are carried out parallel processing, to realize the service logic currently triggered, obtain result and export.The parallel processing of destructuring cloud data is realized by cloud computing, owing to destructuring cloud data are prone to divide and merge, therefore, realizes distributed variable-frequencypump advantageously by cloud computing, to improve treatment effeciency.
Step S150, is undertaken result being converted to structuring cloud data, and stores.
In the present embodiment, result is changed, so that the result as destructuring cloud data is converted to structuring cloud data, and then realize automatically changing of data type, and store the result having become as structuring cloud data.
In one embodiment, also include before above-mentioned steps S150: result is stored in the step in unstructured data storehouse.
In the present embodiment, before the result as destructuring cloud data is changed, this result will be stored in destructuring cloud data, to realize the backup of result, and then ensure data safety.
As in figure 2 it is shown, in one embodiment, above-mentioned steps S150 comprises the steps:
Step S151, obtains the data type that the row of the structured database that namely result is stored into are corresponding.
In the present embodiment, the conversion of destructuring cloud data carries out by column, therefore, need to obtain the row that namely result is stored in structured database, and then obtain the data type corresponding to these row, for instance, data type can be integer type, date type etc..
Step S153, is converted to the data type acquired by result.
In the present embodiment, by column to destructuring cloud data, namely result is changed, and with the structuring cloud data that the data type obtained with acquire is consistent, and structuring cloud data is write in place's row corresponding to structured database.
In another embodiment, also include before above-mentioned steps S151: the result being stored in non-structural data base is judged by column, it is judged that whether the row being currently located exist data, if, then enter step S151, if it is not, then the row corresponding to structured database are set to sky.
In the present embodiment, by column destructuring cloud data are changed and stored, corresponding to ensure structured database right and wrong structured database, and then ensure that the orderly storage of data.
Step S155, the result write structure data base that will be converted to.
In the present embodiment, the row according to the structured database that namely result got is stored into, the result write structure data base that will be converted to.
In another embodiment, also include after above-mentioned steps S150: obtain the inquiry request of result, in structuring cloud data, carry out inquiry according to inquiry request and obtain result.
In the present embodiment, obtain the inquiry request processing structure, the structuring cloud data of storage are inquired about in structured database according to inquiry request, now, the stored data of structured database be carried out parallel processing after obtained result, owing to this result is structurized, therefore can quickly complete the inquiry of data, and then improve search efficiency.
Above-mentioned cloud data fusion method will be applied in cloud computing, and realize cloud data fusion by unstructured data storehouse and structured database, and then the distributed variable-frequencypump realizing in cloud computing under the learning from other's strong points to offset one's weaknesses of destructuring cloud data and structuring cloud data and quick search.
As it is shown on figure 3, in one embodiment, a kind of cloud data fusion system, including read module 110, parallel processing module 130 and modular converter 150.
Read module 110, is used for reading destructuring cloud data.
In the present embodiment, destructuring cloud data are the data being inconvenient to use two dimension logical table to realize, it may include the office documents of all forms, text, picture, XML, HTML, all kinds of form, image and audio/visual information etc..Prestore the various destructuring cloud data for realizing miscellaneous service logic, used in follow-up processing procedure.
In one embodiment, above-mentioned read module 110 is additionally operable to unstructured data storehouse is carried out digital independent, obtains destructuring cloud data.
In the present embodiment, pre-set unstructured data storehouse, be used for writing various destructuring cloud data, carry out the storage of destructuring cloud data.Read module 110 carries out digital independent in unstructured data storehouse, to obtain required destructuring cloud data.
Parallel processing module 130, for carrying out parallel processing output processing result to destructuring cloud data.
In the present embodiment, the destructuring cloud data read are carried out parallel processing by parallel processing module 130, to realize the service logic currently triggered, obtain result and export.The parallel processing of destructuring cloud data is realized by cloud computing, owing to destructuring cloud data are prone to divide and merge, therefore, realizes distributed variable-frequencypump advantageously by cloud computing, to improve treatment effeciency.
Modular converter 150, for being undertaken being converted to structuring cloud data by result, and stores.
In the present embodiment, result is changed by modular converter 150, so that the result as destructuring cloud data is converted to structuring cloud data, and then realizes automatically changing of data type, and stores the result having become as structuring cloud data.
In one embodiment, above-mentioned cloud data fusion system also includes unstructured data storehouse, and this unstructured data storehouse is used for being stored in result.
In the present embodiment, before the result as destructuring cloud data is changed, this result will be stored in destructuring cloud data, to realize the backup of result, and then ensure data safety.
As shown in Figure 4, in one embodiment, above-mentioned modular converter 150 includes type acquiring unit 151, type conversion unit 153 and structured database 155.
Type acquiring unit 151, is used for obtaining the data type corresponding to row of the structured database that namely result is stored into.
In the present embodiment, the conversion of destructuring cloud data carries out by column, therefore, type acquiring unit 151 is needed to obtain the row that namely result is stored in structured database, and then obtain the data type corresponding to these row, for instance, data type can be integer type, date type etc..
Type conversion unit 153, for being converted to the data type acquired by result.
In the present embodiment, type conversion unit 153 is by column to destructuring cloud data, and namely result is changed, and with the structuring cloud data that the data type obtained with acquire is consistent, and structuring cloud data is write in place's row corresponding to structured database.
In another embodiment, above-mentioned modular converter 150 also includes judging unit, this judging unit is for judging by column the result being stored in non-structural data base, judge whether the row being currently located exist data, if, then notification type acquiring unit 151, if it is not, be then set to sky by the row corresponding to structured database.
In the present embodiment, by column destructuring cloud data are changed and stored, corresponding to ensure structured database right and wrong structured database, and then ensure that the orderly storage of data.
Structured database 155, for writing the result being converted to.
In the present embodiment, the row according to the structured database that namely result got is stored into, the result write structure data base that will be converted to.
In another embodiment, above-mentioned cloud data fusion system also includes enquiry module, and this enquiry module, for obtaining the inquiry request of result, carries out inquiry according to inquiry request in structuring cloud data and obtains result.
In the present embodiment, enquiry module obtains the inquiry request processing structure, the structuring cloud data of storage are inquired about in structured database according to inquiry request, now, the stored data of structured database be carried out parallel processing after obtained result, owing to this result is structurized, therefore can quickly complete the inquiry of data, and then improve search efficiency.
Above-mentioned cloud data fusion system will be applied in cloud computing, and realize cloud data fusion by destructuring cloud data base and structured database, and then the distributed variable-frequencypump realizing in cloud computing under the learning from other's strong points to offset one's weaknesses of destructuring cloud data and structuring cloud data and quick search.
In above-mentioned cloud data fusion method and system, the destructuring cloud data of reading are carried out parallel processing, obtain result, this result is changed, result is made to be transformed to structuring cloud data by destructuring cloud data and store, owing to result is to store with the form of structuring cloud data, therefore, to make to process structure to can adapt to inquire about frequently, and save the time that inquiry is spent.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.