Changeset 4314
- Timestamp:
- 01/21/14 12:43:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/SolrFacetFieldDataProvider.java
r4283 r4314 17 17 import eu.clarin.cmdi.vlo.dao.DaoLocator; 18 18 import eu.clarin.cmdi.vlo.dao.SearchResultsDao; 19 import java.io.Serializable; 19 20 20 21 public class SolrFacetFieldDataProvider implements IDataProvider<Count> { 22 21 23 private final static Logger LOG = LoggerFactory.getLogger(SolrFacetFieldDataProvider.class); 22 24 23 25 private static final long serialVersionUID = 1L; 26 private final SolrQuery query; 24 27 private FacetField facet; 25 private SolrQuery query;26 28 27 29 private final String selectedFacet; … … 58 60 @Override 59 61 public Iterator<? extends Count> iterator(long first, long count) { 60 return getFacet().getValues().subList((int) first, (int)first + (int)count).iterator();62 return getFacet().getValues().subList((int) first, (int) first + (int) count).iterator(); 61 63 } 62 64 … … 75 77 } 76 78 77 @SuppressWarnings("serial")78 private static class EmptyFacetField extends FacetField { 79 private static class EmptyFacetField extends FacetField implements Serializable { 80 79 81 public EmptyFacetField(String name) { 80 82 super(name); 81 83 } 82 84 85 @Override 83 86 public List<Count> getValues() { 84 return (List<Count>) Collections.EMPTY_LIST.iterator();87 return Collections.emptyList(); 85 88 } 86 89 90 @Override 87 91 public int getValueCount() { 88 92 return 0; 89 93 } 90 91 94 } 92 95 }
Note: See TracChangeset
for help on using the changeset viewer.