Class XYShape

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private XYShape()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Field[] createIndexableFields​(java.lang.String fieldName, float x, float y)
      create indexable fields for cartesian point geometry
      static Field[] createIndexableFields​(java.lang.String fieldName, XYLine line)
      create indexable fields for cartesian line geometry
      static Field[] createIndexableFields​(java.lang.String fieldName, XYPolygon polygon)
      create indexable fields for cartesian polygon geometry
      static Query newBoxQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, float minX, float maxX, float minY, float maxY)
      create a query to find all cartesian shapes that intersect a defined bounding box
      static Query newLineQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, XYLine... lines)
      create a query to find all cartesian shapes that intersect a provided linestring (or array of linestrings)
      static Query newPolygonQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, XYPolygon... polygons)
      create a query to find all cartesian shapes that intersect a provided polygon (or array of polygons)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XYShape

        private XYShape()
    • Method Detail

      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    XYPolygon polygon)
        create indexable fields for cartesian polygon geometry
      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    XYLine line)
        create indexable fields for cartesian line geometry
      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    float x,
                                                    float y)
        create indexable fields for cartesian point geometry
      • newBoxQuery

        public static Query newBoxQuery​(java.lang.String field,
                                        ShapeField.QueryRelation queryRelation,
                                        float minX,
                                        float maxX,
                                        float minY,
                                        float maxY)
        create a query to find all cartesian shapes that intersect a defined bounding box
      • newLineQuery

        public static Query newLineQuery​(java.lang.String field,
                                         ShapeField.QueryRelation queryRelation,
                                         XYLine... lines)
        create a query to find all cartesian shapes that intersect a provided linestring (or array of linestrings)
      • newPolygonQuery

        public static Query newPolygonQuery​(java.lang.String field,
                                            ShapeField.QueryRelation queryRelation,
                                            XYPolygon... polygons)
        create a query to find all cartesian shapes that intersect a provided polygon (or array of polygons)