CN106021326A - A stream-computing event processing method and device - Google Patents
A stream-computing event processing method and device Download PDFInfo
- Publication number
- CN106021326A CN106021326A CN201610296648.7A CN201610296648A CN106021326A CN 106021326 A CN106021326 A CN 106021326A CN 201610296648 A CN201610296648 A CN 201610296648A CN 106021326 A CN106021326 A CN 106021326A
- Authority
- CN
- China
- Prior art keywords
- result
- article
- logout
- memory block
- event
- 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.)
- Pending
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/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24568—Data stream processing; Continuous queries
Abstract
The invention provides a stream-computing event processing method and device. The method comprises the steps of processing a first event record via a stream computing engine to obtain a first processing result; storing the first processing result in a local integrity storage area which is used for storing event processing results; processing a second event record via the stream computing engine to obtain a second processing result, wherein the second event record correlates with the first event record; obtaining the first processing result from the local integrity storage area and obtaining an event processing result through calculation based on the first processing result and the second processing result. The stream-computing event processing method and device solve the technical problem that the processing result of multiple events with relevancy is inaccurate because of incapability of realizing condition computing across the multiple events.
Description
Technical field
The present invention relates to stream calculation field, in particular to a kind of event-handling method based on stream calculation and device.
Background technology
Under the conditions of current software and hardware, directly inquiring about data from relevant database, efficiency can be at a fairly low, such as please
Seek member's total number of persons of a trade company, use SQL select count (*) from membership where
Brand_id=15, if there being 10,000,000 records or more in membership table, frequently inquires about this SQL, performance
The lowest, and influence whether the overall performance of data base;And draw and after stream calculation, when each member increases
Wait, calculate member's quantity;When inquiry, directly with SQL:select membership_num from
Membership_statistics where brand_id=15 Query Result, efficiency can be much higher, because need not be every
Secondary inquiry is all done and is polymerized.However, it is found by the inventors that, current stream calculation framework is that wall scroll processes each event, nothing
Method realizes calculating across the condition of a plurality of event, and this causes a plurality of event handling result that there is relatedness inaccurate.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide a kind of event-handling method based on stream calculation and device, so that at least solve cannot be real
Now the condition across a plurality of event calculates, and causes a plurality of inaccurate technical problem of event handling result that there is relatedness.
An aspect according to embodiments of the present invention, it is provided that a kind of event-handling method based on stream calculation, including:
Process Article 1 logout by stream calculation engine, obtain the first result;By described first result storage
In locally completeness memory block, wherein, described locally completeness memory block is for storing the result of event;Logical
Cross described stream calculation engine and process Article 2 logout, obtain the second result, wherein, described Article 2 event
Incidence relation is there is between record and described Article 1 logout;Obtain described from described locally completeness memory block
First result, and it is calculated event handling result according to described first result and described second result.
Further, after described first result being stored in locally completeness memory block, described method is also
Including: judge whether the described Article 2 logout being associated with described Article 1 logout;Wherein, exist
When judging to exist described Article 2 logout, obtain described Article 2 logout, processed by stream calculation engine
Described Article 2 logout.
Further, Article 2 logout, after obtaining the second result, institute are being processed by stream calculation engine
Method of stating also includes: store in locally completeness memory block by described second result, wherein, from described local
Integrity memory block obtains described first result, and processes knot according to described first result and described second
Fruit is calculated event handling result and includes: described stream calculation engine obtains described from described locally completeness memory block
First result and the second result, and calculate according to described first result and described second result
To event handling result.
Further, it is being calculated event handling result according to described first result and described second result
Afterwards, described method also includes: described event handling result stored to described locally completeness memory block.
Further, it is being calculated event handling result according to described first result and described second result
Afterwards, described method also includes: judge whether and described Article 1 logout or Article 2 logout phase
The Article 3 logout of association;When judging to exist described Article 3 logout, by described stream calculation engine
Described Article 3 logout is processed, obtains the 3rd result, and according to described 3rd result and
Described event handling result is calculated final result.
Another aspect according to embodiments of the present invention, additionally provides a kind of event processing apparatus based on stream calculation, including:
First processing unit, for processing Article 1 logout by stream calculation engine, obtains the first result;Storage
Unit, for described first result is stored in locally completeness memory block, wherein, described locally completeness
Memory block is for storing the result of event;Second processing unit, for processing second by described stream calculation engine
Bar logout, obtains the second result, wherein, described Article 2 logout and described Article 1 logout
Between there is incidence relation;3rd processing unit, for obtaining at described first from described locally completeness memory block
Reason result, and it is calculated event handling result according to described first result and described second result.
Further, described device also includes: the first judging unit, for described first result being stored
After in locally completeness memory block, it may be judged whether there is the described Article 2 being associated with described Article 1 logout
Logout;Described second processing unit, for when judging to exist described Article 2 logout, obtains described
Article 2 logout, processes described Article 2 logout by stream calculation engine.
Further, described memory element is additionally operable to processing Article 2 logout by stream calculation engine, obtains the
After two results, described second result is stored in locally completeness memory block, wherein, the described 3rd
Processing unit be additionally operable to described stream calculation engine obtain from described locally completeness memory block described first result and
Second result, and it is calculated event handling result according to described first result and described second result.
Further, described memory element is additionally operable to according to described first result and described second result meter
After calculation obtains event handling result, described event handling result is stored to described locally completeness memory block.
Further, described device also includes: the second judging unit, for according to described first result and institute
State after the second result is calculated event handling result, it may be judged whether exist with described Article 1 logout or
The Article 3 logout that person's Article 2 logout is associated;Fourth processing unit, for judging that existence is described
During Article 3 logout, by described stream calculation engine, described Article 3 logout is processed, obtain the 3rd
Result, and it is calculated final result according to described 3rd result and described event handling result.
In embodiments of the present invention, after processing Article 1 logout, the first result is stored in default
In locally completeness memory block, in order to process after Article 2 logout at stream calculation engine, further according to the
One result and the second result are calculated event handling result, it is achieved across the condition meter of a plurality of record of event
Calculating, its result of calculation is greatly promoted relative to the accuracy of the result simply calculating wall scroll logout, and solving cannot
The condition across a plurality of event that realizes calculates, and causes a plurality of inaccurate technical problem of event handling result that there is relatedness.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.At accompanying drawing
In:
Fig. 1 is the flow chart of event-handling method based on stream calculation according to embodiments of the present invention;
Fig. 2 is the schematic diagram of event processing apparatus based on stream calculation according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention
Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment
It is only the embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ability
The every other embodiment that territory those of ordinary skill is obtained under not making creative work premise, all should belong to
The scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that this
Sample use data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except
Here the order beyond those illustrating or describing is implemented.Additionally, term " includes " and " having " and they
Any deformation, it is intended that cover non-exclusive comprising, such as, contain series of steps or the process of unit, side
Method, system, product or equipment are not necessarily limited to those steps or the unit clearly listed, but can include the clearest
List or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the present invention, it is provided that the embodiment of the method for a kind of event-handling method based on stream calculation, need
Illustrate, can be in the department of computer science of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing
System performs, and, although show logical order in flow charts, but in some cases, can be with difference
Step shown or described by performing in order herein.
Fig. 1 is the flow chart of event-handling method based on stream calculation according to embodiments of the present invention, as it is shown in figure 1,
The method comprises the steps:
Step S102, processes Article 1 logout by stream calculation engine, obtains the first result.
Step S104, stores the first result in locally completeness memory block.Wherein, locally completeness storage
District is for storing the result of event.
Step S106, processes Article 2 logout by stream calculation engine, obtains the second result.Wherein,
Article two, there is incidence relation between logout and Article 1 logout.
Step S108, obtains the first result from locally completeness memory block, and according to the first result and
Two results are calculated event handling result.
In the embodiment of the present invention, there is incidence relation between Article 1 logout and Article 2 logout, therefore exist
During calculating, needing to combine two records and calculate, the final result obtained can accurately reflect out its verity.
In the present embodiment, process Article 1 logout and Article 2 logout successively by stream calculation engine.Wherein, exist
After processing Article 1 logout, the first result is stored in default locally completeness memory block, in order to
After processing Article 2 logout at stream calculation engine, further according to the first result and the second result
Being calculated event handling result, it is achieved the condition across a plurality of record of event calculates, its result of calculation is relative to simply
The accuracy of the result calculating wall scroll logout is greatly promoted, and solves the condition that cannot realize across a plurality of event and calculates,
Cause a plurality of inaccurate technical problem of event handling result that there is relatedness.
It should be noted that in the embodiment of the present invention, each result of calculation of stream calculation engine stores in data base,
Specifically, such as the first result, the second result and event handling result in above-mentioned, that is to say, above-mentioned
One result had both been stored in locally completeness memory block, also was stored in data base.
In the prior art, stream calculation is pressed bar and is processed event, is only applicable to cumulative type data and processes, it is impossible to realizes a plurality of
The calculating of record index of correlation, such as, a complete flowing water is made up of n (>=1) bar flowing water, and certificate consumes 30 yuan, existing
Gold consumption 100 yuan, calculates marketing income, and marketing income is that the cash that certificate brings is consumed with Stored Value;Above marketing is received
Benefit is 100 yuan (cashes);If consumed without certificate, then marketing income is 0, brings because not having certificate consumption the most not market
Income.So only two records all enter after stream calculation processes and just can calculate marketing income.Scene is as follows, the
Article one, 100 yuan of flowing water of cash consumption, Article 2 flowing water certificate consumes 30 yuan, complete when Article 1 stream treatment in stream calculation
Cheng Hou, when Article 2 flowing water processes, it is impossible to determine whether there is cash consumption.
Specifically, before being not introduced into locally completeness:
In the T1 moment, " cash consumption 100 yuan " event is had to produce;
The T2 moment, marketing income was 0 yuan, because it does not has certificate to consume after stream calculation completes;
In the T3 moment, " certificate consumes 30 yuan " event is had to produce, but now cannot determine the cash consumption amount of money, the most true
Determine whether there is cash consumption, so cannot be carried out the calculating of marketing income in the T3 moment.
In the embodiment of the present invention, after introducing locally completeness memory block: because having had by the local full storage of bar,
So carry out event calculating obtaining the data that local is complete, i.e. locally completeness every time.And turned by full dose
Chemical conversion increment, carries out cumulative in data every time.
Detailed process is as follows:
In the T1 moment, there is " cash consumption 100 yuan " event to produce, process through stream calculation engine;
In the T2 moment, locally completeness memory block has its result of calculation;
In the T3 moment, there is " certificate consumes 30 yuan " event to produce, can be inquired this in locally completeness stores and hand over
Easy complete result;
In the T4 moment, marketing income 100 yuan can be calculated;
The condition realizing crossing over two events of " cash consumption 100 yuan " and " certificate consumes 30 yuan " calculates.
Preferably, after the first result being stored in locally completeness memory block, method also includes: judge
Whether there is the Article 2 logout being associated with Article 1 logout;Wherein, there is Article 2 thing judging
During part record, obtain Article 2 logout, process Article 2 logout by stream calculation engine.
In the present embodiment, after being calculated the first result, and being stored to locally completeness memory block,
Can first judge whether to there is also the record relevant to Article 1 logout i.e. Article 2 logout, if it does,
Then this logout is processed, and combine the first result and be calculated event handling result;If it does not,
Then immediately arrive at corresponding result.
Preferably, Article 2 logout, after obtaining the second result, method are being processed by stream calculation engine
Also include: the second result is stored in locally completeness memory block, wherein, from locally completeness memory block
Obtain the first result, and be calculated event handling result according to the first result and the second result and include:
Stream calculation engine obtains the first result and the second result from locally completeness memory block, and according at first
Reason result and the second result are calculated event handling result.
In the present embodiment, after being calculated the second result, also it is stored in locally completeness memory block,
When stream calculation engine calculates next time, from locally completeness memory block, directly obtain the first result and second process
As a result, then it is calculated event handling result by stream calculation engine.
Preferably, after being calculated event handling result according to the first result and the second result, method
Also include: event handling result is stored to locally completeness memory block.
Preferably, after being calculated event handling result according to the first result and the second result, method
Also include: judge whether the Article 3 event note being associated with Article 1 logout or Article 2 logout
Record;When judging to exist Article 3 logout, by stream calculation engine, Article 3 logout is processed,
Obtain the 3rd result, and be calculated final result according to the 3rd result and event handling result.
In the present embodiment, after being calculated event handling result, then judge whether to there is also and Article 1 time note
Record or the logout that is associated of Article 2 logout, terminate most if it does, calculate in conjunction with this logout
Really, if it does not exist, then using above-mentioned event handling result as final result.
The embodiment of the present invention additionally provides a kind of event processing apparatus based on stream calculation, and this device may be used for performing basis
The event-handling method based on stream calculation of inventive embodiments.Specifically, as in figure 2 it is shown, this device includes: first
Processing unit 10, memory element the 20, second processing unit 30 and the 3rd processing unit 40.
First processing unit 10, for processing Article 1 logout by stream calculation engine, obtains the first result.
Memory element 20 is for storing in locally completeness memory block by the first result, wherein, and locally completeness
Memory block is for storing the result of event.
Second processing unit 30, for processing Article 2 logout by stream calculation engine, obtains the second result,
Wherein, there is incidence relation between Article 2 logout and Article 1 logout.
3rd processing unit 40 is for obtaining the first result from locally completeness memory block, and processes according to first
Result and the second result are calculated event handling result.
In the embodiment of the present invention, there is incidence relation between Article 1 logout and Article 2 logout, therefore exist
During calculating, needing to combine two records and calculate, the final result obtained can accurately reflect out its verity.
In the present embodiment, process Article 1 logout and Article 2 logout successively by stream calculation engine.Wherein, exist
After processing Article 1 logout, the first result is stored in default locally completeness memory block, in order to
After processing Article 2 logout at stream calculation engine, further according to the first result and the second result
Being calculated event handling result, it is achieved the condition across a plurality of record of event calculates, its result of calculation is relative to simply
The accuracy of the result calculating wall scroll logout is greatly promoted, and solves the condition that cannot realize across a plurality of event and calculates,
Cause a plurality of inaccurate technical problem of event handling result that there is relatedness.
In the prior art, stream calculation is pressed bar and is processed event, is only applicable to cumulative type data and processes, it is impossible to realizes a plurality of
The calculating of record index of correlation, such as, a complete flowing water is made up of n (>=1) bar flowing water, and certificate consumes 30 yuan, existing
Gold consumption 100 yuan, calculates marketing income, and marketing income is that the cash that certificate brings is consumed with Stored Value;Above marketing is received
Benefit is 100 yuan (cashes);If consumed without certificate, then marketing income is 0, brings because not having certificate consumption the most not market
Income.So only two records all enter after stream calculation processes and just can calculate marketing income.Scene is as follows, the
Article one, 100 yuan of flowing water of cash consumption, Article 2 flowing water certificate consumes 30 yuan, complete when Article 1 stream treatment in stream calculation
Cheng Hou, when Article 2 flowing water processes, it is impossible to determine whether there is cash consumption.
Specifically, before being not introduced into locally completeness:
In the T1 moment, " cash consumption 100 yuan " event is had to produce;
The T2 moment, marketing income was 0 yuan, because it does not has certificate to consume after stream calculation completes;
In the T3 moment, " certificate consumes 30 yuan " event is had to produce, but now cannot determine the cash consumption amount of money, the most true
Determine whether there is cash consumption, so cannot be carried out the calculating of marketing income in the T3 moment.
In the embodiment of the present invention, after introducing locally completeness memory block: because having had by the local full storage of bar,
So carry out event calculating obtaining the data that local is complete, i.e. locally completeness every time.And turned by full dose
Chemical conversion increment, carries out cumulative in data every time.
Detailed process is as follows:
In the T1 moment, there is " cash consumption 100 yuan " event to produce, process through stream calculation engine;
In the T2 moment, locally completeness memory block has its result of calculation;
In the T3 moment, there is " certificate consumes 30 yuan " event to produce, can be inquired this in locally completeness stores and hand over
Easy complete result;
In the T4 moment, marketing income 100 yuan can be calculated;
The condition realizing crossing over two events of " cash consumption 100 yuan " and " certificate consumes 30 yuan " calculates.
Preferably, device also includes: the first judging unit, for the first result is being stored locally completeness
After in memory block, it may be judged whether there is the Article 2 logout being associated with Article 1 logout;Second processes
Unit, for when judging to exist Article 2 logout, obtains Article 2 logout, by stream calculation engine
Process Article 2 logout.
In the present embodiment, after being calculated the first result, and being stored to locally completeness memory block,
Can first judge whether to there is also the record relevant to Article 1 logout i.e. Article 2 logout, if it does,
Then this logout is processed, and combine the first result and be calculated event handling result;If it does not,
Then immediately arrive at corresponding result.
Preferably, memory element is additionally operable to processing Article 2 logout by stream calculation engine, obtains the second process
After result, the second result being stored in locally completeness memory block, wherein, the 3rd processing unit is additionally operable to
Stream calculation engine obtains the first result and the second result from locally completeness memory block, and according at first
Reason result and the second result are calculated event handling result.
In the present embodiment, after being calculated the second result, also it is stored in locally completeness memory block,
When stream calculation engine calculates next time, from locally completeness memory block, directly obtain the first result and second process
As a result, then it is calculated event handling result by stream calculation engine.
Preferably, memory element is additionally operable to be calculated event handling according to the first result and the second result
After result, event handling result is stored to locally completeness memory block.
Preferably, device also includes: the second judging unit, for according to the first result and the second result
After being calculated event handling result, it may be judged whether exist and Article 1 logout or Article 2 logout phase
The Article 3 logout of association;Fourth processing unit, for when judging to exist Article 3 logout, passes through
Article 3 logout is processed by stream calculation engine, obtains the 3rd result, and according to the 3rd result
It is calculated final result with event handling result.
In the present embodiment, after being calculated event handling result, then judge whether to there is also and Article 1 time note
Record or the logout that is associated of Article 2 logout, terminate most if it does, calculate in conjunction with this logout
Really, if it does not exist, then using above-mentioned event handling result as final result.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other
Mode realize.Wherein, device embodiment described above is only schematically, the division of the most described unit,
Can be that a kind of logic function divides, actual can have other dividing mode, the most multiple unit or assembly when realizing
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, institute
The coupling each other shown or discuss or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to
On multiple unit.Some or all of unit therein can be selected according to the actual needs to realize the present embodiment scheme
Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use,
Can be stored in a computer read/write memory medium.Based on such understanding, technical scheme essence
On the part that in other words prior art contributed or this technical scheme completely or partially can be with software product
Form embodies, and this computer software product is stored in a storage medium, including some instructions with so that one
Platform computer equipment (can be for personal computer, server or the network equipment etc.) performs each embodiment institute of the present invention
State all or part of step of method.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD
Etc. the various media that can store program code.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improve and profit
Decorations also should be regarded as protection scope of the present invention.
Claims (10)
1. an event-handling method based on stream calculation, it is characterised in that including:
Process Article 1 logout by stream calculation engine, obtain the first result;
Storing in locally completeness memory block by described first result, wherein, described locally completeness is deposited
Storage area is for storing the result of event;
Process Article 2 logout by described stream calculation engine, obtain the second result, wherein, described
Incidence relation is there is between Article 2 logout and described Article 1 logout;
From described locally completeness memory block, obtain described first result, and process knot according to described first
Fruit and described second result are calculated event handling result.
Method the most according to claim 1, it is characterised in that local is complete described first result being stored
After in whole property memory block, described method also includes:
Judge whether the described Article 2 logout being associated with described Article 1 logout;
Wherein, when judging to exist described Article 2 logout, obtain described Article 2 logout, logical
Cross stream calculation engine and process described Article 2 logout.
Method the most according to claim 1, it is characterised in that remember processing Article 2 event by stream calculation engine
Record, after obtaining the second result, described method also includes:
Described second result is stored in locally completeness memory block,
Wherein, from described locally completeness memory block, obtain described first result, and according to described first
Result and described second result are calculated event handling result and include: described stream calculation engine is from institute
State and locally completeness memory block obtains described first result and the second result, and according to described first
Result and described second result are calculated event handling result.
Method the most according to claim 1, it is characterised in that according to described first result and described second
After result is calculated event handling result, described method also includes:
Described event handling result is stored to described locally completeness memory block.
Method the most according to claim 1, it is characterised in that according to described first result and described second
After result is calculated event handling result, described method also includes:
Judge whether the Article 3 thing being associated with described Article 1 logout or Article 2 logout
Part record;
When judging to exist described Article 3 logout, by described stream calculation engine to described Article 3 thing
Part record processes, and obtains the 3rd result, and according to described 3rd result and described event at
Reason result is calculated final result.
6. an event processing apparatus based on stream calculation, it is characterised in that including:
First processing unit, for processing Article 1 logout by stream calculation engine, obtains the first process knot
Really;
Memory element, for described first result is stored in locally completeness memory block, wherein, institute
State locally completeness memory block for storing the result of event;
Second processing unit, for processing Article 2 logout by described stream calculation engine, obtains at second
, wherein, between described Article 2 logout and described Article 1 logout, there is incidence relation in reason result;
3rd processing unit, for obtaining described first result from described locally completeness memory block, and
It is calculated event handling result according to described first result and described second result.
Device the most according to claim 6, it is characterised in that described device also includes:
First judging unit, is used for after described first result being stored in locally completeness memory block,
Judge whether the described Article 2 logout being associated with described Article 1 logout;
Described second processing unit, for when judging to exist described Article 2 logout, obtains described the
Article two, logout, processes described Article 2 logout by stream calculation engine.
Device the most according to claim 6, it is characterised in that
Described memory element is additionally operable to processing Article 2 logout by stream calculation engine, obtains the second process
After result, described second result is stored in locally completeness memory block,
Wherein, described 3rd processing unit is additionally operable to described stream calculation engine from described locally completeness memory block
Obtain described first result and the second result, and according to described first result and described second at
Reason result is calculated event handling result.
Device the most according to claim 6, it is characterised in that
Described memory element is additionally operable to be calculated according to described first result and described second result
After event handling result, described event handling result is stored to described locally completeness memory block.
Device the most according to claim 6, it is characterised in that described device also includes:
Second judging unit, for being calculated according to described first result and described second result
After event handling result, it may be judged whether exist and described Article 1 logout or Article 2 logout phase
The Article 3 logout of association;
Fourth processing unit, for when judging to exist described Article 3 logout, by described stream calculation
Described Article 3 logout is processed by engine, obtains the 3rd result, and according at the described 3rd
Reason result and described event handling result are calculated final result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610296648.7A CN106021326A (en) | 2016-05-03 | 2016-05-03 | A stream-computing event processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610296648.7A CN106021326A (en) | 2016-05-03 | 2016-05-03 | A stream-computing event processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106021326A true CN106021326A (en) | 2016-10-12 |
Family
ID=57082288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610296648.7A Pending CN106021326A (en) | 2016-05-03 | 2016-05-03 | A stream-computing event processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106021326A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649119A (en) * | 2016-12-28 | 2017-05-10 | 深圳市华傲数据技术有限公司 | Stream computing engine testing method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103282880A (en) * | 2011-12-26 | 2013-09-04 | 华为技术有限公司 | Stream processing method and apparatus |
CN104854587A (en) * | 2012-12-20 | 2015-08-19 | 洛吉奇布洛克斯公司 | Maintenance of active database queries |
-
2016
- 2016-05-03 CN CN201610296648.7A patent/CN106021326A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103282880A (en) * | 2011-12-26 | 2013-09-04 | 华为技术有限公司 | Stream processing method and apparatus |
CN104854587A (en) * | 2012-12-20 | 2015-08-19 | 洛吉奇布洛克斯公司 | Maintenance of active database queries |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649119A (en) * | 2016-12-28 | 2017-05-10 | 深圳市华傲数据技术有限公司 | Stream computing engine testing method and device |
CN106649119B (en) * | 2016-12-28 | 2019-09-20 | 深圳市华傲数据技术有限公司 | The test method and device of stream calculation engine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103748579B (en) | Data are handled in MapReduce frame | |
CN110457577B (en) | Data processing method, device, equipment and computer storage medium | |
CN108615119A (en) | A kind of recognition methods of abnormal user and equipment | |
CN107222566A (en) | Information-pushing method, device and server | |
CN110390584A (en) | A kind of recognition methods of abnormal user, identification device and readable storage medium storing program for executing | |
CN103605714B (en) | The recognition methods of website abnormal data and device | |
US10521437B2 (en) | Resource portfolio processing method, device, apparatus and computer storage medium | |
CN101710320A (en) | Statistical index data processing method and device | |
CN110197404A (en) | The personalized long-tail Method of Commodity Recommendation and system of popularity deviation can be reduced | |
CN110428139A (en) | The information forecasting method and device propagated based on label | |
CN110471821A (en) | Abnormal alteration detection method, server and computer readable storage medium | |
CN110390585A (en) | A kind of method and device identifying exception object | |
CN109255000A (en) | A kind of the dimension management method and device of label data | |
CN109918678A (en) | A kind of field meanings recognition methods and device | |
CN105956122A (en) | Object attribute determining method and device | |
CN109598542A (en) | A kind of put-on method, device and the electronic equipment of equity of marketing | |
CN105359172A (en) | Calculating a probability of a business being delinquent | |
CN107330709B (en) | Method and device for determining target object | |
CN104077288B (en) | Web page contents recommend method and web page contents recommendation apparatus | |
CN114119068A (en) | Intelligent analysis method and management platform for pharmacy enterprise WeChat customer group | |
CN104751234B (en) | A kind of prediction technique and device of user's assets | |
CN110909129B (en) | Abnormal complaint event identification method and device | |
CN106021326A (en) | A stream-computing event processing method and device | |
CN106709755A (en) | Method of predicting user frequency and apparatus thereof | |
CN114723554B (en) | Abnormal account identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Wuxi District of Jiangsu city in Wuxi Province, Zhenze Road No. 18, Wuxi (National) Software Park Dolphin C seat 2, 3 floor Applicant after: Wuxi private online Polytron Technologies Inc Address before: Wuxi District of Jiangsu city in Wuxi Province, Zhenze Road No. 18, Wuxi (National) Software Park Dolphin C seat 2, 3 floor Applicant before: Wuxi Yazuo Online Technology Development Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |