Class PivotFacetHelper
- java.lang.Object
-
- org.apache.solr.handler.component.PivotFacetHelper
-
public class PivotFacetHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description PivotFacetHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
decodeRefinementValuePath(String valuePath)
Decodes a value path string specified for refinement.static String
encodeRefinementValuePath(List<String> values)
Encodes a value path as a string for the purposes of a refinement requeststatic Integer
getCount(org.apache.solr.common.util.NamedList<Object> pivotList)
static String
getField(org.apache.solr.common.util.NamedList<Object> pivotList)
static List<org.apache.solr.common.util.NamedList<Object>>
getPivots(org.apache.solr.common.util.NamedList<Object> pivotList)
static 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>>
getRanges(org.apache.solr.common.util.NamedList<Object> pivotList)
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)
static Comparable
getValue(org.apache.solr.common.util.NamedList<Object> pivotList)
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 toStatsValues
representing the currently known "merged" stats (which may be null if none exist yet), and aNamedList
containing the "stats" response block returned by an individual shard, this method accumulates the stats for eachStatsField
found in the shard response with the existing mergeStats
-
-
-
Method Detail
-
encodeRefinementValuePath
public static String encodeRefinementValuePath(List<String> values)
Encodes a value path as a string for the purposes of a refinement request
-
decodeRefinementValuePath
public static List<String> decodeRefinementValuePath(String valuePath)
Decodes a value path string specified for refinement.
-
getValue
public static Comparable getValue(org.apache.solr.common.util.NamedList<Object> pivotList)
- See Also:
PivotListEntry.VALUE
-
getField
public static String getField(org.apache.solr.common.util.NamedList<Object> pivotList)
- See Also:
PivotListEntry.FIELD
-
getCount
public static Integer getCount(org.apache.solr.common.util.NamedList<Object> pivotList)
- See Also:
PivotListEntry.COUNT
-
getPivots
public static List<org.apache.solr.common.util.NamedList<Object>> getPivots(org.apache.solr.common.util.NamedList<Object> pivotList)
- See Also:
PivotListEntry.PIVOT
-
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:
PivotListEntry.STATS
-
getQueryCounts
public static org.apache.solr.common.util.NamedList<Number> getQueryCounts(org.apache.solr.common.util.NamedList<Object> pivotList)
- See Also:
PivotListEntry.QUERIES
-
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:
PivotListEntry.RANGES
-
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 toStatsValues
representing the currently known "merged" stats (which may be null if none exist yet), and aNamedList
containing the "stats" response block returned by an individual shard, this method accumulates the stats for eachStatsField
found in the shard response with the existing mergeStats- Returns:
- the original
merged
Map after modifying, or a new Map if themerged
param was originally null. - See Also:
StatsInfo.getStatsField(java.lang.String)
,StatsValuesFactory.createStatsValues(org.apache.solr.handler.component.StatsField)
,StatsValues.accumulate(NamedList)
-
-