java.lang.Object
org.apache.lucene.document.ShapeDocValues
org.apache.lucene.document.XYShapeDocValues
A concrete implementation of
ShapeDocValues
for storing binary doc value representation
of XYShape
geometries in a XYShapeDocValuesField
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
ConstructorsModifierConstructorDescriptionprotected
XYShapeDocValues
(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
Modifier and TypeMethodDescriptionprotected XYRectangle
protected XYPoint
protected ShapeDocValues.Encoder
Methods inherited from class org.apache.lucene.document.ShapeDocValues
binaryValue, getEncodedCentroidX, getEncodedCentroidY, getEncodedMaxX, getEncodedMaxY, getEncodedMinX, getEncodedMinY, getHighestDimension, newGeometryQuery, numberOfTerms, relate, vIntSize, vLongSize
-
Constructor Details
-
XYShapeDocValues
protected ctor for instantiating a cartesian doc value based on a tessellation -
XYShapeDocValues
protected ctor for instantiating a cartesian doc value based on an already retrieved binary format
-
-
Method Details
-
getCentroid
- Specified by:
getCentroid
in classShapeDocValues
-
getBoundingBox
- Specified by:
getBoundingBox
in classShapeDocValues
-
computeCentroid
- Specified by:
computeCentroid
in classShapeDocValues
-
computeBoundingBox
- Specified by:
computeBoundingBox
in classShapeDocValues
-
getEncoder
- Specified by:
getEncoder
in classShapeDocValues
-