20 namespace Lucene.Net.Index
25 protected internal int[][] positions;
27 public static readonly
int[] EMPTY_TERM_POS =
new int[0];
31 this.offsets = offsets;
32 this.positions = positions;
49 if (index >= 0 && index < offsets.Length)
51 result = offsets[index];
60 public virtual int[] GetTermPositions(
int index)
62 int[] result = EMPTY_TERM_POS;
63 if (positions == null)
65 if (index >= 0 && index < positions.Length)
67 result = positions[index];