QuadPrefixTree.Factory (Lucene 10.5.0 spatial-extras API)
Description: declaration: package: org.apache.lucene.spatial.prefix.tree, class: QuadPrefixTree, class: Factory

Package org.apache.lucene.spatial.prefix.tree

# Class QuadPrefixTree.Factory

java.lang.Object
org.apache.lucene.spatial.prefix.tree.SpatialPrefixTreeFactory
org.apache.lucene.spatial.prefix.tree.QuadPrefixTree.Factory

Direct Known Subclasses:
  `PackedQuadPrefixTree.Factory`

Enclosing class:
  `QuadPrefixTree`

public static class QuadPrefixTree.Factory extends SpatialPrefixTreeFactory
Factory for creating `QuadPrefixTree` instances with useful defaults

- ## Field Summary

  ### Fields inherited from class org.apache.lucene.spatial.prefix.tree.SpatialPrefixTreeFactory

  `args, ctx, MAX_DIST_ERR, MAX_LEVELS, maxLevels, PREFIX_TREE, VERSION`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Factory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected int`
  `getLevelForDistance(double degrees)`
  Calls `SpatialPrefixTree.getLevelForDistance(double)`.
  `protected SpatialPrefixTree`
  `newSPT()`

  ### Methods inherited from class org.apache.lucene.spatial.prefix.tree.SpatialPrefixTreeFactory

  `getVersion, init, initMaxLevels, initVersion, makeSPT, setVersion`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Factory

    public Factory()

- ## Method Details

  - ### getLevelForDistance

    protected int getLevelForDistance(double degrees)
    Description copied from class: `SpatialPrefixTreeFactory`
    Calls `SpatialPrefixTree.getLevelForDistance(double)`.
    Specified by:
      `getLevelForDistance` in class `SpatialPrefixTreeFactory`

  - ### newSPT

    protected SpatialPrefixTree newSPT()
    Specified by:
      `newSPT` in class `SpatialPrefixTreeFactory`