public abstract class SpatialPrefixTreeFactory extends Object
SpatialPrefixTree
instances with useful
defaults and passed on configurations defined in a Map.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
args |
protected org.locationtech.spatial4j.context.SpatialContext |
ctx |
static String |
MAX_DIST_ERR |
static String |
MAX_LEVELS |
protected Integer |
maxLevels |
static String |
PREFIX_TREE |
Constructor and Description |
---|
SpatialPrefixTreeFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getLevelForDistance(double degrees)
|
protected void |
init(Map<String,String> args,
org.locationtech.spatial4j.context.SpatialContext ctx) |
protected void |
initMaxLevels() |
static SpatialPrefixTree |
makeSPT(Map<String,String> args,
ClassLoader classLoader,
org.locationtech.spatial4j.context.SpatialContext ctx)
The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".
|
protected abstract SpatialPrefixTree |
newSPT() |
public static final String PREFIX_TREE
public static final String MAX_LEVELS
public static final String MAX_DIST_ERR
protected org.locationtech.spatial4j.context.SpatialContext ctx
protected Integer maxLevels
public static SpatialPrefixTree makeSPT(Map<String,String> args, ClassLoader classLoader, org.locationtech.spatial4j.context.SpatialContext ctx)
protected void init(Map<String,String> args, org.locationtech.spatial4j.context.SpatialContext ctx)
protected void initMaxLevels()
protected abstract int getLevelForDistance(double degrees)
protected abstract SpatialPrefixTree newSPT()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.