Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
Modifier and Type | Field and Description |
---|---|
(package private) ShapeField.QueryRelation |
ShapeQuery.queryRelation
|
Modifier and Type | Method and Description |
---|---|
ShapeField.QueryRelation |
ShapeQuery.getQueryRelation()
returns the query relation
|
static ShapeField.QueryRelation |
ShapeField.QueryRelation.valueOf(java.lang.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(java.lang.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(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 |
LatLonShape.newLineQuery(java.lang.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(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 |
LatLonShape.newPolygonQuery(java.lang.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(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)
|
protected boolean |
XYShapePolygonQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation) |
protected boolean |
XYShapeLineQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation) |
protected boolean |
XYShapeBoundingBoxQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation)
returns true if the query matches the encoded triangle
|
protected abstract boolean |
ShapeQuery.queryMatches(byte[] triangle,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation)
returns true if the provided triangle matches the query
|
protected boolean |
LatLonShapePolygonQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation) |
protected boolean |
LatLonShapeLineQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation) |
protected boolean |
LatLonShapeBoundingBoxQuery.queryMatches(byte[] t,
ShapeField.DecodedTriangle scratchTriangle,
ShapeField.QueryRelation queryRelation)
returns true if the query matches the encoded triangle
|
protected PointValues.Relation |
ShapeQuery.relateRangeToQuery(byte[] minTriangle,
byte[] maxTriangle,
ShapeField.QueryRelation queryRelation)
relates a range of triangles (internal node) to the query
|
Constructor and Description |
---|
LatLonShapeBoundingBoxQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
double minLat,
double maxLat,
double minLon,
double maxLon) |
LatLonShapeLineQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
Line... lines) |
LatLonShapePolygonQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
Polygon... polygons)
Creates a query that matches all indexed shapes to the provided polygons
|
ShapeQuery(java.lang.String field,
ShapeField.QueryRelation queryType) |
XYShapeBoundingBoxQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
double minX,
double maxX,
double minY,
double maxY) |
XYShapeLineQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
XYLine... lines) |
XYShapePolygonQuery(java.lang.String field,
ShapeField.QueryRelation queryRelation,
XYPolygon... polygons)
Creates a query that matches all indexed shapes to the provided polygons
|