public IntKeyedDataset(IntKeyedDataset <TKey, TPayload> intDataset) : this(intDataset._shift) { _shardingCardinality = intDataset.ShardingCardinality; _shift = intDataset._shift; _keys = intDataset._keys; _values = intDataset._values; }
public static IntKeyedDataset <int, int>[] Splitter(this IntKeyedDataset <int, int> source, IMoveDescriptor descriptor) { IntKeyedDataset <int, int>[] outputs = new IntKeyedDataset <int, int> [2]; outputs[0] = new IntKeyedDataset <int, int>(source._shift + 100); outputs[1] = new IntKeyedDataset <int, int>(source._shift + 200); return(outputs); }
public void ProcessIntKeyedDataset(IntKeyedDataset <TKey, TPayload> source) { Console.WriteLine("Shift value is: " + source._shift); }
public static IntKeyedDataset <int, int> ShiftUp(this IntKeyedDataset <int, int> source, int upAmount) { return(new IntKeyedDataset <int, int>(source._shift + upAmount)); }
public static IntKeyedDataset <int, int> BinaryShiftUp(this IntKeyedDataset <int, int> source, IntKeyedDataset <int, int> inputDS, int upAmount) { return(new IntKeyedDataset <int, int>(source._shift + inputDS._shift + upAmount)); }