public override bool SkipTo(int target)
            {
                if (!spans.SkipTo(target))
                {
                    return(false);
                }

                return(spans.End() <= Enclosing_Instance.end || Next());
            }
Beispiel #2
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);
 }
 public override bool SkipTo(int target)
 {
     return(Adjust(spans.SkipTo(target)));
 }