Class SpatialHeatmapFacets
- java.lang.Object
-
- org.apache.solr.handler.component.SpatialHeatmapFacets
-
public class SpatialHeatmapFacets extends Object
A 2D spatial faceting summary of a rectangular region. Used byFacetComponent
andSimpleFacets
.- See Also:
FacetHeatmap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpatialHeatmapFacets.HeatmapFacet
-
Field Summary
Fields Modifier and Type Field Description static String
RESPONSE_KEY
-
Constructor Summary
Constructors Constructor Description SpatialHeatmapFacets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<Object>>
distribFinish(LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapInfos, ResponseBuilder rb)
Called by FacetComponent's impl ofSearchComponent.finishStage(ResponseBuilder)
.static void
distribHandleResponse(LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapFacets, org.apache.solr.common.util.NamedList<?> srsp_facet_counts)
Called by FacetComponent.countFacets which is in turn called by FC's impl ofSearchComponent.handleResponses(ResponseBuilder, ShardRequest)
.static void
distribModifyRequest(ShardRequest sreq, LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapFacets)
Called by FacetComponent's impl ofSearchComponent.modifyRequest(ResponseBuilder, SearchComponent, ShardRequest)
.static LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet>
distribParse(org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
Parses request to "HeatmapFacet" instances.static org.apache.solr.common.util.NamedList<Object>
getHeatmapForField(String fieldKey, String fieldName, ResponseBuilder rb, org.apache.solr.common.params.SolrParams params, DocSet docSet)
Called bySimpleFacets
to compute heatmap facets.
-
-
-
Field Detail
-
RESPONSE_KEY
public static final String RESPONSE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeatmapForField
public static org.apache.solr.common.util.NamedList<Object> getHeatmapForField(String fieldKey, String fieldName, ResponseBuilder rb, org.apache.solr.common.params.SolrParams params, DocSet docSet) throws IOException
Called bySimpleFacets
to compute heatmap facets.- Throws:
IOException
-
distribParse
public static LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> distribParse(org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
Parses request to "HeatmapFacet" instances.
-
distribModifyRequest
public static void distribModifyRequest(ShardRequest sreq, LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapFacets)
Called by FacetComponent's impl ofSearchComponent.modifyRequest(ResponseBuilder, SearchComponent, ShardRequest)
.
-
distribHandleResponse
public static void distribHandleResponse(LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapFacets, org.apache.solr.common.util.NamedList<?> srsp_facet_counts)
Called by FacetComponent.countFacets which is in turn called by FC's impl ofSearchComponent.handleResponses(ResponseBuilder, ShardRequest)
.
-
distribFinish
public static org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<Object>> distribFinish(LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapInfos, ResponseBuilder rb)
Called by FacetComponent's impl ofSearchComponent.finishStage(ResponseBuilder)
.
-
-