Class ShapeDocValues.ShapeComparator

  • Enclosing class:
    ShapeDocValues

    private final class ShapeDocValues.ShapeComparator
    extends java.lang.Object
    Shape Comparator class provides tree traversal relation methods
    • Constructor Detail

      • ShapeComparator

        ShapeComparator​(BytesRef binaryValue)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • numberOfTerms

        private int numberOfTerms()
      • getMinX

        private int getMinX()
      • getMinY

        private int getMinY()
      • getMaxX

        private int getMaxX()
      • getMaxY

        private int getMaxY()
      • getCentroidX

        private int getCentroidX()
      • getCentroidY

        private int getCentroidY()
      • skipCentroid

        private void skipCentroid()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • skipHighestDimension

        private void skipHighestDimension()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • relate

        public PointValues.Relation relate​(Component2D query)
                                    throws java.io.IOException
        Computes a query component relation with the doc value shape; main entry point to the root of the binary tree
        Throws:
        java.io.IOException
      • relate

        private PointValues.Relation relate​(Component2D queryComponent2D,
                                            boolean splitX,
                                            int pMaxX,
                                            int pMaxY,
                                            int nodeSize)
                                     throws java.io.IOException
        recursive traversal method recurses through tree nodes to compute relation with the query component
        Throws:
        java.io.IOException