Ejemplo n.º 1
0
            public override IFacetCountCollector GetFacetCountCollector(BoboIndexReader reader, int docBase)
            {
                FacetDataCache       dataCache     = (FacetDataCache)reader.GetFacetData(_dataHandlerName);
                IFacetCountCollector baseCollector = _baseCollectorSrc.GetFacetCountCollector(reader, docBase);

                return(new HistogramCollector(_name, baseCollector, dataCache, _ospec, _start, _end, _unit));
            }
            public override IFacetCountCollector GetFacetCountCollector(BoboSegmentReader reader, int docBase)
            {
                FacetDataCache       dataCache     = (FacetDataCache)reader.GetFacetData(m_dataHandlerName);
                IFacetCountCollector baseCollector = m_baseCollectorSrc.GetFacetCountCollector(reader, docBase);

                return(new HistogramCollector(m_name, baseCollector, dataCache, m_ospec, m_start, m_end, m_unit));
            }
Ejemplo n.º 3
0
 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);
         }
     }
 }