protected virtual string GetPointQuery(T value)
 {
     return(GetPointQuery(
                pointCmp != Comparison.Comparison_Unknown ? ComparisonUtil.ComparisonToString(pointCmp) : rand.Next(10) > 0 ? "=" : "!=",
                value));
 }
Ejemplo n.º 2
0
 protected string GetRangeQuery(Comparison lower, T min, Comparison upper, T max)
 {
     return(GetRangeQuery(ComparisonUtil.ComparisonToString(lower), min, ComparisonUtil.ComparisonToString(upper), max));
 }
 protected FieldQueryBuilder(string fieldName, T value, string point, T min, T max, string lower, string upper, int seed) :
     this(fieldName, value, ComparisonUtil.StringToComparison(point), min, max, ComparisonUtil.StringToComparison(lower), ComparisonUtil.StringToComparison(upper), seed)
 {
 }
Ejemplo n.º 4
0
 protected virtual string GetPointQuery(Comparison point, T value)
 {
     return(GetPointQuery(ComparisonUtil.ComparisonToString(point), value));
 }