Package com.browseengine.bobo.facets.data

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


  }

  @Override
  public BoboDocScorer getDocScorer(BoboSegmentReader 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


  }

  @Override
  public MultiValueFacetDataCache load(BoboSegmentReader 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

    _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

  }

  @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

    if (!_multiValue) {
      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

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.