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;
}