public class PivotFacetHelper extends Object
| Constructor and Description |
|---|
PivotFacetHelper() |
| Modifier and Type | Method and 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 request
|
static Integer |
getCount(NamedList<Object> pivotList) |
static String |
getField(NamedList<Object> pivotList) |
static List<NamedList<Object>> |
getPivots(NamedList<Object> pivotList) |
static NamedList<Number> |
getQueryCounts(NamedList<Object> pivotList) |
static SimpleOrderedMap<SimpleOrderedMap<Object>> |
getRanges(NamedList<Object> pivotList) |
static NamedList<NamedList<NamedList<?>>> |
getStats(NamedList<Object> pivotList) |
static Comparable |
getValue(NamedList<Object> pivotList) |
static Map<String,StatsValues> |
mergeStats(Map<String,StatsValues> merged,
NamedList<NamedList<NamedList<?>>> remoteWrapper,
org.apache.solr.handler.component.StatsInfo statsInfo)
Given a mapping of keys to
StatsValues representing the currently
known "merged" stats (which may be null if none exist yet), and a
NamedList containing the "stats" response block returned by an individual
shard, this method accumulates the stats for each StatsField found in
the shard response with the existing mergeStats |
public static String encodeRefinementValuePath(List<String> values)
public static List<String> decodeRefinementValuePath(String valuePath)
public static Comparable getValue(NamedList<Object> pivotList)
PivotListEntry.VALUEpublic static String getField(NamedList<Object> pivotList)
PivotListEntry.FIELDpublic static Integer getCount(NamedList<Object> pivotList)
PivotListEntry.COUNTpublic static List<NamedList<Object>> getPivots(NamedList<Object> pivotList)
PivotListEntry.PIVOTpublic static NamedList<NamedList<NamedList<?>>> getStats(NamedList<Object> pivotList)
PivotListEntry.STATSpublic static NamedList<Number> getQueryCounts(NamedList<Object> pivotList)
PivotListEntry.QUERIESpublic static SimpleOrderedMap<SimpleOrderedMap<Object>> getRanges(NamedList<Object> pivotList)
PivotListEntry.RANGESpublic static Map<String,StatsValues> mergeStats(Map<String,StatsValues> merged, NamedList<NamedList<NamedList<?>>> remoteWrapper, org.apache.solr.handler.component.StatsInfo statsInfo)
StatsValues representing the currently
known "merged" stats (which may be null if none exist yet), and a
NamedList containing the "stats" response block returned by an individual
shard, this method accumulates the stats for each StatsField found in
the shard response with the existing mergeStatsmerged Map after modifying, or a new Map if the merged param was originally null.StatsInfo.getStatsField(java.lang.String),
StatsValuesFactory.createStatsValues(org.apache.solr.handler.component.StatsField),
StatsValues.accumulate(NamedList)Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.