com.browseengine.bobo.facets.range.MultiDataCacheBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bobo-browse Show documentation
Show all versions of bobo-browse Show documentation
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;
}
}