Esempio n. 1
0
 /// <summary>Called the first time next() or skipTo() is called to
 /// initialize <c>scorerDocQueue</c>.
 /// </summary>
 private void  InitScorerDocQueue(IState state)
 {
     scorerDocQueue = new ScorerDocQueue(nrScorers);
     foreach (Scorer se in subScorers)
     {
         if (se.NextDoc(state) != NO_MORE_DOCS)
         {
             // doc() method will be used in scorerDocQueue.
             scorerDocQueue.Insert(se);
         }
     }
 }
Esempio n. 2
0
 /// <summary>Called the first time next() or skipTo() is called to
 /// initialize <code>scorerDocQueue</code>.
 /// </summary>
 private void  InitScorerDocQueue()
 {
     System.Collections.IEnumerator si = subScorers.GetEnumerator();
     scorerDocQueue = new ScorerDocQueue(nrScorers);
     while (si.MoveNext())
     {
         Scorer se = (Scorer)si.Current;
         if (se.NextDoc() != NO_MORE_DOCS)
         {
             // doc() method will be used in scorerDocQueue.
             scorerDocQueue.Insert(se);
         }
     }
 }
		/// <summary>Called the first time next() or skipTo() is called to
		/// initialize <c>scorerDocQueue</c>.
		/// </summary>
		private void  InitScorerDocQueue()
		{
			scorerDocQueue = new ScorerDocQueue(nrScorers);
			foreach(Scorer se in subScorers)
			{
				if (se.NextDoc() != NO_MORE_DOCS)
				{
					// doc() method will be used in scorerDocQueue.
					scorerDocQueue.Insert(se);
				}
			}
		}
Esempio n. 4
0
		/// <summary>Called the first time next() or skipTo() is called to
		/// initialize <code>scorerDocQueue</code>.
		/// </summary>
		private void  InitScorerDocQueue()
		{
			System.Collections.IEnumerator si = subScorers.GetEnumerator();
			scorerDocQueue = new ScorerDocQueue(nrScorers);
			while (si.MoveNext())
			{
				Scorer se = (Scorer) si.Current;
				if (se.NextDoc() != NO_MORE_DOCS)
				{
					// doc() method will be used in scorerDocQueue.
					scorerDocQueue.Insert(se);
				}
			}
		}