Package | Description |
---|---|
org.apache.lucene.document |
This package contains several point types:
BigIntegerPoint for 128-bit integers
LatLonPoint for latitude/longitude geospatial points
|
Modifier and Type | Method and Description |
---|---|
static ShapeField.QueryRelation |
ShapeField.QueryRelation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeField.QueryRelation[] |
ShapeField.QueryRelation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Query |
LatLonShape.newBoxQuery(String field,
ShapeField.QueryRelation queryRelation,
double minLatitude,
double maxLatitude,
double minLongitude,
double maxLongitude)
create a query to find all indexed geo shapes that intersect a defined bounding box
|
static Query |
XYShape.newBoxQuery(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 |
LatLonShape.newLineQuery(String field,
ShapeField.QueryRelation queryRelation,
Line... lines)
create a query to find all indexed geo shapes that intersect a provided linestring (or array of linestrings)
note: does not support dateline crossing
|
static Query |
XYShape.newLineQuery(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 |
LatLonShape.newPolygonQuery(String field,
ShapeField.QueryRelation queryRelation,
Polygon... polygons)
create a query to find all indexed geo shapes that intersect a provided polygon (or array of polygons)
note: does not support dateline crossing
|
static Query |
XYShape.newPolygonQuery(String field,
ShapeField.QueryRelation queryRelation,
XYPolygon... polygons)
create a query to find all cartesian shapes that intersect a provided polygon (or array of polygons)
|
protected boolean |
XYShapeBoundingBoxQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation)
returns true if the query matches the encoded triangle
|
Constructor and Description |
---|
XYShapeBoundingBoxQuery(String field,
ShapeField.QueryRelation queryRelation,
double minX,
double maxX,
double minY,
double maxY) |
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.