[ 
https://issues.apache.org/jira/browse/FLINK-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121591#comment-16121591
 ] 

ASF GitHub Bot commented on FLINK-6244:
---------------------------------------

Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4320#discussion_r132445880
  
    --- Diff: 
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/PatternStream.java 
---
    @@ -107,13 +113,54 @@
         *         function.
         */
        public <R> SingleOutputStreamOperator<R> select(final 
PatternSelectFunction<T, R> patternSelectFunction, TypeInformation<R> 
outTypeInfo) {
    -           SingleOutputStreamOperator<Map<String, List<T>>> patternStream =
    -                           
CEPOperatorUtils.createPatternStream(inputStream, pattern);
    +           return CEPOperatorUtils.createPatternStream(inputStream, 
pattern, clean(patternSelectFunction), outTypeInfo);
    +   }
    +
    +   /**
    +    * Applies a select function to the detected pattern sequence. For each 
pattern sequence the
    +    * provided {@link PatternSelectFunction} is called. The pattern select 
function can produce
    +    * exactly one resulting element.
    +    *
    +    * <p>Applies a timeout function to a partial pattern sequence which 
has timed out. For each
    +    * partial pattern sequence the provided {@link PatternTimeoutFunction} 
is called. The pattern
    +    * timeout function can produce exactly one resulting element.
    +    *
    +    * <p>You can get the stream of late data using
    --- End diff --
    
    Maybe something like "You can get the stream of timed-out data resulting 
from the {@link PatternTimeoutFunction} using ..."


> Emit timeouted Patterns as Side Output
> --------------------------------------
>
>                 Key: FLINK-6244
>                 URL: https://issues.apache.org/jira/browse/FLINK-6244
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>    Affects Versions: 1.3.0
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>             Fix For: 1.4.0
>
>
> Now that we have SideOuputs I think timeouted patterns should be emitted into 
> them rather than producing a stream of `Either`



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to