public WhereQuery(ITupleStream <T> stream, IDictionary <string, object> values) : base(stream) { foreach (var val in values) { var dimname = val.Key; var value = val.Value; var dimension = stream.Dimensions.First(d => d.Name == dimname); var dimindex = stream.Dimensions.IndexOf(dimension); var intvalue = dimension.GetValue(value); this.values[dimindex] = intvalue; } }
public BaseQuery(ITupleStream <T> stream) : this(stream.Dimensions, stream.Tuples) { }