public class RecordPairComparator extends TypePairComparator<Record,Record>
TypePairComparator interface for Pact Records. The equality is established on a set of
key fields. The indices of the key fields may be different on the reference and candidate side.| Constructor and Description |
|---|
RecordPairComparator(int[] keyFieldsReference,
int[] keyFieldsCandidate,
Class<? extends Key<?>>[] keyTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareToReference(Record candidate) |
boolean |
equalToReference(Record candidate) |
void |
setReference(Record reference) |
public void setReference(Record reference)
setReference in class TypePairComparator<Record,Record>public boolean equalToReference(Record candidate)
equalToReference in class TypePairComparator<Record,Record>public int compareToReference(Record candidate)
compareToReference in class TypePairComparator<Record,Record>Copyright © 2014 The Apache Software Foundation. All rights reserved.