org.apache.lucene.spatial.composite

## Class IntersectsRPTVerifyQuery

- java.lang.Object
- - org.apache.lucene.search.Query
  - - org.apache.lucene.spatial.composite.IntersectsRPTVerifyQuery

-     public class IntersectsRPTVerifyQuery
      extends Query

  A spatial Intersects predicate that distinguishes an approximated match from an exact match based on which cells are within the query shape. It exposes a `TwoPhaseIterator` that will verify a match with a provided predicate in the form of a `ValueSource` by calling `FunctionValues.boolVal(int)`.
  NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IntersectsRPTVerifyQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel, ValueSource predicateValueSource)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | `createWeight(IndexSearcher searcher, boolean needsScores)`
    `boolean` | `equals(Object other)`
    `int` | `hashCode()`
    `String` | `toString(String field)`

    - ### Methods inherited from class org.apache.lucene.search.Query

      `classHash, rewrite, sameClassAs, toString`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### IntersectsRPTVerifyQuery

          public IntersectsRPTVerifyQuery(org.locationtech.spatial4j.shape.Shape queryShape,
                                          String fieldName,
                                          SpatialPrefixTree grid,
                                          int detailLevel,
                                          int prefixGridScanLevel,
                                          ValueSource predicateValueSource)

  - ### Method Detail

    - #### toString

          public String toString(String field)

      Specified by:
        `toString` in class `Query`

    - #### equals

          public boolean equals(Object other)

      Specified by:
        `equals` in class `Query`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in class `Query`

    - #### createWeight

          public Weight createWeight(IndexSearcher searcher,
                                     boolean needsScores)
                              throws IOException

      Overrides:
        `createWeight` in class `Query`
      Throws:
        `IOException`

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.