@SuppressWarnings("unchecked")
@Override
public MultiValueFacetDataCache<?> load(BoboSegmentReader reader, WorkArea workArea)
throws IOException {
@SuppressWarnings("rawtypes")
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;
}