public override bool SkipTo(int target) { if (!positions.SkipTo(target)) { doc = System.Int32.MaxValue; return(false); } doc = positions.Doc(); freq = positions.Freq(); count = 0; position = positions.NextPosition(); count++; return(true); }
public override bool SkipTo(int target) { if (!internalPositions.SkipTo(target)) { internalDoc = int.MaxValue; return(false); } internalDoc = internalPositions.Doc; freq = internalPositions.Freq; count = 0; position = internalPositions.NextPosition(); count++; return(true); }
public virtual bool SkipTo(int target) { // are we already at the correct position? if (doc >= target) { return(true); } if (!positions.SkipTo(target)) { doc = System.Int32.MaxValue; return(false); } doc = positions.Doc(); freq = positions.Freq(); count = 0; position = positions.NextPosition(); count++; return(true); }