20 namespace Lucene.Net.Index
26 private System.String field;
27 private System.String term;
28 private int frequency;
30 private int[] positions;
41 this.frequency = frequency;
42 this.offsets = offsets;
43 this.positions = positions;
47 public virtual string Field
52 public virtual int Frequency
54 get {
return frequency; }
55 internal set { this.frequency = value; }
68 internal virtual void SetPositions(
int[] value)
73 public virtual int[] GetPositions()
78 public virtual string Term
83 public override bool Equals(System.Object o)
87 if (o == null || GetType() != o.GetType())
92 if (term != null?!term.Equals(that.term):that.term != null)
98 public override int GetHashCode()
100 return (term != null?term.GetHashCode():0);
103 public override System.String ToString()
105 return "TermVectorEntry{" +
"field='" + field +
'\'' +
", term='" + term +
'\'' +
", frequency=" + frequency +
'}';