Package org.springframework.data.solr.core.query.result

Examples of org.springframework.data.solr.core.query.result.SimpleFieldStatsResult


    for (Entry<String, FieldStatsInfo> entry : fieldStatsInfo.entrySet()) {

      FieldStatsInfo value = entry.getValue();

      if (value == null) {
        result.put(entry.getKey(), new SimpleFieldStatsResult());
        continue;
      }

      SimpleFieldStatsResult statsResult = populateStatsResultWithFieldStatsInfo(new SimpleFieldStatsResult(), value);

      statsResult.setCountDistinct(value.getCountDistinct());
      statsResult.setDistinctValues(value.getDistinctValues());

      Map<String, List<FieldStatsInfo>> facets = value.getFacets();

      if (facets != null) {
        statsResult.setStatsResults(convertFieldStatsInfoToStatsResultMap(facets));
      }

      result.put(entry.getKey(), statsResult);
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.query.result.SimpleFieldStatsResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.