SkipTo() public method

Optimized implementation.
public SkipTo ( int target ) : bool
target int
return bool
示例#1
0
 public override int Advance(int target)
 {
     if (docs.SkipTo(target))
     {
         return(docID = docs.Doc);
     }
     else
     {
         return(docID = NO_MORE_DOCS);
     }
 }
示例#2
0
 public override int Advance(int target)
 {
     if (Docs.SkipTo(target))
     {
         return(DocID_Renamed = Docs.Doc());
     }
     else
     {
         return(DocID_Renamed = NO_MORE_DOCS);
     }
 }