Class OnlineSortedNeighborhoodMethod.Pass<T,K extends java.lang.Comparable<K>>
- java.lang.Object
-
- com.bakdata.dedupe.candidate_selection.online.OnlineSortedNeighborhoodMethod.Pass<T,K>
-
- Type Parameters:
T
- the type of the record.K
- the type of the sorting key.
- Enclosing class:
- OnlineSortedNeighborhoodMethod<T>
public static class OnlineSortedNeighborhoodMethod.Pass<T,K extends java.lang.Comparable<K>> extends java.lang.Object
Represents a pass over the dataset with a specific sorting key and window size.
-
-
Constructor Summary
Constructors Constructor Description Pass(@NonNull SortingKey<? super T,? extends K> sortingKey, int windowSize)
Creates a pass with the given sorting key and window size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull SortingKey<? super T,? extends K>
getSortingKey()
The sorting key to use in this pass.int
getWindowSize()
The window>= 2
.int
hashCode()
-
-
-
Constructor Detail
-
Pass
public Pass(@NonNull @NonNull SortingKey<? super T,? extends K> sortingKey, int windowSize)
Creates a pass with the given sorting key and window size.- Parameters:
sortingKey
- the sorting key to use in this pass.windowSize
- the window size>= 2
.- Throws:
java.lang.IllegalArgumentException
- ifwindowSize < 2
.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getSortingKey
@NonNull public @NonNull SortingKey<? super T,? extends K> getSortingKey()
The sorting key to use in this pass.
-
getWindowSize
public int getWindowSize()
The window>= 2
.
-
-