All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browseengine.bobo.facets.range.MultiDataCacheBuilder Maven / Gradle / Ivy

Go to download

Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene

The newest version!
package com.browseengine.bobo.facets.range;

import com.browseengine.bobo.api.BoboSegmentReader;
import com.browseengine.bobo.facets.data.MultiValueFacetDataCache;
import com.browseengine.bobo.facets.filter.AdaptiveFacetFilter.FacetDataCacheBuilder;

public class MultiDataCacheBuilder implements FacetDataCacheBuilder {
  private final String name;
  private final String indexFieldName;

  public MultiDataCacheBuilder(String name, String indexFieldName) {
    this.name = name;
    this.indexFieldName = indexFieldName;
  }

  @Override
  public MultiValueFacetDataCache build(BoboSegmentReader reader) {
    return (MultiValueFacetDataCache) reader.getFacetData(name);
  }

  @Override
  public String getName() {
    return name;
  }

  @Override
  public String getIndexFieldName() {
    return indexFieldName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy