internal Verify(TestCodecs outerInstance, SegmentInfo si, FieldData[] fields, Fields termsDict) { this.outerInstance = outerInstance; this.fields = fields; this.termsDict = termsDict; this.si = si; }
public TermData(TestCodecs outerInstance, string text, int[] docs, PositionData[][] positions) { this.outerInstance = outerInstance; this.text = new BytesRef(text); this.text2 = text; this.docs = docs; this.positions = positions; }
public FieldData(TestCodecs outerInstance, string name, FieldInfos.Builder fieldInfos, TermData[] terms, bool omitTF, bool storePayloads) { this.outerInstance = outerInstance; this.omitTF = omitTF; this.storePayloads = storePayloads; // TODO: change this test to use all three fieldInfo = fieldInfos.AddOrUpdate(name, new IndexableFieldTypeAnonymousInnerClassHelper(this, omitTF)); if (storePayloads) { fieldInfo.SetStorePayloads(); } this.terms = terms; for (int i = 0; i < terms.Length; i++) { terms[i].field = this; } Array.Sort(terms); }
internal PositionData(TestCodecs outerInstance, int pos, BytesRef payload) { this.outerInstance = outerInstance; this.pos = pos; this.payload = payload; }