CN103258016B - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN103258016B
CN103258016B CN201310145523.0A CN201310145523A CN103258016B CN 103258016 B CN103258016 B CN 103258016B CN 201310145523 A CN201310145523 A CN 201310145523A CN 103258016 B CN103258016 B CN 103258016B
Authority
CN
China
Prior art keywords
data
mapping
enum
end points
status indicator
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.)
Active
Application number
CN201310145523.0A
Other languages
Chinese (zh)
Other versions
CN103258016A (en
Inventor
李守鹏
车帅
刘民
温尚卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANDONG CIVIC SE COMMERCIAL MIDDLEWARE Co.,Ltd.
Original Assignee
CVIC Software Engineering Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CVIC Software Engineering Co Ltd filed Critical CVIC Software Engineering Co Ltd
Priority to CN201310145523.0A priority Critical patent/CN103258016B/en
Publication of CN103258016A publication Critical patent/CN103258016A/en
Application granted granted Critical
Publication of CN103258016B publication Critical patent/CN103258016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of data transmission method and system. Be pre-created the mapping table corresponding with data source table in the first end points; Mapping (enum) data in described mapping table is corresponding one by one with the source data in described data source table, and upgrades with the renewal of source data in described data source table; Described method comprises: in the first Preset Time interval, travel through successively the Data Identification of each mapping (enum) data in described mapping table, to determine the not mapping (enum) data to the second endpoint transmission; Whether described Data Identification does not transmit to the second end points for characterizing the mapping (enum) data of answering in contrast; Using described not to the mapping (enum) data of the second endpoint transmission as objective mapping data, and described objective mapping data are transmitted to described the second end points, and the Data Identification of resetting described objective mapping data, to show that described objective mapping data transmit to described the second end points.

Description

Data transmission method and system
Technical field
The present invention relates to technical field of data transmission, particularly relate to a kind of data transmission method and system.
Background technology
At present, in complicated distributed environment, disparate databases is realized data by data integration busTransmission exchange, and finally reach data integration, solve the problem of distributivity and the isomerism of data with this.
Applicant finds through research, in the process of data integration, due to some odjective cause, differenceBetween database, in the time of transmission data, can there are some problems. For example, there is the distributed of some end pointsIn system, in the time that data are transferred to double-pointed tables of data from the tables of data of the first end points, need straightConnect the tables of data of this first end points of operation, in the process of operation, due to otherness, the jitter of networkWith the stability of database storage, may cause the loss of data in tables of data, thereby reduce data biographyDefeated reliability.
Summary of the invention
For solving in the process of transfer of data, because some odjective cause may cause in data source tableThe problem of loss of data, the embodiment of the present invention provides a kind of data transmission method and system, to improve numberReportedly defeated reliability, technical scheme is as follows:
A kind of data transmission method, is pre-created the mapping table corresponding with data source table in the first end points;Mapping (enum) data in described mapping table is corresponding one by one with the source data in described data source table, and with described numberUpgrade according to the renewal of source data in the table of source; Described method comprises:
In the first Preset Time interval, travel through successively the data mark of each mapping (enum) data in described mapping tableKnow, to determine the not mapping (enum) data to the second endpoint transmission; Described Data Identification is used for characterizing phase with itWhether corresponding mapping (enum) data does not transmit to the second end points;
Using described not to the mapping (enum) data of the second endpoint transmission as objective mapping data, and by described targetMapping (enum) data transmits to described the second end points, and the Data Identification of resetting described objective mapping data,Transmit to described the second end points to show described objective mapping data.
Preferably, described Data Identification correspondence is provided with the first status indicator position and the second status indicator position;
Wherein:
Described the first status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to instituteStating the second end points transmits;
Described the second status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification not to instituteStating the second end points transmits.
Preferably, described method also comprises:
Obtain the corresponding data major key of each data in described the second end points;
The major key of the mapping (enum) data by Data Identification in the first status indicator position one by one with described the second end pointsIn each data major key mate;
The Data Identification of the corresponding mapping (enum) data of major key that the match is successful is heavy by the first status indicator positionBe set to the second status indicator position.
Preferably, according to the transfer of data that described objective mapping data are transmitted to described the second end pointsObtain sequentially, successively data major key corresponding to each data in described the second end points; Described by Data IdentificationThe major key of the mapping (enum) data in the first status indicator position one by one with described the second end points in each data masterKey mates, and comprising:
Respectively by the data major key in described the second end points and described Data Identification in the first status indicator positionThe major key of mapping (enum) data be divided into n group by identity principle, wherein, n >=1 and n are integer;
Compare successively the number of data major key and the master of described mapping (enum) data in the second end points in k groupWhether the number of key equates, if so, compares next group; If not, described in this group, shine uponThe major key of data mates with the data major key in described the second end points one by one, wherein, and 1≤k≤n,And k is integer.
A kind of data transmission system, is pre-created mapping table creation module, and described mapping table creation module is usedIn creating the mapping table corresponding with data source table in the first end points; Mapping (enum) data in described mapping tableCorresponding one by one with the source data in described data source table, and with the renewal of source data in described data source tableUpgrade; Described system comprises:
Data Identification spider module, in the first Preset Time interval, travels through described mapping table successivelyIn the Data Identification of each mapping (enum) data, to determine the not mapping (enum) data to the second endpoint transmission; DescribedWhether Data Identification does not transmit to the second end points for characterizing the mapping (enum) data of answering in contrast;
Data transmission module, for using described not to the mapping (enum) data of the second endpoint transmission as objective mappingData, and described objective mapping data are transmitted to described the second end points, and the described target of resetting is reflectedPenetrate the Data Identification of data, to show that described objective mapping data transmit to described the second end points.
Preferably, in described Data Identification spider module, be provided with the first status indicator position module and the second shapeState flag module;
Wherein:
In described the first status indicator module, be provided with the first status indicator position of described Data Identification, this is years oldOne status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to described the second end pointsTransmit;
In described the second status indicator module, be provided with the second status indicator position of described Data Identification, this is years oldTwo-state flag is for characterizing the mapping (enum) data corresponding with described Data Identification not to described the second end pointsTransmit.
Preferably, described system also comprises:
Data major key acquisition module, for obtaining the corresponding data master of described each data of the second end pointsKey;
Matching module, for the major key of the mapping (enum) data in the first status indicator position by Data Identification one by oneMate with each data major key in described the second end points;
Data Identification replacement module, for by the data of the corresponding mapping (enum) data of major key that the match is successfulMark resets to the second status indicator position by the first status indicator position.
The technical scheme that the embodiment of the present invention provides, before performing data transmission method, is pre-createdThe mapping table corresponding with data source table, the data in mapping table are corresponding one by one with the data in data source table, and upgrade with the renewal of data in data source table, thereby in the process of transfer of data, withOperation map table replaces direct control data source table in prior art, has solved because some is objective former with thisBecause may cause the problem of loss of data in the process of operating data source table, that has improved transfer of data canLean on property.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to realityThe accompanying drawing of executing required use in example or description of the Prior Art is briefly described, apparently, belowAccompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art,Do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first schematic flow sheet of a kind of data transmission method that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet of a kind of data transmission method that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of a kind of data transmission method that Fig. 3 provides for the embodiment of the present invention;
The 4th kind of schematic flow sheet of a kind of data transmission method that Fig. 4 provides for the embodiment of the present invention;
The 5th kind of schematic flow sheet of a kind of data transmission method that Fig. 5 provides for the embodiment of the present invention;
The 6th kind of schematic flow sheet of a kind of data transmission method that Fig. 6 provides for the embodiment of the present invention;
The first structural representation of a kind of data transmission method that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried outDescribe clearly and completely, obviously, described embodiment is only the present invention's part embodiment, and notWhole embodiment. Based on the embodiment in the present invention, those of ordinary skill in the art are not makingThe every other embodiment obtaining under creative work prerequisite, belongs to the scope of protection of the invention.
In order to solve in data transmission procedure, because some odjective cause may cause data in data source tableThe problem of losing, the embodiment of the present invention provides a kind of data transmission method and system, to improve transfer of dataReliability.
First a kind of data transmission method embodiment of the present invention being provided is below introduced.
It should be noted that, carrying out before described method, be pre-created with the first end points in data sourceShow corresponding mapping table; Source data in mapping (enum) data in described mapping table and described data source table one by oneCorrespondence, and upgrade with the renewal of source data in described data source table.
Be pre-created mapping table, and in follow-up data transmission procedure, replace by operating this mapping tableDirect control data source table, effectively the data in the table of protected data source are not subject to unexpected loss.
In actual applications, can the content change in data source table be reacted to mapping table by triggerIn.
As shown in Figure 1, a kind of data transmission method, can comprise:
S101, in the first Preset Time interval, travels through each mapping (enum) data in described mapping table successivelyData Identification, to determine the not mapping (enum) data to the second endpoint transmission; Described Data Identification is for characterizingWhether the mapping (enum) data of answering in contrast does not transmit to the second end points;
It should be noted that, because the data in mapping table are to upgrade with the renewal of data in data source table, therefore, data transmission method of the present invention is in the first Preset Time interval, circulation is carried out.And this first Preset Time interval can be according to user's requirements set, certainly, any other setting sideFormula is all also rational.
In addition, each data in mapping table have a Data Identification, and this Data Identification can characterize with itCorresponding mapping (enum) data is not noly to transmit to the second end points. For example, this Data Identification can be usedFLG_ field represents, when FLG_ field is while being empty, represents that the data of answering are not in contrast for to the second endThe data transmitted of point, in the time that FLG_ field is S, represent that the data of answering are in contrast for to secondThe data that end points transmits. Certainly, for other any data of can distinguishing whether to the second endThe identification means that point transmits is all also rational.
S102, using described not to the mapping (enum) data of the second endpoint transmission as objective mapping data, and by instituteState objective mapping data and transmit to described the second end points, and the data of the described objective mapping data of resettingMark, to show that described objective mapping data transmit to described the second end points.
Traveling through out after the mapping (enum) data not transmitting to the second end points, setting it as objective mapping dataTransmit to the second end points. And by the Data Identification of resetting above-mentioned objective mapping data, to show itTransmit to the second end points, thereby at interval the first Preset Time, again when Ergodic Maps table, noWith transmitting again this mapping (enum) data.
The embodiment of the present invention, is pre-created the mapping table corresponding with data source table, the data in mapping table withData in data source table are one to one, and upgrade with the renewal of data in data source table,Thereby in the process of transfer of data, replace direct control data source table in prior art with operation map table,Solve because some odjective cause may cause loss of data in the process of operating data source table with thisProblem, has improved the reliability of transfer of data.
Below in conjunction with concrete application example, the data transmission method that the embodiment of the present invention is provided is situated betweenContinue.
As shown in Figure 2, a kind of data transmission method, can comprise:
Be pre-created the mapping table corresponding with data source table in the first end points; Reflecting in described mapping tablePenetrate data corresponding one by one with the source data in described data source table, and with source data in described data source tableUpgrade and upgrade;
Each mapping (enum) data in described mapping table has a Data Identification, and described Data Identification is corresponding to be arrangedThere are the first status indicator position and the second status indicator position;
Wherein:
Described the first status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to instituteStating the second end points transmits;
Described the second status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification not to instituteStating the second end points transmits.
S201, in the first Preset Time interval, travels through each mapping (enum) data in described mapping table successivelyData Identification, to determine the mapping (enum) data of Data Identification in the second status indicator position;
S202, the mapping (enum) data using described Data Identification in the second status indicator position is as objective mapping numberAccording to, and described objective mapping data are transmitted to described the second end points, and by described objective mapping numberAccording to Data Identification by described the second status indicator for being set to described the first status indicator position.
The embodiment of the present invention, is pre-created the mapping table corresponding with data source table, the data in mapping table withData in data source table are one to one, and upgrade with the renewal of data in data source table,Thereby in the process of transfer of data, replace direct control data source table in prior art with operation map table,Solve because some odjective cause may cause loss of data in the process of operating data source table with thisProblem.
Further, after the data in data source table are transmitted to described the second end points, processA period of time, due to some odjective cause, may cause the loss of data in this second end points, for understandingThe above-mentioned problem that may obliterated data of determining, improves the reliability of transfer of data, and the embodiment of the present invention providesData transmission method, as shown in Figure 3, can also comprise:
S301, obtains the corresponding data major key of each data in described the second end points;
It should be noted that, for each mapping (enum) data in described mapping table distributes unique data major key,This data major key is one to one with corresponding mapping (enum) data. Replace straight to obtain the data major key of dataObtain and get corresponding data, can improve the efficiency of transfer of data.
In addition, data major key can represent by a certain representative field in data, for example,In the application scenarios of statistics population, data are, Li Si, 1987.08.24,130624198708240637,Wherein, " Li Si " is name, and " 1987.08.24 " is the date of birth, " 130624198708240637 "For identification card number, due to for everyone, identification card number is unique, that is to say, can adoptAs the data major key corresponding with a certain data, be certainly not limited to this with identification card number.
S302, the major key of the mapping (enum) data by Data Identification in the first status indicator position is one by one with describedEach data major key in two end points mates;
Because data corresponding to each data major key in the second end points are to the second endpoint transmission by mapping tableMapping (enum) data, therefore, after obtaining data major key corresponding to each data in the second end points, needThe Data Identification of mapping (enum) data in first Ergodic Maps table, to obtain Data Identification in the first status indicator positionMapping (enum) data, and further obtain the major key of this mapping (enum) data.
Obtaining after the major key of the mapping (enum) data of Data Identification in the first status indicator position, by its one by one withEach data major key in the second end points mates, when the major key of above-mentioned a certain mapping (enum) data match withThe second identical end points in data major key time, the match is successful, otherwise, mate unsuccessful.
Be understandable that, the data in mapping table are in the process to the second endpoint transmission, due to networkWhen reason or the data in use the second end points, may cause the loss of data in the second end points, alsoJust appear at and in matching process, mate unsuccessful situation.
S303, by the Data Identification of the corresponding mapping (enum) data of major key that the match is successful by the first state markKnow position and reset to the second status indicator position.
In the time determining mapping (enum) data corresponding to the major key that in mapping table, the match is successful, by this mapping (enum) dataData Identification reset to the second status indicator position by the first status indicator position, to show this mapping (enum) data notTransmit to the second end points.
In order to improve the efficiency of transfer of data, according to described objective mapping data are entered to described the second end pointsThe data transfer sequence of row transmission, obtains data major key corresponding to each data in described the second end points successively;The major key of the mapping (enum) data by Data Identification in the first status indicator position one by one with described the second end points inEach data major key mates, and can comprise:
S401, respectively by the data major key of each data in described the second end points and described Data Identification inThe major key of the mapping (enum) data of the first status indicator position is divided into n group by identity principle;
Wherein, n >=1 and n are integer;
In actual applications, due to the number of the mapping (enum) data in the first status indicator position in mapping table withIn the second end points, the number of the data major key of each data is very huge, in order to improve corresponding data masterMatching efficiency between key, can be by each data major key in the data major key of mapping (enum) data and the second end pointsBe divided into n group by identity principle, mate by group.
For example, the major key of the mapping (enum) data of Data Identification in the first status indicator position be A, B, C, D,E, F, each data major key in the second end points be A, B ,-, D ,-, F, grouping in,Can be according to dividing three groups, the principle of every group of two data major keys, respectively by " A, B, C, D, E, F "" A, B ,-, D ,-, F " grouping, grouping after Data Identification reflecting in the first status indicator positionThe major key of penetrating data is " A, B " " C, D " " E, F ", each data major key in the second end points be " A,B " "-, D " "-, F ", certainly, can also, according to other group forming criterion, this not limited.
S402, relatively k organizes successively second number of end-point data major key and the number of described mapping (enum) dataWhether the number according to major key equates, if so, compares next group; If not, perform step S302,,Wherein, 1≤k≤n, and k is integer.
After having divided into groups, by group to Data Identification the major key of the mapping (enum) data in the first status indicator positionMate with each data major key in the second end points. As mentioned above example, first relatively in first groupWhether the number of the data major key comprising equate, if equated, thinks the data master who comprises in first groupKey can the match is successful, and next group relatively successively, if unequal, think in first group and wrapThe data major key containing is to there will be the situation that the match is successful;
Further, by the major key of the mapping (enum) data of Data Identification in the first status indicator position in this group byOne mates with each data major key in the second end points, for example, and in the process that compares second group,The major key number of mapping (enum) data is 2, and in the second end points, the data major key number of each data is 1, explanationIn second group, it is unsuccessful that the major key of a certain mapping (enum) data and the data major key in the second end points will inevitably mate,Therefore by this group, the major key of mapping (enum) data mates with the data major key in the second end points one by one, whenWhen the major key C of mapping (enum) data mates with the data major key in the second end points, mate unsuccessful.
In addition, for the process of this data major key coupling is applied to how different scenes, described by instituteThe data major key of stating each data in the first data mates with described the second data major key, can wrapDraw together:
S501, according to hash algorithm, respectively by data major key and the institute of each data in described the second end pointsThe major key of stating the mapping (enum) data of Data Identification in the first status indicator position is packaged into n packet;
Wherein, n >=1 and n are integer.
In actual applications, according to the difference of application scenarios, can adopt specific hash algorithm, respectivelyBy the data major key of each data in described the second end points mapping number corresponding with described the first status indicator positionAccording to major key be packaged into n packet.
S502, successively relatively cryptographic Hash and the described mapping (enum) data of the second data major key of k packetThe cryptographic Hash of data major key whether equate, if so, more next packet; If not,The packet that decompress(ion) is current, and carry out and perform step S302, wherein, 1≤k≤n, and k is integer.
The embodiment of the present invention, before performing data transmission method, creates the mapping corresponding with data source tableTable, the data in the data in mapping table and data source table are one to one, and with number in data source tableAccording to renewal and upgrade, thereby in the process of transfer of data, replace existing skill with operation map tableDirect control data source table in art, has solved because some odjective cause is in the mistake of operating data source table with thisIn journey, may cause the problem of loss of data, further improve the reliability of transfer of data
Below in conjunction with concrete application example, the Dead-time compensation method that the embodiment of the present invention is providedBe introduced.
As shown in Figure 6, a kind of data transmission method, can comprise:
Be pre-created the mapping table corresponding with data source table in the first end points; Reflecting in described mapping tablePenetrate data corresponding one by one with the source data in described data source table, and with source data in described data source tableUpgrades and upgrade, and each mapping (enum) data in described mapping table has a Data Identification, and be described oftenOne mapping (enum) data distributes unique data major key;
Wherein, described Data Identification correspondence is provided with the first status indicator position and the second status indicator position, instituteState the first status indicator position for characterizing the mapping (enum) data corresponding with described Data Identification to described secondEnd points transmits; Described the second status indicator position is for characterizing the mapping corresponding with described Data IdentificationData are not transmitted to described the second end points.
S601, in the first Preset Time interval, travels through each mapping (enum) data in described mapping table successivelyData Identification, to determine the mapping (enum) data of Data Identification as described the second status indicator position;
S602 is that the mapping (enum) data of described the second status indicator position is as objective mapping using described Data IdentificationData, and described objective mapping data are transmitted to described the second end points, and the described target of resetting is reflectedThe Data Identification of penetrating data is described the first status indicator position;
S603, obtains the corresponding data major key of each data in described the second end points;
S604, respectively by the data major key of each data in described the second end points and described the first status indicatorThe major key of the mapping (enum) data of position correspondence is divided into n group by identity principle;
S605, relatively k organizes successively second number of end-point data major key and the data master of mapping (enum) dataWhether the number of key equates, if so, compares next group; If not, step S606, wherein, 1≤ k≤n, and k is integer;
S606, the major key of the mapping (enum) data by Data Identification in the first status indicator position is one by one with describedEach data major key in two end points mates;
S607, by the Data Identification of the corresponding mapping (enum) data of major key that the match is successful by the first state markKnow position and reset to the second status indicator position.
The embodiment of the present invention, before performing data transmission method, creates the mapping corresponding with data source tableTable, the data in the data in mapping table and data source table are one to one, and with number in data source tableAccording to renewal and upgrade, thereby in the process of transfer of data, replace existing skill with operation map tableDirect control data source table in art, has solved because some odjective cause is in the mistake of operating data source table with thisIn journey, may cause the problem of loss of data, improve the reliability of transfer of data.
By the description of above embodiment of the method, those skilled in the art can be well understood toThe mode that the present invention can add essential general hardware platform by software realizes, can certainly be by hardPart, but in a lot of situation, the former is better embodiment. Based on such understanding, technology of the present inventionThe part that scheme contributes to prior art in essence in other words can reveal with the form body of software productCome, this computer software product is stored in a storage medium, comprises that some instructions are in order to make oneComputer equipment (can be personal computer, server, or the network equipment etc.) the present invention is each in executionThe all or part of step of method described in individual embodiment. And aforesaid storage medium comprises: read-only storage(ROM), random-access memory (ram), magnetic disc or CD etc. are various can be program code storedMedium.
Corresponding to above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of data transmission system,Before creating described system, be pre-created mapping table creation module, described mapping table creation module is for woundBuild the mapping table corresponding with data source table in the first end points; Mapping (enum) data in described mapping table and instituteState the source data correspondence one by one in data source table, and upgrade with the renewal of source data in described data source table;
As shown in Figure 7, described data transmission system, can comprise:
Data Identification spider module 710, in the first Preset Time interval, travels through described mapping successivelyThe Data Identification of each mapping (enum) data in table, to determine the not mapping (enum) data to the second endpoint transmission; InstituteWhether state Data Identification does not transmit to the second end points for characterizing the mapping (enum) data of answering in contrast;
Data transmission module 720, for not reflecting as target to the mapping (enum) data of the second endpoint transmission describedPenetrate data, and described objective mapping data are transmitted to described the second end points, and the described target of resettingThe Data Identification of mapping (enum) data, to show that described objective mapping data transmit to described the second end points.
Further, in described Data Identification spider module, be provided with the first status indicator position module and secondStatus indicator position module;
Wherein:
In described the first status indicator module, be provided with the first status indicator position of described Data Identification, this is years oldOne status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to described the second end pointsTransmit;
In described the second status indicator module, be provided with the second status indicator position of described Data Identification, this is years oldTwo-state flag is for characterizing the mapping (enum) data corresponding with described Data Identification not to described the second end pointsTransmit.
Further, after the data in data source table are transmitted to described the second end points, processA period of time, due to some odjective cause, may cause the loss of data in this second end points, for understandingThe above-mentioned problem that may obliterated data of determining, improves the reliability of transfer of data, and the embodiment of the present invention providesData transmission system, can also comprise:
Data major key acquisition module, for obtaining the corresponding data master of described each data of the second end pointsKey;
Matching module, for the major key of the mapping (enum) data in the first status indicator position by Data Identification one by oneMate with each data major key in described the second end points;
Data Identification replacement module, for by the data of the corresponding mapping (enum) data of major key that the match is successfulMark resets to the second status indicator position by the first status indicator position.
The embodiment of the present invention, creating before data transmission system, creates mapping table creation module, described in reflectFiring table creation module is for creating the mapping table corresponding with data source table, the data in mapping table and data sourceData in table are one to one, and upgrade with the renewal of data in data source table, therebyIn the process of transfer of data, replace direct control data source table in prior art with operation map table, with thisSolve the problem that may cause loss of data due to some odjective cause in the process of operating data source tableImprove the reliability of transfer of data.
For system embodiment, because it is substantially corresponding to embodiment of the method, so relevant part ginsengSee the part explanation of embodiment of the method. Device described above or system embodiment are only signalsProperty, the wherein said unit as separating component explanation can be or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at onePlace, or also can be distributed on multiple NEs. Can select according to the actual needs whereinSome or all of module realizes the object of the present embodiment scheme. Those of ordinary skill in the art are not payingGo out in the situation of creative work, be appreciated that and implement.
In several embodiment provided by the present invention, should be understood that, disclosed system and method,Not exceeding in the application's spirit and scope, can realize in other way. Current enforcementExample is a kind of exemplary example, should not serve as restriction, and given particular content should in no way limitThe application's object. For example, the division of described unit or subelement, is only that a kind of logic function is divided,When actual realization, can have other dividing mode, for example multiple unit or multiple subelement combine.In addition, multiple unit can or assembly can in conjunction with or can be integrated into another system, or some spiesLevy and can ignore, or do not carry out.
In addition, the schematic diagram of institute's descriptive system and method and different embodiment, is not exceeding the application'sIn scope, can with other system, module, technology or method in conjunction with or integrated. Another point, shownOr discuss coupling each other direct-coupling or communication connection can be by some interfaces, deviceOr the INDIRECT COUPLING of unit or communication connection, can be electrically, machinery or other form.
The above is only the specific embodiment of the present invention, it should be pointed out that general for the artLogical technical staff, under the premise without departing from the principles of the invention, can also make some improvement and profitDecorations, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (3)

1. a data transmission method, is characterized in that, be pre-created with the first end points in data source tableCorresponding mapping table; Source data in mapping (enum) data in described mapping table and described data source table one by oneCorrespondence, and upgrade with the renewal of source data in described data source table; Described method comprises:
In the first Preset Time interval, travel through successively the data mark of each mapping (enum) data in described mapping tableKnow, to determine the not mapping (enum) data to the second endpoint transmission; Described Data Identification is used for characterizing phase with itWhether corresponding mapping (enum) data does not transmit to the second end points;
Using described not to the mapping (enum) data of the second endpoint transmission as objective mapping data, and by described targetMapping (enum) data transmits to described the second end points, and the Data Identification of resetting described objective mapping data,Transmit to described the second end points to show described objective mapping data;
Wherein, described Data Identification correspondence is provided with the first status indicator position and the second status indicator position;
Wherein:
Described the first status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to instituteStating the second end points transmits;
Described the second status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification not to instituteStating the second end points transmits;
Wherein, described data transmission method also comprises:
Obtain the corresponding data major key of each data in described the second end points;
The major key of the mapping (enum) data by Data Identification in the first status indicator position one by one with described the second end pointsIn each data major key mate;
The Data Identification of the corresponding mapping (enum) data of major key that the match is successful is heavy by the first status indicator positionBe set to the second status indicator position.
2. method according to claim 1, is characterized in that, according to by described objective mapping dataThe data transfer sequence transmitting to described the second end points, obtains each number in described the second end points successivelyAccording to corresponding data major key; Described by Data Identification the major key of the mapping (enum) data in the first status indicator positionMate with each data major key in described the second end points one by one, comprising:
Respectively by the data major key in described the second end points and described Data Identification in the first status indicator positionThe major key of mapping (enum) data be divided into n group by identity principle, wherein, n >=1 and n are integer;
Compare successively the number of data major key and the master of described mapping (enum) data in the second end points in k groupWhether the number of key equates, if so, compares next group; If not, described in this group, shine uponThe major key of data mates with the data major key in described the second end points one by one, wherein, and 1≤k≤n,And k is integer.
3. a data transmission system, is characterized in that, is pre-created mapping table creation module, described in reflectFiring table creation module is for creating the mapping table corresponding with the data source table of the first end points; Described mappingMapping (enum) data in table is corresponding one by one with the source data in described data source table, and with in described data source tableThe renewal of source data and upgrading; Described system comprises:
Data Identification spider module, in the first Preset Time interval, travels through described mapping table successivelyIn the Data Identification of each mapping (enum) data, to determine the not mapping (enum) data to the second endpoint transmission; DescribedWhether Data Identification does not transmit to the second end points for characterizing the mapping (enum) data of answering in contrast;
Data transmission module, for using described not to the mapping (enum) data of the second endpoint transmission as objective mappingData, and described objective mapping data are transmitted to described the second end points, and the described target of resetting is reflectedPenetrate the Data Identification of data, to show that described objective mapping data transmit to described the second end points;
Wherein, in described Data Identification spider module, be provided with the first status indicator position module and the second stateFlag module;
Wherein:
In described the first status indicator module, be provided with the first status indicator position of described Data Identification, this is years oldOne status indicator position is for characterizing the mapping (enum) data corresponding with described Data Identification to described the second end pointsTransmit;
In described the second status indicator module, be provided with the second status indicator position of described Data Identification, this is years oldTwo-state flag is for characterizing the mapping (enum) data corresponding with described Data Identification not to described the second end pointsTransmit;
Wherein, described system also comprises:
Data major key acquisition module, for obtaining the corresponding data master of described each data of the second end pointsKey;
Matching module, for the major key of the mapping (enum) data in the first status indicator position by Data Identification one by oneMate with each data major key in described the second end points;
Data Identification replacement module, for by the data of the corresponding mapping (enum) data of major key that the match is successfulMark resets to the second status indicator position by the first status indicator position.
CN201310145523.0A 2013-04-24 2013-04-24 Data transmission method and system Active CN103258016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310145523.0A CN103258016B (en) 2013-04-24 2013-04-24 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310145523.0A CN103258016B (en) 2013-04-24 2013-04-24 Data transmission method and system

Publications (2)

Publication Number Publication Date
CN103258016A CN103258016A (en) 2013-08-21
CN103258016B true CN103258016B (en) 2016-05-18

Family

ID=48961933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310145523.0A Active CN103258016B (en) 2013-04-24 2013-04-24 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN103258016B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753639B (en) * 2015-03-02 2018-03-13 北京精诚铂阳光电设备有限公司 Data transferring method and device
CN105069161A (en) * 2015-08-26 2015-11-18 浪潮软件股份有限公司 Data interaction method and data interaction device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201019144A (en) * 2008-11-06 2010-05-16 Acer Inc Remote computer synchronous transmission technology
CN102495838A (en) * 2011-11-03 2012-06-13 成都市华为赛门铁克科技有限公司 Data processing method and data processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315930B (en) * 2010-06-30 2014-07-23 国际商业机器公司 Method and system for reducing data transmission quantity in data synchronization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201019144A (en) * 2008-11-06 2010-05-16 Acer Inc Remote computer synchronous transmission technology
CN102495838A (en) * 2011-11-03 2012-06-13 成都市华为赛门铁克科技有限公司 Data processing method and data processing device

Also Published As

Publication number Publication date
CN103258016A (en) 2013-08-21

Similar Documents

Publication Publication Date Title
CN111090645B (en) Cloud storage-based data transmission method and device and computer equipment
CN111902817B (en) Block chain data storage based on shared nodes and error correction coding
US10476662B2 (en) Method for operating a distributed key-value store
CN111095210B (en) Storing shared blockchain data based on error correction coding
CN108153757A (en) A kind of method and apparatus of Hash table management
CN101673289B (en) Method and device for constructing distributed file storage framework
CN109766707B (en) Data processing method, device, equipment and medium based on block chain
CN103116615B (en) A kind of data index method and server based on version vector
CN104255011B (en) Cloud computing secure data stores
CN109146677B (en) Method, computer system and readable storage medium for parallel building of block chain views
US11526494B2 (en) Blockchain-based computing system and method for managing transaction thereof
CN104021219B (en) The generation method and device of a kind of data template
EP3012991B1 (en) Method and device for using high-dimensional constellation graph to transmit data
CN102272728B (en) Method, apparatus, and computer program product for polynomial-based data transformation and utilization
CN113826355A (en) Short transaction identifier collision detection and coordination
CN114153374A (en) Distributed storage system for storing metadata and data together
CN103258016B (en) Data transmission method and system
CN104166821B (en) A kind of method and apparatus of data processing
US20130262400A1 (en) Data index query method, apparatus and system
CN103326925A (en) Message push method and device
CN107094073A (en) A kind of group's RFID tag ownership transfer method based on Chinese remainder theorem
CN104023056B (en) The method and relevant device updated the data
CN112771815A (en) Key processing method and device
CN113452783B (en) Digital PAAS open platform system of block chain cloud architecture and implementation method
Xu et al. Knowledge reductions in generalized approximation space over two universes based on evidence theory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211206

Address after: 250014 No. 41-1 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province

Patentee after: SHANDONG CIVIC SE COMMERCIAL MIDDLEWARE Co.,Ltd.

Address before: 250014 No. 41-1 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province

Patentee before: SHANDONG CVIC SOFTWARE ENGINEERING Co.,Ltd.

Patentee before: Shandong Zhongchuang software commercial middleware Co., Ltd