Class PairwiseDetectorWorker<K extends AbstractModelTaskRawResult>
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.api.model.detection.DetectorWorker<K>
-
- uk.ac.warwick.dcs.sherlock.api.model.detection.PairwiseDetectorWorker<K>
-
- Direct Known Subclasses:
NGramDetector.NGramDetectorWorker
,VariableNameDetectorWorker
public abstract class PairwiseDetectorWorker<K extends AbstractModelTaskRawResult> extends DetectorWorker<K>
An extension of the basic worker for standard pairwise matching, implements the basic internal data structures
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelDataItem
file1
protected ModelDataItem
file2
protected K
result
-
Fields inherited from class uk.ac.warwick.dcs.sherlock.api.model.detection.DetectorWorker
parent
-
-
Constructor Summary
Constructors Constructor Description PairwiseDetectorWorker(IDetector parent, ModelDataItem file1Data, ModelDataItem file2Data)
Loads data into the worker
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getRawResult()
Gets the results of the worker execution, only minimal processing should be performed in this method-
Methods inherited from class uk.ac.warwick.dcs.sherlock.api.model.detection.DetectorWorker
execute
-
-
-
-
Field Detail
-
file1
protected ModelDataItem file1
-
file2
protected ModelDataItem file2
-
result
protected K extends AbstractModelTaskRawResult result
-
-
Constructor Detail
-
PairwiseDetectorWorker
public PairwiseDetectorWorker(IDetector parent, ModelDataItem file1Data, ModelDataItem file2Data)
Loads data into the worker- Parameters:
parent
- the owning detectorfile1Data
- preprocessed data for file 1file2Data
- preprocessed data for file 2
-
-
Method Detail
-
getRawResult
public K getRawResult()
Gets the results of the worker execution, only minimal processing should be performed in this method- Specified by:
getRawResult
in classDetectorWorker<K extends AbstractModelTaskRawResult>
- Returns:
- worker results
-
-