Module org.elasticsearch.server
Package org.elasticsearch.lucene.spatial
Class GeometryDocValueReader
java.lang.Object
org.elasticsearch.lucene.spatial.GeometryDocValueReader
A reusable Geometry doc value reader for a previous serialized
Geometry
using
GeometryDocValueWriter
.
-----------------------------------------
| The binary format of the tree |
-----------------------------------------
----------------------------------------- --
| centroid-x-coord (4 bytes) | |
----------------------------------------- |
| centroid-y-coord (4 bytes) | |
----------------------------------------- |
| DimensionalShapeType (1 byte) | | Centroid-related header
----------------------------------------- |
| Sum of weights (VLong 1-8 bytes) | |
----------------------------------------- --
| Extent (var-encoding) |
-----------------------------------------
| Triangle Tree |
-----------------------------------------
------------------------------------------
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.util.BytesRef
int
returns the encoded X coordinate of the centroid.int
returns the encoded Y coordinate of the centroid.returns theExtent
of this geometry.double
void
reset
(org.apache.lucene.util.BytesRef bytesRef) reset the geometry.void
visit
(TriangleTreeVisitor visitor) Visit the triangle tree with the provided visitor
-
Constructor Details
-
GeometryDocValueReader
public GeometryDocValueReader()
-
-
Method Details
-
reset
reset the geometry.- Throws:
IOException
-
getExtent
returns theExtent
of this geometry.- Throws:
IOException
-
getCentroidX
returns the encoded X coordinate of the centroid.- Throws:
IOException
-
getCentroidY
returns the encoded Y coordinate of the centroid.- Throws:
IOException
-
getDimensionalShapeType
-
getSumCentroidWeight
- Throws:
IOException
-
visit
Visit the triangle tree with the provided visitor- Throws:
IOException
-
getBytesRef
public org.apache.lucene.util.BytesRef getBytesRef()
-