Class HeatmapFacetMap
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
org.apache.solr.client.solrj.request.json.JsonFacetMap<HeatmapFacetMap>
org.apache.solr.client.solrj.request.json.HeatmapFacetMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Represents a "heatmap" facet in a JSON request query.
Ready for use with JsonQueryRequest.withFacet(String, Map)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetThis()setDistErr(double distErr) Indicates the maximum acceptable cell error distance.setDistErrPct(double distErrPct) A fraction of the heatmap region that is used to compute the cell size.setGridLevel(int individualCellSize) Indicates the size of each cell in the computed heatmap gridSets the format that the computed heatmap should be returned in.setRegionQuery(String queryString) Indicate the region to compute the heatmap facet on.withSubFacet(String facetName, JsonFacetMap map) Methods inherited from class org.apache.solr.client.solrj.request.json.JsonFacetMap
withDomain, withStatSubFacetMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
HeatmapFacetMap
-
-
Method Details
-
getThis
- Specified by:
getThisin classJsonFacetMap<HeatmapFacetMap>
-
withSubFacet
- Overrides:
withSubFacetin classJsonFacetMap<HeatmapFacetMap>
-
setRegionQuery
Indicate the region to compute the heatmap facet on.Defaults to the "world" ("[-180,-90 TO 180,90]")
-
setGridLevel
Indicates the size of each cell in the computed heatmap gridIf not set, defaults to being computed by
distErrPctordistErr- Parameters:
individualCellSize- the forced size of each cell in the heatmap grid- See Also:
-
setDistErrPct
A fraction of the heatmap region that is used to compute the cell size.Defaults to 0.15 if not specified.
- See Also:
-
setDistErr
Indicates the maximum acceptable cell error distance.Used to compute the size of each cell in the heatmap grid rather than specifying
setGridLevel(int)- Parameters:
distErr- a positive value representing the maximum acceptable cell error.- See Also:
-
setHeatmapFormat
Sets the format that the computed heatmap should be returned in.Defaults to 'ints2D' if not specified.
-