Factory for NEAR queries
Inheritance: ComposedQuery, IDistanceSubQuery
Exemple #1
0
 protected virtual SrndQuery GetDistanceQuery(
     IEnumerable<SrndQuery> queries,
     bool infix,
     Token dToken,
     bool ordered)
 {
     DistanceQuery dq = new DistanceQuery(queries,
                                         infix,
                                         GetOpDistance(dToken.image),
                                         dToken.image,
                                         ordered);
     CheckDistanceSubQueries(dq, dToken.image);
     return dq;
 }
Exemple #2
0
 protected static void CheckDistanceSubQueries(DistanceQuery distq, string opName)
 {
     string m = distq.DistanceSubQueryNotAllowed();
     if (m != null)
     {
         throw new ParseException("Operator " + opName + ": " + m);
     }
 }