public abstract class SpatialPrefixTreeFactory
extends java.lang.Object
SpatialPrefixTree
instances with useful
defaults and passed on configurations defined in a Map.Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
args |
protected org.locationtech.spatial4j.context.SpatialContext |
ctx |
static java.lang.String |
MAX_DIST_ERR |
static java.lang.String |
MAX_LEVELS |
protected java.lang.Integer |
maxLevels |
static java.lang.String |
PREFIX_TREE |
Constructor and Description |
---|
SpatialPrefixTreeFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getLevelForDistance(double degrees)
|
protected void |
init(java.util.Map<java.lang.String,java.lang.String> args,
org.locationtech.spatial4j.context.SpatialContext ctx) |
protected void |
initMaxLevels() |
static SpatialPrefixTree |
makeSPT(java.util.Map<java.lang.String,java.lang.String> args,
java.lang.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 java.lang.String PREFIX_TREE
public static final java.lang.String MAX_LEVELS
public static final java.lang.String MAX_DIST_ERR
protected java.util.Map<java.lang.String,java.lang.String> args
protected org.locationtech.spatial4j.context.SpatialContext ctx
protected java.lang.Integer maxLevels
public static SpatialPrefixTree makeSPT(java.util.Map<java.lang.String,java.lang.String> args, java.lang.ClassLoader classLoader, org.locationtech.spatial4j.context.SpatialContext ctx)
protected void init(java.util.Map<java.lang.String,java.lang.String> args, org.locationtech.spatial4j.context.SpatialContext ctx)
protected void initMaxLevels()
protected abstract int getLevelForDistance(double degrees)
protected abstract SpatialPrefixTree newSPT()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.