Package | Description |
---|---|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy
|
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 |
---|---|
protected Iterator<Cell> |
AbstractVisitingPrefixTreeFilter.VisitorTemplate.findSubCellsToVisit(Cell cell)
Called when doing a divide & conquer to find the next intersecting cells
of the query shape that are beneath
cell . |
Modifier and Type | Method and Description |
---|---|
protected Iterator<Cell> |
AbstractVisitingPrefixTreeFilter.VisitorTemplate.findSubCellsToVisit(Cell cell)
Called when doing a divide & conquer to find the next intersecting cells
of the query shape that are beneath
cell . |
protected abstract boolean |
AbstractVisitingPrefixTreeFilter.VisitorTemplate.visit(Cell cell)
Visit an indexed cell returned from
AbstractVisitingPrefixTreeFilter.VisitorTemplate.findSubCellsToVisit(org.apache.lucene.spatial.prefix.tree.Cell) . |
protected abstract void |
AbstractVisitingPrefixTreeFilter.VisitorTemplate.visitLeaf(Cell cell)
Called after visit() returns true and an indexed leaf cell is found.
|
protected abstract void |
AbstractVisitingPrefixTreeFilter.VisitorTemplate.visitScanned(Cell cell)
The cell is either indexed as a leaf or is the last level of detail.
|
Modifier and Type | Method and Description |
---|---|
Cell |
QuadPrefixTree.getCell(byte[] bytes,
int offset,
int len) |
abstract Cell |
SpatialPrefixTree.getCell(byte[] bytes,
int offset,
int len) |
Cell |
GeohashPrefixTree.getCell(byte[] bytes,
int offset,
int len) |
Cell |
SpatialPrefixTree.getCell(byte[] bytes,
int offset,
int len,
Cell target) |
Cell |
QuadPrefixTree.getCell(com.spatial4j.core.shape.Point p,
int level) |
protected Cell |
SpatialPrefixTree.getCell(com.spatial4j.core.shape.Point p,
int level)
Returns the cell containing point
p at the specified level . |
Cell |
GeohashPrefixTree.getCell(com.spatial4j.core.shape.Point p,
int level) |
Cell |
QuadPrefixTree.getCell(String token) |
abstract Cell |
SpatialPrefixTree.getCell(String token)
The cell for the specified token.
|
Cell |
GeohashPrefixTree.getCell(String token) |
abstract Cell |
Cell.getSubCell(com.spatial4j.core.shape.Point p)
Performant implementations are expected to implement this efficiently by
considering the current cell's boundary.
|
Cell |
SpatialPrefixTree.getWorldCell()
Returns the level 0 cell which encompasses all spatial data.
|
Modifier and Type | Method and Description |
---|---|
List<Cell> |
SpatialPrefixTree.getCells(com.spatial4j.core.shape.Point p,
int detailLevel,
boolean inclParents)
A Point-optimized implementation of
SpatialPrefixTree.getCells(com.spatial4j.core.shape.Shape, int, boolean, boolean) . |
List<Cell> |
SpatialPrefixTree.getCells(com.spatial4j.core.shape.Shape shape,
int detailLevel,
boolean inclParents,
boolean simplify)
Gets the intersecting cells for the specified shape, without exceeding
detail level.
|
protected abstract Collection<Cell> |
Cell.getSubCells()
Gets the cells at the next grid cell level that cover this cell.
|
Collection<Cell> |
Cell.getSubCells(com.spatial4j.core.shape.Shape shapeFilter)
Like
getSubCells() but with the results filtered by a shape. |
Modifier and Type | Method and Description |
---|---|
int |
Cell.compareTo(Cell o) |
Cell |
SpatialPrefixTree.getCell(byte[] bytes,
int offset,
int len,
Cell target) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
SpatialPrefixTree.cellsToTokenStrings(Collection<Cell> cells)
Will add the trailing leaf byte for leaves.
|
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.