Examples of CategoryListData


Examples of org.apache.lucene.facet.search.cache.CategoryListData

  }
 
  static CategoryListIterator clIteraor(CategoryListCache clCache, CategoryListParams clp,
      IndexReader indexReader, int partition) throws IOException {
    if (clCache != null) {
      CategoryListData cld = clCache.get(clp);
      if (cld != null) {
        return cld.iterator(partition);
      }
    }
    return clp.createCategoryListIterator(indexReader, partition);
  }
View Full Code Here

Examples of org.apache.lucene.facet.search.cache.CategoryListData

      TaxonomyReader taxo, FacetSearchParams sParams, int partition)
      throws IOException {
    CategoryListCache clCache = sParams.getClCache();
    CategoryListParams clParams = sParams.getFacetIndexingParams().getCategoryListParams(categoryPath);
    if (clCache!=null) {
      CategoryListData clData = clCache.get(clParams);
      if (clData!=null) {
        return clData.iterator(partition);
      }
    }
    return clParams.createCategoryListIterator(reader, partition);
  }
View Full Code Here

Examples of org.apache.lucene.facet.search.cache.CategoryListData

    }
  }

  /** Mess the cached data for this {@link CategoryListParams} */
  private void messCachedData(CategoryListCache clCache, CategoryListParams clp) {
    final CategoryListData cld = clCache.get(clp);
    CategoryListData badCld = new CategoryListData() {
      @Override
      public CategoryListIterator iterator(int partitionthrows IOException {
        final CategoryListIterator it = cld.iterator(partition);
        return new CategoryListIterator() {             
          public boolean skipTo(int docId) throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.