public FacetCountCollectorSource getFacetCountCollectorSource(final BrowseSelection sel, final FacetSpec ospec) {
return new FacetCountCollectorSource() {
@Override
public FacetCountCollector getFacetCountCollector(BoboIndexReader reader, int docBase) {
MultiValueFacetDataCache dataCache = getFacetData(reader);
final BigNestedIntArray _nestedArray = dataCache._nestedArray;
return new RangeFacetCountCollector(_name, dataCache, docBase, ospec, _predefinedRanges) {
public void collect(int docid) {
_nestedArray.countNoReturn(docid, _count);
}