T
- Type of the eventspublic class PatternStream<T> extends Object
NFA
. In order to process the detected sequences, the user
has to specify a PatternSelectFunction
or a PatternFlatSelectFunction
.Modifier and Type | Method and Description |
---|---|
<R> DataStream<R> |
flatSelect(PatternFlatSelectFunction<T,R> patternFlatSelectFunction)
Applies a flat select function to the detected pattern sequence.
|
<R> DataStream<R> |
select(PatternSelectFunction<T,R> patternSelectFunction)
Applies a select function to the detected pattern sequence.
|
public <R> DataStream<R> select(PatternSelectFunction<T,R> patternSelectFunction)
PatternSelectFunction
is called. The pattern select function can produce
exactly one resulting element.R
- Type of the resulting elementspatternSelectFunction
- The pattern select function which is called for each detected
pattern sequence.DataStream
which contains the resulting elements from the pattern select
function.public <R> DataStream<R> flatSelect(PatternFlatSelectFunction<T,R> patternFlatSelectFunction)
PatternFlatSelectFunction
is called. The pattern flat select function
can produce an arbitrary number of resulting elements.R
- Typ of the resulting elementspatternFlatSelectFunction
- The pattern flat select function which is called for each
detected pattern sequence.DataStream
which contains the resulting elements from the pattern flat select
function.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.