Example #1
0
 public MultiSearcherThread(Searchable searchable, Weight weight, Filter filter, int nDocs, HitQueue hq, int i, int[] starts, System.String name) : base(name)
 {
     this.searchable = searchable;
     this.weight     = weight;
     this.filter     = filter;
     this.nDocs      = nDocs;
     this.hq         = hq;
     this.i          = i;
     this.starts     = starts;
 }
Example #2
0
 protected internal TopDocsCollector(PriorityQueue pq)
 {
     this.pq = pq;
 }
Example #3
0
		// Declaring the constructor private prevents extending this class by anyone
		// else. Note that the class cannot be final since it's extended by the
		// internal versions. If someone will define a constructor with any other
		// visibility, then anyone will be able to extend the class, which is not what
		// we want.
		private TopFieldCollector(PriorityQueue pq, int numHits, bool fillFields):base(pq)
		{
			this.numHits = numHits;
			this.fillFields = fillFields;
		}
Example #4
0
 // Declaring the constructor private prevents extending this class by anyone
 // else. Note that the class cannot be final since it's extended by the
 // internal versions. If someone will define a constructor with any other
 // visibility, then anyone will be able to extend the class, which is not what
 // we want.
 private TopFieldCollector(PriorityQueue pq, int numHits, bool fillFields) : base(pq)
 {
     this.numHits    = numHits;
     this.fillFields = fillFields;
 }
Example #5
0
		protected internal TopDocsCollector(PriorityQueue pq)
		{
			this.pq = pq;
		}
Example #6
0
		public MultiSearcherThread(Searchable searchable, Weight weight, Filter filter, int nDocs, FieldDocSortedHitQueue hq, Sort sort, int i, int[] starts, System.String name):base(name)
		{
			this.searchable = searchable;
			this.weight = weight;
			this.filter = filter;
			this.nDocs = nDocs;
			this.hq = hq;
			this.i = i;
			this.starts = starts;
			this.sort = sort;
		}
Example #7
0
		/// <summary>Constructor to collect the top-scoring documents by using the given PQ.</summary>
		/// <param name="hq">the PQ to use by this instance.
		/// </param>
		protected internal TopDocCollector(PriorityQueue hq)
		{
			this.hq = hq;
		}
Example #8
0
		internal TopDocCollector(int numHits, PriorityQueue hq)
		{
			this.hq = hq;
		}