Class ConcurrentMapper
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.AMapper
-
- org.aksw.limes.core.measures.mapper.temporal.simpleTemporal.SimpleTemporalMapper
-
- org.aksw.limes.core.measures.mapper.temporal.simpleTemporal.ConcurrentMapper
-
- All Implemented Interfaces:
IMapper,ISimpleTemporalMapper
public class ConcurrentMapper extends SimpleTemporalMapper
Implements the concurrent mapper class.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.aksw.limes.core.measures.mapper.IMapper
IMapper.Language
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ConcurrentMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMappinggetMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)Maps a set of source instances to their concurrent target instances.doublegetMappingSizeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated mapping size of the mapping computed by the mapper.StringgetName()Returns the name of the mapper.doublegetRuntimeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated time needed to obtain the mapping computed by the mapper.-
Methods inherited from class org.aksw.limes.core.measures.mapper.temporal.simpleTemporal.SimpleTemporalMapper
getFirstProperty, getSecondProperty, orderByBeginDate
-
Methods inherited from class org.aksw.limes.core.measures.mapper.AMapper
getUriToUriMapping, getUriToUriMapping, getValueToUriMap, setNo
-
-
-
-
Method Detail
-
getMapping
public AMapping getMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)
Maps a set of source instances to their concurrent target instances. The mapping contains 1-to-m relations. Each source instance takes as concurrent events the set of target instances with the same begin date property and the same machine id property of the source instance.- Parameters:
source- source cachetarget- target cachesourceVar- source property variabletargetVar- size property variableexpression- metric expression of link specificationthreshold- threshold of link specification- Returns:
- a mapping, the resulting mapping
-
getName
public String getName()
Returns the name of the mapper.- Returns:
- Mapper name as a string
-
getRuntimeApproximation
public double getRuntimeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated time needed to obtain the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizetheta- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated runtime, as double
-
getMappingSizeApproximation
public double getMappingSizeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated mapping size of the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizetheta- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated execution time, as double
-
-