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 ofBEvents into a stream ofDirectlyFollowsRelations. 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 SummaryConstructors Constructor Description InfiniteSizeDirectlyFollowsMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectlyFollowsRelationingest(BEvent event)This abstract method is what each derive class is expected to implement.- 
Methods inherited from class beamline.models.algorithms.StreamMiningAlgorithmflatMap, getProcessedEvents, open, process
 
- 
 
- 
- 
- 
Method Detail- 
ingestpublic DirectlyFollowsRelation ingest(BEvent event) Description copied from class:StreamMiningAlgorithmThis 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:
- ingestin class- StreamMiningAlgorithm<DirectlyFollowsRelation>
- Parameters:
- event- the new event being observed
- Returns:
- the result of the mining of the event, or nullif nothing should go through the rest of the pipeline
 
 
- 
 
-