public class HeatmapFacetCounter extends Object
|Modifier and Type||Class and Description|
|Modifier and Type||Field and Description|
Maximum number of supported rows (or columns).
|Modifier and Type||Method and Description|
Calculates spatial 2D facets (aggregated counts) in a grid, sometimes called a heatmap.
public static final int MAX_ROWS_OR_COLUMNS
public static HeatmapFacetCounter.Heatmap calcFacets(PrefixTreeStrategy strategy, IndexReaderContext context, Filter filter, com.spatial4j.core.shape.Shape inputShape, int facetLevel, int maxCells) throws IOException
PrefixTreeStrategyuses when approximating what level to go to when indexing a shape given a distErrPct.
context- the IndexReader's context
filter- a Filter to limit counted docs. For optimal performance, it's
DocIdSet.bits()should be non-null. If no filter is provided, live docs are counted.
inputShape- the shape to gather grid squares for; typically a
Rectangle. The actual heatmap area will usually be larger since the cells on the edge that overlap are returned. We always return a rectangle of integers even if the inputShape isn't a rectangle -- the non-intersecting cells will all be 0. If null is given, the entire world is assumed.
facetLevel- the target depth (detail) of cells.
maxCells- the maximum number of cells to return. If the cells exceed this count, an IllegalArgumentException is thrown.
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.