- java.lang.Object
-
- org.apache.lucene.document.ShapeDocValues
-
- org.apache.lucene.document.LatLonShapeDocValues
-
public final class LatLonShapeDocValues extends ShapeDocValues
A concrete implementation ofShapeDocValues
for storing binary doc value representation ofLatLonShape
geometries in aLatLonShapeDocValuesField
Note: This class cannot be instantiated directly. See
LatLonShape
for factory API based on different geometries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.document.ShapeDocValues
ShapeDocValues.Encoder
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.document.ShapeDocValues
boundingBox, centroid, shapeComparator, VERSION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LatLonShapeDocValues(java.util.List<ShapeField.DecodedTriangle> tessellation)
protected ctor for instantiating a lat lon doc value based on a tessellationprotected
LatLonShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a lat lon doc value based on an already retrieved binary format
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Rectangle
computeBoundingBox()
protected Point
computeCentroid()
Rectangle
getBoundingBox()
Point
getCentroid()
protected ShapeDocValues.Encoder
getEncoder()
-
Methods inherited from class org.apache.lucene.document.ShapeDocValues
binaryValue, getEncodedCentroidX, getEncodedCentroidY, getEncodedMaxX, getEncodedMaxY, getEncodedMinX, getEncodedMinY, getHighestDimension, newGeometryQuery, numberOfTerms, relate, vIntSize, vLongSize
-
-
-
-
Constructor Detail
-
LatLonShapeDocValues
protected LatLonShapeDocValues(java.util.List<ShapeField.DecodedTriangle> tessellation)
protected ctor for instantiating a lat lon doc value based on a tessellation
-
LatLonShapeDocValues
protected LatLonShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a lat lon doc value based on an already retrieved binary format
-
-
Method Detail
-
getCentroid
public Point getCentroid()
- Specified by:
getCentroid
in classShapeDocValues
-
getBoundingBox
public Rectangle getBoundingBox()
- Specified by:
getBoundingBox
in classShapeDocValues
-
computeCentroid
protected Point computeCentroid()
- Specified by:
computeCentroid
in classShapeDocValues
-
computeBoundingBox
protected Rectangle computeBoundingBox()
- Specified by:
computeBoundingBox
in classShapeDocValues
-
getEncoder
protected ShapeDocValues.Encoder getEncoder()
- Specified by:
getEncoder
in classShapeDocValues
-
-