Example #1
0
 public override long Seek(BytesRef target)
 {
     //System.out.println("VGR: seek field=" + fieldInfo.name + " target=" + target);
     current = fstEnum.SeekFloor(target);
     //System.out.println("  got input=" + current.input + " output=" + current.output);
     return(current.Output);
 }
 public override long Seek(BytesRef target)
 {
     //System.out.println("VGR: seek field=" + fieldInfo.name + " target=" + target);
     current = fstEnum.SeekFloor(target);
     //System.out.println("  got input=" + current.input + " output=" + current.output);
     if (current.Output.HasValue)
     {
         return(current.Output.Value);
     }
     else
     {
         throw new NullReferenceException("_current.Output is null"); // LUCENENET NOTE: NullReferenceException would be thrown in Java, so doing it here
     }
 }
Example #3
0
 public override long?Seek(BytesRef target)
 {
     _current = _fstEnum.SeekFloor(target);
     return(_current.Output);
 }