Package com.browseengine.bobo.facets.data

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


  }
 
  public double getFacetSelectivity(BoboIndexReader reader)
  {
    double selectivity = 0;
    MultiValueFacetDataCache dataCache = (MultiValueFacetDataCache)_facetHandler.getFacetData(reader);
    int[] idxes = _valueConverter.convert(dataCache, _vals);
    if(idxes == null)
    {
      return 0.0;
    }
View Full Code Here


  }
 
  @Override
  public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) throws IOException
  {
  final MultiValueFacetDataCache dataCache = (MultiValueFacetDataCache)_facetHandler.getFacetData(reader);
  final int[] index = _valueConverter.convert(dataCache, _vals);
  final BigNestedIntArray nestedArray = dataCache._nestedArray;
  final BitVector bitset = new BitVector(dataCache.valArray.size());
 
  for (int i : index){
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

  }

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

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

  MultiValueFacetDataCache dataCache = getFacetData(reader);
    return dataCache._nestedArray.getRawData(id, dataCache.valArray);
  }
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

  }

  @Override
  public MultiValueFacetDataCache load(BoboIndexReader reader, WorkArea workArea) throws IOException
  {
  MultiValueFacetDataCache dataCache = new MultiValueFacetDataCache();
   
  dataCache.setMaxItems(_maxItems);

    if(_sizePayloadTerm == null)
    {
      dataCache.load(_indexFieldName, reader, _termListFactory, workArea);
    }
    else
    {
      dataCache.load(_indexFieldName, reader, _termListFactory, _sizePayloadTerm);
    }
    return dataCache;
  }
View Full Code Here

    }
    return filter;
  }
 
  public BoboDocScorer getDocScorer(BoboIndexReader reader,FacetTermScoringFunctionFactory scoringFunctionFactory,Map<String,Float> boostMap){
      MultiValueFacetDataCache dataCache = getFacetData(reader);
    float[] boostList = BoboDocScorer.buildBoostList(dataCache.valArray, boostMap);
    return new MultiValueDocScorer(dataCache,scoringFunctionFactory,boostList);
  }
View Full Code Here

    return new MultiValueFacetDataCache.MultiFacetDocComparatorSource(new MultiDataCacheBuilder(getName(), _indexFieldName));
  }

  @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

TOP

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

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.