20 namespace Lucene.Net.Index
34 protected int internalDoc = -1;
41 public void Seek(
Term term)
49 throw new NotSupportedException();
55 throw new NotSupportedException();
60 get {
return internalDoc; }
70 return SkipTo(internalDoc + 1);
73 public int Read(
int[] docs,
int[] freqs)
75 int length = docs.Length;
77 while (i < length && internalDoc < maxDoc)
79 if (!IsDeleted(internalDoc))
81 docs[i] = internalDoc;
90 public bool SkipTo(
int target)
93 while (internalDoc < maxDoc)
95 if (!IsDeleted(internalDoc))
109 public void Dispose()
114 protected abstract void Dispose(
bool disposing);
116 public abstract bool IsDeleted(
int doc);