Package com.browseengine.bobo.facets.data

Examples of com.browseengine.bobo.facets.data.MultiValueFacetDataCache


    }
   
    public double getFacetSelectivity(BoboIndexReader reader)
    {
      double selectivity = 0;
      MultiValueFacetDataCache dataCache = multiDataCacheBuilder.build(reader);
      int idx = dataCache.valArray.indexOf(_val);
      if(idx<0)
      {
        return 0.0;
      }
View Full Code Here


        }
    }

    @Override
    public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) throws IOException {     
      final MultiValueFacetDataCache dataCache = multiDataCacheBuilder.build(reader)
      final int index = dataCache.valArray.indexOf(_val);
        final BigNestedIntArray nestedArray = dataCache._nestedArray;
        if(index < 0)
        {
            return EmptyDocIdSet.getInstance();
View Full Code Here

      long count = openBitSet.cardinality();
      if (count == 0) {
        return EmptyDocIdSet.getInstance();
      } else {
        final boolean multi = dataCache instanceof MultiValueFacetDataCache;
        final MultiValueFacetDataCache multiCache = multi ? (MultiValueFacetDataCache) dataCache : null;
       
        return new RandomAccessDocIdSet() {       
          public DocIdSetIterator iterator() {         
             
              if (multi) {
View Full Code Here

        FacetDataCache dataCache = new FacetDataCache();
        dataCache.load(_indexedName, reader, _termListFactory);
        return dataCache;
       }
       else{
         MultiValueFacetDataCache dataCache = new MultiValueFacetDataCache();
         dataCache.load(_indexedName, reader, _termListFactory);
         return dataCache;
       }
  }
View Full Code Here

    }
   
    public double getFacetSelectivity(BoboIndexReader reader)
    {
      double selectivity = 0;
      MultiValueFacetDataCache dataCache = _facetHandler.getFacetData(reader);
      int idx = dataCache.valArray.indexOf(_val);
      if(idx<0)
      {
        return 0.0;
      }
View Full Code Here

        }
    }

    @Override
    public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) throws IOException {
      final MultiValueFacetDataCache dataCache = _facetHandler.getFacetData(reader);
        final int index = dataCache.valArray.indexOf(_val);
        final BigNestedIntArray nestedArray = dataCache._nestedArray;
        if(index < 0)
        {
            return EmptyDocIdSet.getInstance();
View Full Code Here

    _sizePayloadTerm = sizePayloadTerm;
  }
 
  @Override
  public int getNumItems(BoboIndexReader reader, int id) {
    MultiValueFacetDataCache data = getFacetData(reader);
    if (data==null) return 0;
    return data.getNumItems(id);
  }
View Full Code Here

  }

  @Override
  public String[] getFieldValues(BoboIndexReader reader,int id)
  {
    MultiValueFacetDataCache dataCache = getFacetData(reader);
    if (dataCache!=null){
      return dataCache._nestedArray.getTranslatedData(id, dataCache.valArray);
    }
    return new String[0];
  }
View Full Code Here

  }
 
  @Override
  public Object[] getRawFieldValues(BoboIndexReader reader,int id){

  MultiValueFacetDataCache dataCache = getFacetData(reader);
    if (dataCache!=null){
      return dataCache._nestedArray.getRawData(id, dataCache.valArray);
    }
    return new String[0];
  }
View Full Code Here

  return new FacetCountCollectorSource(){

    @Override
    public FacetCountCollector getFacetCountCollector(
        BoboIndexReader reader, int docBase) {
      MultiValueFacetDataCache dataCache = MultiValueFacetHandler.this.getFacetData(reader);
      return new MultiValueFacetCountCollector(_name,dataCache,docBase,sel, ospec);
    }
  };
   
  }
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.facets.data.MultiValueFacetDataCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.