Package com.browseengine.bobo.facets.data

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


    return new FacetDataCache.FacetDocComparatorSource(this);
  }
 
  @Override
  public int getNumItems(BoboIndexReader reader, int id) {
    FacetDataCache data = getFacetData(reader);
    if (data==null) return 0;
    return data.getNumItems(id);
  }
View Full Code Here


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

    return new String[0];
  }
 
  @Override
  public Object[] getRawFieldValues(BoboIndexReader reader,int id){
    FacetDataCache dataCache = getFacetData(reader);
    if (dataCache!=null){
      return new Object[]{dataCache.valArray.getRawValue(dataCache.orderArray.get(id))};
    }
    return new String[0];
  }
View Full Code Here

    return new FacetCountCollectorSource() {
   
    @Override
    public FacetCountCollector getFacetCountCollector(BoboIndexReader reader,
        int docBase) {
      FacetDataCache dataCache = getFacetData(reader);
      return new RangeFacetCountCollector(_name,dataCache,docBase,ospec,_predefinedRanges);
    }
  };
   
  }
View Full Code Here

    return (_predefinedRanges != null);
  }

  @Override
  public FacetDataCache load(BoboIndexReader reader) throws IOException {
      FacetDataCache dataCache = new FacetDataCache();
    dataCache.load(_indexFieldName, reader, _termListFactory);
    return dataCache;
  }
View Full Code Here

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

  }
 
  @Override
  public int getNumItems(BoboIndexReader reader, int id) {
    FacetHandler<FacetDataCache<?>> dependOnFacetHandler = (FacetHandler<FacetDataCache<?>>)getDependedFacetHandler(_dependsOnFacetName);
    FacetDataCache data = dependOnFacetHandler.getFacetData(reader);
    return data.getNumItems(id);
  }
View Full Code Here

    }
   

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

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

    return new FacetCountCollectorSource() {
     
      @Override
      public FacetCountCollector getFacetCountCollector(BoboIndexReader reader,
          int docBase) {
        FacetDataCache dataCache = PathFacetHandler.this.getFacetData(reader);
        if (_multiValue){
          return new MultiValuedPathFacetCountCollector(_name, _separator, sel, ospec,dataCache);
        }
        else{
          return new PathFacetCountCollector(_name,_separator,sel,ospec,dataCache);
View Full Code Here

TOP

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

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.