Package | Description |
---|---|
org.apache.lucene.spatial.prefix.tree |
The Spatial Prefix package supports spatial indexing by index-time tokens
where adding characters to a string gives greater resolution.
|
Modifier and Type | Method and Description |
---|---|
Node |
QuadPrefixTree.getNode(byte[] bytes,
int offset,
int len) |
Node |
GeohashPrefixTree.getNode(byte[] bytes,
int offset,
int len) |
abstract Node |
SpatialPrefixTree.getNode(byte[] bytes,
int offset,
int len) |
Node |
SpatialPrefixTree.getNode(byte[] bytes,
int offset,
int len,
Node target) |
Node |
QuadPrefixTree.getNode(com.spatial4j.core.shape.Point p,
int level) |
Node |
GeohashPrefixTree.getNode(com.spatial4j.core.shape.Point p,
int level) |
protected Node |
SpatialPrefixTree.getNode(com.spatial4j.core.shape.Point p,
int level) |
Node |
QuadPrefixTree.getNode(String token) |
Node |
GeohashPrefixTree.getNode(String token) |
abstract Node |
SpatialPrefixTree.getNode(String token)
The cell for the specified token.
|
abstract Node |
Node.getSubCell(com.spatial4j.core.shape.Point p)
Performant implementations are expected to implement this efficiently by considering the current
cell's boundary.
|
Node |
SpatialPrefixTree.getWorldNode()
Returns the level 0 cell which encompasses all spatial data.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
QuadPrefixTree.getNodes(com.spatial4j.core.shape.Shape shape,
int detailLevel,
boolean inclParents) |
List<Node> |
GeohashPrefixTree.getNodes(com.spatial4j.core.shape.Shape shape,
int detailLevel,
boolean inclParents) |
List<Node> |
SpatialPrefixTree.getNodes(com.spatial4j.core.shape.Shape shape,
int detailLevel,
boolean inclParents)
Gets the intersecting & including cells for the specified shape, without exceeding detail level.
|
protected List<Node> |
SpatialPrefixTree.getNodesAltPoint(com.spatial4j.core.shape.Point p,
int detailLevel,
boolean inclParents)
Subclasses might override
SpatialPrefixTree.getNodes(com.spatial4j.core.shape.Shape, int, boolean)
and check if the argument is a shape and if so, delegate
to this implementation, which calls SpatialPrefixTree.getNode(com.spatial4j.core.shape.Point, int) and
then calls SpatialPrefixTree.getNode(String) repeatedly if inclParents is true. |
protected abstract Collection<Node> |
Node.getSubCells()
Gets the cells at the next grid cell level that cover this cell.
|
Collection<Node> |
Node.getSubCells(com.spatial4j.core.shape.Shape shapeFilter)
Like
getSubCells() but with the results filtered by a shape. |
Modifier and Type | Method and Description |
---|---|
int |
Node.compareTo(Node o) |
Node |
SpatialPrefixTree.getNode(byte[] bytes,
int offset,
int len,
Node target) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
SpatialPrefixTree.nodesToTokenStrings(Collection<Node> nodes)
Will add the trailing leaf byte for leaves.
|
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.