internal virtual void Update(BufferedDeletes in_Renamed) { numTerms += in_Renamed.numTerms; bytesUsed += in_Renamed.bytesUsed; System.Collections.ArrayList keys = new System.Collections.ArrayList(in_Renamed.terms.Keys); System.Collections.ArrayList values = new System.Collections.ArrayList(in_Renamed.terms.Values); for (int i = 0; i < keys.Count; i++) { terms[keys[i]] = values[i]; } keys = new System.Collections.ArrayList(in_Renamed.queries.Keys); values = new System.Collections.ArrayList(in_Renamed.queries.Values); for (int i = 0; i < keys.Count; i++) { queries[keys[i]] = values[i]; } docIDs.AddRange(in_Renamed.docIDs); in_Renamed.Clear(); }
internal virtual void Update(BufferedDeletes in_Renamed) { numTerms += in_Renamed.numTerms; bytesUsed += in_Renamed.bytesUsed; System.Collections.ArrayList keys = new System.Collections.ArrayList(in_Renamed.terms.Keys); System.Collections.ArrayList values = new System.Collections.ArrayList(in_Renamed.terms.Values); for (int i=0; i < keys.Count; i++) terms[keys[i]] = values[i]; keys = new System.Collections.ArrayList(in_Renamed.queries.Keys); values = new System.Collections.ArrayList(in_Renamed.queries.Values); for (int i=0; i < keys.Count; i++) queries[keys[i]] = values[i]; docIDs.AddRange(in_Renamed.docIDs); in_Renamed.Clear(); }