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 of
BinaryCodec- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.locationtech.spatial4j.io.BinaryCodec
ctx, TYPE_CIRCLE, TYPE_COLL, TYPE_GEOM, TYPE_POINT, TYPE_RECT -
Constructor Summary
ConstructorsConstructorDescriptionGeo3dBinaryCodec(org.locationtech.spatial4j.context.SpatialContext ctx, org.locationtech.spatial4j.context.SpatialContextFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.spatial4j.shape.CirclereadCircle(DataInput dataInput) org.locationtech.spatial4j.shape.ShapeCollectionreadCollection(DataInput dataInput) org.locationtech.spatial4j.shape.Pointorg.locationtech.spatial4j.shape.Rectangleorg.locationtech.spatial4j.shape.ShapevoidwriteCircle(DataOutput dataOutput, org.locationtech.spatial4j.shape.Circle c) voidwriteCollection(DataOutput dataOutput, org.locationtech.spatial4j.shape.ShapeCollection col) voidwritePoint(DataOutput dataOutput, org.locationtech.spatial4j.shape.Point pt) voidwriteRect(DataOutput dataOutput, org.locationtech.spatial4j.shape.Rectangle r) voidwriteShape(DataOutput dataOutput, org.locationtech.spatial4j.shape.Shape s) Methods inherited from class org.locationtech.spatial4j.io.BinaryCodec
readDim, readShapeByTypeIfSupported, typeForShape, writeDim, writeShapeByTypeIfSupported, writeShapeByTypeIfSupported
-
Constructor Details
-
Geo3dBinaryCodec
public Geo3dBinaryCodec(org.locationtech.spatial4j.context.SpatialContext ctx, org.locationtech.spatial4j.context.SpatialContextFactory factory)
-
-
Method Details
-
readShape
- Overrides:
readShapein classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
writeShape
public void writeShape(DataOutput dataOutput, org.locationtech.spatial4j.shape.Shape s) throws IOException - Overrides:
writeShapein classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
readPoint
- Overrides:
readPointin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
writePoint
public void writePoint(DataOutput dataOutput, org.locationtech.spatial4j.shape.Point pt) throws IOException - Overrides:
writePointin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
readRect
- Overrides:
readRectin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
writeRect
public void writeRect(DataOutput dataOutput, org.locationtech.spatial4j.shape.Rectangle r) throws IOException - Overrides:
writeRectin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
readCircle
- Overrides:
readCirclein classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
writeCircle
public void writeCircle(DataOutput dataOutput, org.locationtech.spatial4j.shape.Circle c) throws IOException - Overrides:
writeCirclein classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
readCollection
public org.locationtech.spatial4j.shape.ShapeCollection readCollection(DataInput dataInput) throws IOException - Overrides:
readCollectionin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-
writeCollection
public void writeCollection(DataOutput dataOutput, org.locationtech.spatial4j.shape.ShapeCollection col) throws IOException - Overrides:
writeCollectionin classorg.locationtech.spatial4j.io.BinaryCodec- Throws:
IOException
-