public override void Collect(int doc) { BucketTable table = bucketTable; int i = doc & Lucene.Net.Search.BooleanScorer.BucketTable.MASK; Bucket bucket = table.buckets[i]; if (bucket == null) { table.buckets[i] = bucket = new Bucket(); } if (bucket.doc != doc) { // invalid bucket bucket.doc = doc; // set doc bucket.score = scorer.Score(); // initialize score bucket.bits = mask; // initialize mask bucket.coord = 1; // initialize coord bucket.next = table.first; // push onto valid list table.first = bucket; } else { // valid bucket bucket.score += scorer.Score(); // increment score bucket.bits |= mask; // add bits in mask bucket.coord++; // increment coord } }
public override void Collect(int doc) { BucketTable table = BucketTable; int i = doc & BucketTable.MASK; Bucket bucket = table.Buckets[i]; if (bucket.Doc != doc) // invalid bucket { bucket.Doc = doc; // set doc bucket.Score = Scorer_Renamed.Score(); // initialize score bucket.Bits = Mask; // initialize mask bucket.Coord = 1; // initialize coord bucket.Next = table.First; // push onto valid list table.First = bucket; } // valid bucket else { bucket.Score += Scorer_Renamed.Score(); // increment score bucket.Bits |= Mask; // add bits in mask bucket.Coord++; // increment coord } }
public BooleanScorerCollector(int mask, BucketTable bucketTable) { this.mask = mask; this.bucketTable = bucketTable; }
private void InitBlock() { bucketTable = new BucketTable(); }
public BooleanScorerCollector(int mask, BucketTable bucketTable) { this.mask = mask; this.bucketTable = bucketTable; }
private void InitBlock() { bucketTable = new BucketTable(); }
public Collector(int mask, BucketTable bucketTable) { this.mask = mask; this.bucketTable = bucketTable; }
public Collector(int mask, BucketTable bucketTable) { this.mask = mask; this.bucketTable = bucketTable; }