shuai-xu commented on a change in pull request #11168: [FLINK-16140] [docs-zh] 
Translate Event Processing (CEP) page into Chinese
URL: https://github.com/apache/flink/pull/11168#discussion_r387435614
 
 

 ##########
 File path: docs/dev/libs/cep.zh.md
 ##########
 @@ -1509,18 +1466,17 @@ class MyPatternProcessFunction<IN, OUT> extends 
PatternProcessFunction<IN, OUT>
 }
 {% endhighlight %}
 
-The `PatternProcessFunction` gives access to a `Context` object. Thanks to it, 
one can access time related
-characteristics such as `currentProcessingTime` or `timestamp` of current 
match (which is the timestamp of the last element assigned to the match).
-For more info see [Time context](#time-context).
-Through this context one can also emit results to a [side-output]({{ 
site.baseurl }}/dev/stream/side_output.html).
+`PatternProcessFunction`可以访问`Context`对象。有了它之后,你可以访问时间属性比如`currentProcessingTime`或者当前匹配的`timestamp`
+(最新分配到匹配上的事件的时间戳).
+更多信息可以看[时间上下文](#时间上下文)。
+通过这个上下文也可以将结果输出到[侧输出]({{ site.baseurl }}/zh/dev/stream/side_output.html).
 
 
-#### Handling Timed Out Partial Patterns
+#### 处理超时的部分匹配
 
-Whenever a pattern has a window length attached via the `within` keyword, it 
is possible that partial event sequences
-are discarded because they exceed the window length. To act upon a timed out 
partial match one can use `TimedOutPartialMatchHandler` interface.
-The interface is supposed to be used in a mixin style. This mean you can 
additionally implement this interface with your `PatternProcessFunction`.
-The `TimedOutPartialMatchHandler` provides the additional 
`processTimedOutMatch` method which will be called for every timed out partial 
match.
+当一个模式上通过`within`加上窗口长度后,部分匹配的事件序列就可能因为超过窗口长度而被丢弃。可以使用`TimedOutPartialMatchHandler`接口
+来处理超时的部分匹配。这个接口可以和其它的混合使用。也就是说你可以在自己的`PatternProcessFunction`里另外实现这个接口。
+`TimedOutPartialMatchHandler`提供了另外的`processTimedOutMatch`方法,这个方法对每个超时的部分匹配都对调用。
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to