Class Geo3dBinaryCodec
- java.lang.Object
-
- org.locationtech.spatial4j.io.BinaryCodec
-
- org.apache.lucene.spatial.spatial4j.Geo3dBinaryCodec
-
public class Geo3dBinaryCodec extends org.locationtech.spatial4j.io.BinaryCodec
Geo3d implementation ofBinaryCodec
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description Geo3dBinaryCodec(org.locationtech.spatial4j.context.SpatialContext ctx, org.locationtech.spatial4j.context.SpatialContextFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.spatial4j.shape.Circle
readCircle(DataInput dataInput)
org.locationtech.spatial4j.shape.ShapeCollection
readCollection(DataInput dataInput)
org.locationtech.spatial4j.shape.Point
readPoint(DataInput dataInput)
org.locationtech.spatial4j.shape.Rectangle
readRect(DataInput dataInput)
org.locationtech.spatial4j.shape.Shape
readShape(DataInput dataInput)
void
writeCircle(DataOutput dataOutput, org.locationtech.spatial4j.shape.Circle c)
void
writeCollection(DataOutput dataOutput, org.locationtech.spatial4j.shape.ShapeCollection col)
void
writePoint(DataOutput dataOutput, org.locationtech.spatial4j.shape.Point pt)
void
writeRect(DataOutput dataOutput, org.locationtech.spatial4j.shape.Rectangle r)
void
writeShape(DataOutput dataOutput, org.locationtech.spatial4j.shape.Shape s)
-
-
-
Method Detail
-
readShape
public org.locationtech.spatial4j.shape.Shape readShape(DataInput dataInput) throws IOException
- Overrides:
readShape
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
writeShape
public void writeShape(DataOutput dataOutput, org.locationtech.spatial4j.shape.Shape s) throws IOException
- Overrides:
writeShape
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
readPoint
public org.locationtech.spatial4j.shape.Point readPoint(DataInput dataInput) throws IOException
- Overrides:
readPoint
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
writePoint
public void writePoint(DataOutput dataOutput, org.locationtech.spatial4j.shape.Point pt) throws IOException
- Overrides:
writePoint
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
readRect
public org.locationtech.spatial4j.shape.Rectangle readRect(DataInput dataInput) throws IOException
- Overrides:
readRect
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
writeRect
public void writeRect(DataOutput dataOutput, org.locationtech.spatial4j.shape.Rectangle r) throws IOException
- Overrides:
writeRect
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
readCircle
public org.locationtech.spatial4j.shape.Circle readCircle(DataInput dataInput) throws IOException
- Overrides:
readCircle
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
writeCircle
public void writeCircle(DataOutput dataOutput, org.locationtech.spatial4j.shape.Circle c) throws IOException
- Overrides:
writeCircle
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
readCollection
public org.locationtech.spatial4j.shape.ShapeCollection readCollection(DataInput dataInput) throws IOException
- Overrides:
readCollection
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
writeCollection
public void writeCollection(DataOutput dataOutput, org.locationtech.spatial4j.shape.ShapeCollection col) throws IOException
- Overrides:
writeCollection
in classorg.locationtech.spatial4j.io.BinaryCodec
- Throws:
IOException
-
-