- java.lang.Object
-
- org.apache.lucene.document.ShapeDocValues
-
- org.apache.lucene.document.XYShapeDocValues
-
public final class XYShapeDocValues extends ShapeDocValues
A concrete implementation ofShapeDocValues
for storing binary doc value representation ofXYShape
geometries in aXYShapeDocValuesField
Note: This class cannot be instantiated directly. See
XYShape
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
XYShapeDocValues(java.util.List<ShapeField.DecodedTriangle> tessellation)
protected ctor for instantiating a cartesian doc value based on a tessellationprotected
XYShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a cartesian doc value based on an already retrieved binary format
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XYRectangle
computeBoundingBox()
protected XYPoint
computeCentroid()
XYRectangle
getBoundingBox()
XYPoint
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
-
XYShapeDocValues
protected XYShapeDocValues(java.util.List<ShapeField.DecodedTriangle> tessellation)
protected ctor for instantiating a cartesian doc value based on a tessellation
-
XYShapeDocValues
protected XYShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a cartesian doc value based on an already retrieved binary format
-
-
Method Detail
-
getCentroid
public XYPoint getCentroid()
- Specified by:
getCentroid
in classShapeDocValues
-
getBoundingBox
public XYRectangle getBoundingBox()
- Specified by:
getBoundingBox
in classShapeDocValues
-
computeCentroid
protected XYPoint computeCentroid()
- Specified by:
computeCentroid
in classShapeDocValues
-
computeBoundingBox
protected XYRectangle computeBoundingBox()
- Specified by:
computeBoundingBox
in classShapeDocValues
-
getEncoder
protected ShapeDocValues.Encoder getEncoder()
- Specified by:
getEncoder
in classShapeDocValues
-
-