2 instantiations of Pair
Microsoft.ML.Data (2)
Transforms\InvertHashUtils.cs (2)
283
pairSet.Add(new
Pair
(key, pairSet.Count));
299
pairSet.Add(new
Pair
(dst, pairSet.Count));
16 references to Pair
Microsoft.ML.Data (16)
Transforms\InvertHashUtils.cs (16)
125
private sealed class PairEqualityComparer : IEqualityComparer<
Pair
>
134
public bool Equals(
Pair
x,
Pair
y)
139
public int GetHashCode(
Pair
obj)
153
private readonly Dictionary<int, HashSet<
Pair
>> _slotToValueSet;
154
private readonly IEqualityComparer<
Pair
> _comparer;
182
_slotToValueSet = new Dictionary<int, HashSet<
Pair
>>();
186
private ReadOnlyMemory<char> Textify(ref StringBuilder sb, ref StringBuilder temp, ref char[] cbuffer, ref
Pair
[] buffer, HashSet<
Pair
> pairs)
208
Array.Sort(buffer, 0, count, Comparer<
Pair
>.Create((x, y) => x.Order - y.Order));
216
var
pair = buffer[i];
235
Pair
[] pairs = null;
274
HashSet<
Pair
> pairSet;
281
pairSet = _slotToValueSet[dstSlot] = new HashSet<
Pair
>(_comparer);
289
HashSet<
Pair
> pairSet;
296
pairSet = _slotToValueSet[dstSlot] = new HashSet<
Pair
>(_comparer);