C# Class Lucene.Net.Facet.Range.LongRangeCounter

Counts how many times each range was seen; per-hit it's just a binary search (Add) against the elementary intervals, and in the end we rollup back to the original ranges.
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Add ( long v ) : void
FillCounts ( int counts ) : int

Fills counts corresponding to the original input ranges, returning the missing count (how many hits didn't match any ranges).

LongRangeCounter ( LongRange ranges ) : System.Collections.Generic

Private Methods

Method Description
Rollup ( LongRangeNode node, int counts, bool sawOutputs ) : int
Split ( int start, int end, IList elementaryIntervals ) : LongRangeNode

Method Details

Add() public method

public Add ( long v ) : void
v long
return void

FillCounts() public method

Fills counts corresponding to the original input ranges, returning the missing count (how many hits didn't match any ranges).
public FillCounts ( int counts ) : int
counts int
return int

LongRangeCounter() public method

public LongRangeCounter ( LongRange ranges ) : System.Collections.Generic
ranges LongRange
return System.Collections.Generic