Beispiel #1
0
 private bool InitSpanQueue(int target)
 {
     queue = new SpanQueue(enclosingInstance, Enclosing_Instance.clauses.Count);
     System.Collections.Generic.IEnumerator <SpanQuery> i = Enclosing_Instance.clauses.GetEnumerator();
     while (i.MoveNext())
     {
         Spans spans = i.Current.GetSpans(reader);
         if (((target == -1) && spans.Next()) || ((target != -1) && spans.SkipTo(target)))
         {
             queue.Add(spans);
         }
     }
     return(queue.Size() != 0);
 }
Beispiel #2
0
 private bool InitSpanQueue(int target)
 {
     queue = new SpanQueue(outerInstance.clauses.Count);
     foreach (var clause in outerInstance.clauses)
     {
         Spans spans = clause.GetSpans(context, acceptDocs, termContexts);
         cost += spans.GetCost();
         if (((target == -1) && spans.MoveNext()) || ((target != -1) && spans.SkipTo(target)))
         {
             queue.Add(spans);
         }
     }
     return(queue.Count != 0);
 }
Beispiel #3
0
            private bool InitSpanQueue(int target)
            {
                queue = new SpanQueue(outerInstance, outerInstance.clauses.Count);
                IEnumerator <SpanQuery> i = outerInstance.clauses.GetEnumerator();

                while (i.MoveNext())
                {
                    Spans spans = i.Current.GetSpans(context, acceptDocs, termContexts);
                    cost += spans.GetCost();
                    if (((target == -1) && spans.Next()) || ((target != -1) && spans.SkipTo(target)))
                    {
                        queue.Add(spans);
                    }
                }
                return(queue.Count != 0);
            }