public class CEPOperatorUtils extends Object
PatternStream
.Constructor and Description |
---|
CEPOperatorUtils() |
Modifier and Type | Method and Description |
---|---|
static <IN,OUT> SingleOutputStreamOperator<OUT> |
createPatternStream(DataStream<IN> inputStream,
Pattern<IN,?> pattern,
EventComparator<IN> comparator,
PatternFlatSelectFunction<IN,OUT> selectFunction,
TypeInformation<OUT> outTypeInfo)
Creates a data stream containing results of
PatternFlatSelectFunction to fully matching event patterns. |
static <IN,OUT> SingleOutputStreamOperator<OUT> |
createPatternStream(DataStream<IN> inputStream,
Pattern<IN,?> pattern,
EventComparator<IN> comparator,
PatternSelectFunction<IN,OUT> selectFunction,
TypeInformation<OUT> outTypeInfo)
Creates a data stream containing results of
PatternSelectFunction to fully matching event patterns. |
static <IN,OUT1,OUT2> |
createTimeoutPatternStream(DataStream<IN> inputStream,
Pattern<IN,?> pattern,
EventComparator<IN> comparator,
PatternFlatSelectFunction<IN,OUT1> selectFunction,
TypeInformation<OUT1> outTypeInfo,
OutputTag<OUT2> outputTag,
PatternFlatTimeoutFunction<IN,OUT2> timeoutFunction)
Creates a data stream containing results of
PatternFlatSelectFunction to fully matching event patterns and
also timed out partially matched with applied PatternFlatTimeoutFunction as a sideoutput. |
static <IN,OUT1,OUT2> |
createTimeoutPatternStream(DataStream<IN> inputStream,
Pattern<IN,?> pattern,
EventComparator<IN> comparator,
PatternSelectFunction<IN,OUT1> selectFunction,
TypeInformation<OUT1> outTypeInfo,
OutputTag<OUT2> outputTag,
PatternTimeoutFunction<IN,OUT2> timeoutFunction)
Creates a data stream containing results of
PatternSelectFunction to fully matching event patterns and
also timed out partially matched with applied PatternTimeoutFunction as a sideoutput. |
public static <IN,OUT> SingleOutputStreamOperator<OUT> createPatternStream(DataStream<IN> inputStream, Pattern<IN,?> pattern, EventComparator<IN> comparator, PatternSelectFunction<IN,OUT> selectFunction, TypeInformation<OUT> outTypeInfo)
PatternSelectFunction
to fully matching event patterns.IN
- type of input eventsOUT
- type of output eventsinputStream
- stream of input eventspattern
- pattern to be search for in the streamselectFunction
- function to be applied to matching event sequencesoutTypeInfo
- output TypeInformation of selectFunctionPatternSelectFunction
public static <IN,OUT> SingleOutputStreamOperator<OUT> createPatternStream(DataStream<IN> inputStream, Pattern<IN,?> pattern, EventComparator<IN> comparator, PatternFlatSelectFunction<IN,OUT> selectFunction, TypeInformation<OUT> outTypeInfo)
PatternFlatSelectFunction
to fully matching event patterns.IN
- type of input eventsOUT
- type of output eventsinputStream
- stream of input eventspattern
- pattern to be search for in the streamselectFunction
- function to be applied to matching event sequencesoutTypeInfo
- output TypeInformation of selectFunctionPatternFlatSelectFunction
public static <IN,OUT1,OUT2> SingleOutputStreamOperator<OUT1> createTimeoutPatternStream(DataStream<IN> inputStream, Pattern<IN,?> pattern, EventComparator<IN> comparator, PatternFlatSelectFunction<IN,OUT1> selectFunction, TypeInformation<OUT1> outTypeInfo, OutputTag<OUT2> outputTag, PatternFlatTimeoutFunction<IN,OUT2> timeoutFunction)
PatternFlatSelectFunction
to fully matching event patterns and
also timed out partially matched with applied PatternFlatTimeoutFunction
as a sideoutput.IN
- type of input eventsOUT1
- type of fully matched eventsOUT2
- type of timed out eventsinputStream
- stream of input eventspattern
- pattern to be search for in the streamselectFunction
- function to be applied to matching event sequencesoutTypeInfo
- output TypeInformation of selectFunctionoutputTag
- OutputTag
for a side-output with timed out matchestimeoutFunction
- function to be applied to timed out event sequencesPatternFlatSelectFunction
that
contains timed out patterns with applied PatternFlatTimeoutFunction
as side-outputpublic static <IN,OUT1,OUT2> SingleOutputStreamOperator<OUT1> createTimeoutPatternStream(DataStream<IN> inputStream, Pattern<IN,?> pattern, EventComparator<IN> comparator, PatternSelectFunction<IN,OUT1> selectFunction, TypeInformation<OUT1> outTypeInfo, OutputTag<OUT2> outputTag, PatternTimeoutFunction<IN,OUT2> timeoutFunction)
PatternSelectFunction
to fully matching event patterns and
also timed out partially matched with applied PatternTimeoutFunction
as a sideoutput.IN
- type of input eventsOUT1
- type of fully matched eventsOUT2
- type of timed out eventsinputStream
- stream of input eventspattern
- pattern to be search for in the streamselectFunction
- function to be applied to matching event sequencesoutTypeInfo
- output TypeInformation of selectFunctionoutputTag
- OutputTag
for a side-output with timed out matchestimeoutFunction
- function to be applied to timed out event sequencesPatternSelectFunction
that
contains timed out patterns with applied PatternTimeoutFunction
as side-outputCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.