Example #1
0
 internal void Update(BufferedDeletes in_Renamed)
 {
     numTerms += in_Renamed.numTerms;
     SupportClass.CollectionsSupport.PutAll(in_Renamed.terms, terms);
     SupportClass.CollectionsSupport.PutAll(in_Renamed.queries, queries);
     SupportClass.CollectionsSupport.AddAll(in_Renamed.docIDs, docIDs);
     in_Renamed.terms.Clear();
     in_Renamed.numTerms = 0;
     in_Renamed.queries.Clear();
     in_Renamed.docIDs.Clear();
 }
Example #2
0
        internal virtual void  Update(BufferedDeletes @in)
        {
            numTerms  += @in.numTerms;
            bytesUsed += @in.bytesUsed;
            foreach (KeyValuePair <Term, Num> term in @in.terms)
            {
                terms[term.Key] = term.Value;
            }
            foreach (KeyValuePair <Query, int> term in @in.queries)
            {
                queries[term.Key] = term.Value;
            }

            docIDs.AddRange(@in.docIDs);
            @in.Clear();
        }
Example #3
0
        internal virtual void  Update(BufferedDeletes in_Renamed)
        {
            numTerms  += in_Renamed.numTerms;
            bytesUsed += in_Renamed.bytesUsed;

            foreach (KeyValuePair <Term, Num> kv in in_Renamed.terms)
            {
                terms[kv.Key] = in_Renamed.terms[kv.Key];
            }

            foreach (KeyValuePair <Query, int> kv in in_Renamed.queries)
            {
                queries[kv.Key] = in_Renamed.queries[kv.Key];
            }

            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();
        }
		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();
		}
Example #6
0
        internal virtual void Update(BufferedDeletes @in)
        {
            numTerms += @in.numTerms;
            bytesUsed += @in.bytesUsed;
            foreach (KeyValuePair<Term, Num> term in @in.terms)
            {
                terms[term.Key] = term.Value;
            }
            foreach (KeyValuePair<Query, int> term in @in.queries)
            {
                queries[term.Key] = term.Value;
            }

            docIDs.AddRange(@in.docIDs);
            @in.Clear();
        }
Example #7
0
		internal virtual void  Update(BufferedDeletes in_Renamed)
		{
			numTerms += in_Renamed.numTerms;
			bytesUsed += in_Renamed.bytesUsed;
                        
            foreach(KeyValuePair<Term,Num> kv in in_Renamed.terms)
            {
                terms[kv.Key] = in_Renamed.terms[kv.Key];
            }
			
			foreach (KeyValuePair<Query, int> kv in in_Renamed.queries)
            {
                queries[kv.Key] = in_Renamed.queries[kv.Key];
            }
			
			docIDs.AddRange(in_Renamed.docIDs);
			in_Renamed.Clear();
		}
 internal void Update(BufferedDeletes in_Renamed)
 {
     numTerms += in_Renamed.numTerms;
     SupportClass.CollectionsSupport.PutAll(in_Renamed.terms, terms);
     SupportClass.CollectionsSupport.PutAll(in_Renamed.queries, queries);
     SupportClass.CollectionsSupport.AddAll(in_Renamed.docIDs, docIDs);
     in_Renamed.terms.Clear();
     in_Renamed.numTerms = 0;
     in_Renamed.queries.Clear();
     in_Renamed.docIDs.Clear();
 }