Exemplo n.º 1
0
 private bool InitSpanQueue(int target)
 {
     queue = new SpanQueue(outerInstance, outerInstance.clauses.Count);
     foreach (var clause in outerInstance.clauses)
     {
         Spans spans = clause.GetSpans(context, acceptDocs, termContexts);
         cost += spans.GetCost();
         if (((target == -1) && spans.Next()) || ((target != -1) && spans.SkipTo(target)))
         {
             queue.Add(spans);
         }
     }
     return(queue.Count != 0);
 }
Exemplo n.º 2
0
 public override long GetCost()
 {
     return(includeSpans.GetCost());
 }
Exemplo n.º 3
0
 public override long GetCost()
 {
     return(m_spans.GetCost());
 }