Package beamline.models.algorithms
Class InfiniteSizeDirectlyFollowsMapper
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.api.common.functions.RichFlatMapFunction<BEvent,T>
-
- beamline.models.algorithms.StreamMiningAlgorithm<DirectlyFollowsRelation>
-
- beamline.models.algorithms.InfiniteSizeDirectlyFollowsMapper
-
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.functions.FlatMapFunction<BEvent,DirectlyFollowsRelation>
,org.apache.flink.api.common.functions.Function
,org.apache.flink.api.common.functions.RichFunction
public class InfiniteSizeDirectlyFollowsMapper extends StreamMiningAlgorithm<DirectlyFollowsRelation>
This mapper transforms a stream ofBEvent
s into a stream ofDirectlyFollowsRelation
s. It transforms each pair of consequent events appearing in the same case as a directly follows operator (generating an object with typeDirectlyFollowsRelation
).This mapper is called infinite because it's memory footprint will grow as the number of case ids grows as well.
- Author:
- Andrea Burattin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfiniteSizeDirectlyFollowsMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectlyFollowsRelation
ingest(BEvent event)
This abstract method is what each derive class is expected to implement.-
Methods inherited from class beamline.models.algorithms.StreamMiningAlgorithm
flatMap, getProcessedEvents, open, process
-
-
-
-
Method Detail
-
ingest
public DirectlyFollowsRelation ingest(BEvent event)
Description copied from class:StreamMiningAlgorithm
This abstract method is what each derive class is expected to implement. The argument of the method is the new observation and the returned value is the result of the mining.If this method returns value
null
, then the value is not moved forward into the pipeline.- Specified by:
ingest
in classStreamMiningAlgorithm<DirectlyFollowsRelation>
- Parameters:
event
- the new event being observed- Returns:
- the result of the mining of the event, or
null
if nothing should go through the rest of the pipeline
-
-