예제 #1
0
        public QueryPlan BuildExecutionPlan(ParsedQuery parsedQuery, bool freeCache)
        {
            if (!_isAlive)
            {
                return(new QueryPlan(() => new WAHBitArray()));
            }
            UpdateLastUsedToken();
            Func <WAHBitArray> plan = _hoot.BuildExecutionPlan(parsedQuery.Full, freeCache);

            return(new QueryPlan(plan));
        }
예제 #2
0
 public Lazy <WAHBitArray> BuildExecutionPlan(string query, bool freeCache)
 {
     lock (_gate)
     {
         if (!_isAlive)
         {
             return(new Lazy <WAHBitArray>(() => new WAHBitArray()));
         }
         UpdateToken();
         return(_hoot.BuildExecutionPlan(query, freeCache));
     }
 }