19 using System.Collections;
20 using System.Collections.Generic;
24 namespace Lucene.Net.Index
35 private int document = -1;
40 private string fieldName;
60 this.fieldName = field;
64 #region IEnumerator<TermFreqVector> Members
68 get {
return this.CurrentVector(); }
73 #region IDisposable Members
82 #region IEnumerator Members
84 object IEnumerator.Current
86 get {
return this.CurrentVector(); }
89 public bool MoveNext()
92 return this.document < this.reader.MaxDoc;
102 #region IEnumerable<TermFreqVector> Members
104 public IEnumerator<ITermFreqVector> GetEnumerator()
106 return (IEnumerator<ITermFreqVector>)
this;
111 #region IEnumerable Members
113 IEnumerator IEnumerable.GetEnumerator()
115 return (IEnumerator<ITermFreqVector>)
this;
124 private ITermFreqVector CurrentVector()
126 if (this.reader.IsDeleted(
this.document))
128 return this.emptyVector;
132 ITermFreqVector vector = this.reader.GetTermFreqVector(this.document, this.fieldName);
135 vector = this.emptyVector;
149 private string field;
151 private string[] emptyString =
new string[0];
153 private int[] emptyInt =
new int[0];
160 #region TermFreqVector Members
164 get {
return this.field; }
172 public string[] GetTerms()
174 return this.emptyString;
177 public int[] GetTermFrequencies()
179 return this.emptyInt;
182 public int IndexOf(
string term)
187 public int[] IndexesOf(
string[] terms,
int start,
int len)
189 return this.emptyInt;