public class RecordDistance extends Object implements TypeDistance<eu.stratosphere.types.Record>
Record that returns unmatched values but allows a value from one bag to be
matched several times
against items from another bag.| Constructor and Description |
|---|
RecordDistance() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSimilarity(int index,
ValueSimilarity<?> similarity)
Adds a similarity for the given record index.
|
double |
getDistance(TypeConfig<eu.stratosphere.types.Record> typeConfig,
eu.stratosphere.types.Record expectedRecord,
eu.stratosphere.types.Record actualRecord)
Calculates the overall distance between the expected and actual record.
|
public void addSimilarity(int index,
ValueSimilarity<?> similarity)
index - similarity - public double getDistance(TypeConfig<eu.stratosphere.types.Record> typeConfig, eu.stratosphere.types.Record expectedRecord, eu.stratosphere.types.Record actualRecord)
getDistance in interface TypeDistance<eu.stratosphere.types.Record>Copyright © 2014. All rights reserved.