23 namespace Lucene.Net.Index
40 internal int[] docIDs =
new int[1];
41 internal byte[] norms =
new byte[1];
56 this.perThread = perThread;
57 this.fieldInfo = fieldInfo;
58 docState = perThread.docState;
59 fieldState = docInverterPerField.fieldState;
62 internal override void Abort()
69 return String.CompareOrdinal(fieldInfo.name, other.fieldInfo.name);
72 internal override void Finish()
74 System.Diagnostics.Debug.Assert(docIDs.Length == norms.Length);
75 if (fieldInfo.isIndexed && !fieldInfo.omitNorms)
77 if (docIDs.Length <= upto)
79 System.Diagnostics.Debug.Assert(docIDs.Length == upto);
80 docIDs =
ArrayUtil.Grow(docIDs, 1 + upto);
83 float norm = docState.similarity.ComputeNorm(fieldInfo.name, fieldState);
85 docIDs[upto] = docState.docID;