Class PivotFacetHelper
java.lang.Object
org.apache.solr.handler.component.PivotFacetHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeRefinementValuePath(String valuePath) Decodes a value path string specified for refinement.static StringencodeRefinementValuePath(List<String> values) Encodes a value path as a string for the purposes of a refinement requeststatic Integerstatic Stringstatic org.apache.solr.common.util.NamedList<Number> getQueryCounts(org.apache.solr.common.util.NamedList<Object> pivotList) static org.apache.solr.common.util.SimpleOrderedMap<org.apache.solr.common.util.SimpleOrderedMap<Object>> static org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<?>>> static Comparablestatic Map<String, StatsValues> mergeStats(Map<String, StatsValues> merged, org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<?>>> remoteWrapper, org.apache.solr.handler.component.StatsInfo statsInfo) Given a mapping of keys toStatsValuesrepresenting the currently known "merged" stats (which may be null if none exist yet), and aNamedListcontaining the "stats" response block returned by an individual shard, this method accumulates the stats for eachStatsFieldfound in the shard response with the existing mergeStats
-
Constructor Details
-
PivotFacetHelper
public PivotFacetHelper()
-
-
Method Details
-
encodeRefinementValuePath
Encodes a value path as a string for the purposes of a refinement request- See Also:
-
decodeRefinementValuePath
Decodes a value path string specified for refinement.- See Also:
-
getValue
- See Also:
-
getField
- See Also:
-
getCount
- See Also:
-
getPivots
public static List<org.apache.solr.common.util.NamedList<Object>> getPivots(org.apache.solr.common.util.NamedList<Object> pivotList) - See Also:
-
getStats
public static org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<?>>> getStats(org.apache.solr.common.util.NamedList<Object> pivotList) - See Also:
-
getQueryCounts
public static org.apache.solr.common.util.NamedList<Number> getQueryCounts(org.apache.solr.common.util.NamedList<Object> pivotList) - See Also:
-
getRanges
public static org.apache.solr.common.util.SimpleOrderedMap<org.apache.solr.common.util.SimpleOrderedMap<Object>> getRanges(org.apache.solr.common.util.NamedList<Object> pivotList) - See Also:
-
mergeStats
public static Map<String,StatsValues> mergeStats(Map<String, StatsValues> merged, org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<?>>> remoteWrapper, org.apache.solr.handler.component.StatsInfo statsInfo) Given a mapping of keys toStatsValuesrepresenting the currently known "merged" stats (which may be null if none exist yet), and aNamedListcontaining the "stats" response block returned by an individual shard, this method accumulates the stats for eachStatsFieldfound in the shard response with the existing mergeStats- Returns:
- the original
mergedMap after modifying, or a new Map if themergedparam was originally null. - See Also:
-