protected class QuadPrefixTree.QuadCell extends LegacyCell
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
concat(BytesRef source,
byte b) |
protected QuadPrefixTree |
getGrid() |
protected int |
getMaxLevels() |
org.locationtech.spatial4j.shape.Shape |
getShape()
Gets the shape for this cell; typically a Rectangle.
|
protected QuadPrefixTree.QuadCell |
getSubCell(org.locationtech.spatial4j.shape.Point p)
Performant implementations are expected to implement this efficiently by
considering the current cell's boundary.
|
protected Collection<Cell> |
getSubCells()
Gets the cells at the next grid cell level that covers this cell.
|
int |
getSubCellsSize()
Returns the number of children for this cell.
|
protected org.locationtech.spatial4j.shape.Rectangle |
makeShape() |
compare, compareToNoLeaf, equals, getLevel, getNextLevelCells, getShapeRel, getTokenBytesNoLeaf, getTokenBytesWithLeaf, hashCode, isLeaf, isPrefixOf, readCell, readLeafAdjust, setLeaf, setShapeRel, toString
protected QuadPrefixTree getGrid()
getGrid
in class LegacyCell
protected int getMaxLevels()
getMaxLevels
in class LegacyCell
protected Collection<Cell> getSubCells()
LegacyCell
getSubCells
in class LegacyCell
public int getSubCellsSize()
CellCanPrune
protected QuadPrefixTree.QuadCell getSubCell(org.locationtech.spatial4j.shape.Point p)
LegacyCell
Precondition: Never called when getLevel() == maxLevel. Precondition: this.getShape().relate(p) != DISJOINT.
getSubCell
in class LegacyCell
public org.locationtech.spatial4j.shape.Shape getShape()
Cell
protected org.locationtech.spatial4j.shape.Rectangle makeShape()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.