public void SetNextReader(BoboSegmentReader reader, int docBase) { if (CollectAllSource != null) { IFacetCountCollector collector = CollectAllSource.GetFacetCountCollector(reader, docBase); CollectAllCollectorList.Add(collector); collector.CollectAll(); } else { if (Filter != null) { CurrentPointers.DocIdSet = Filter.GetRandomAccessDocIdSet(reader); CurrentPointers.PostDocIDSetIterator = CurrentPointers.DocIdSet.GetIterator(); CurrentPointers.Doc = CurrentPointers.PostDocIDSetIterator.NextDoc(); } if (FacetCountCollectorSource != null) { CurrentPointers.FacetCountCollector = FacetCountCollectorSource.GetFacetCountCollector(reader, docBase); CountCollectorList.Add(CurrentPointers.FacetCountCollector); } } }
public void SetNextReader(BoboIndexReader reader, int docBase) { if (_collectAllSource != null) { IFacetCountCollector collector = _collectAllSource.GetFacetCountCollector(reader, docBase); _collectAllCollectorList.Add(collector); collector.CollectAll(); } else { if (_filter != null) { _currentPointers.DocIdSet = _filter.GetRandomAccessDocIdSet(reader); _currentPointers.PostDocIDSetIterator = _currentPointers.DocIdSet.Iterator(); _currentPointers.Doc = _currentPointers.PostDocIDSetIterator.NextDoc(); } if (_facetCountCollectorSource != null) { _currentPointers.FacetCountCollector = _facetCountCollectorSource.GetFacetCountCollector(reader, docBase); _countCollectorList.Add(_currentPointers.FacetCountCollector); } } }
public void CollectAll() { m_baseCollector.CollectAll(); }