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)); }
public Lazy <WAHBitArray> BuildExecutionPlan(string query, bool freeCache) { lock (_gate) { if (!_isAlive) { return(new Lazy <WAHBitArray>(() => new WAHBitArray())); } UpdateToken(); return(_hoot.BuildExecutionPlan(query, freeCache)); } }