Esempio n. 1
0
 public List <TDocument> Find <TDocument>(QueryPlanResult plan, int page, int pageSize, int skip, out int total) where TDocument : hOOt.Document
 {
     if (!_isAlive)
     {
         total = 0;
         return(new List <TDocument>());
     }
     UpdateLastUsedToken();
     return(_hoot.FindPagedDocuments <TDocument>(plan.BitArray, page, pageSize, skip, out total));
 }
Esempio n. 2
0
 public List <TDocument> Find <TDocument>(Lazy <WAHBitArray> plan, int page, int pageSize, int skip, out int total) where TDocument : hOOt.Document
 {
     lock (_gate)
     {
         if (!_isAlive)
         {
             total = 0;
             return(new List <TDocument>());
         }
         UpdateToken();
         return(_hoot.FindPagedDocuments <TDocument>(plan, page, pageSize, skip, out total));
     }
 }