Class GeometrySerde

java.lang.Object
com.esotericsoftware.kryo.Serializer
org.apache.sedona.common.geometrySerde.GeometrySerde
All Implemented Interfaces:
Serializable

public class GeometrySerde extends com.esotericsoftware.kryo.Serializer implements Serializable
Provides methods to efficiently serialize and deserialize geometry types.

Supports Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection, Circle, Envelope, and Geography types.

First byte contains GeometrySerde.Type.id. Then go type-specific bytes, followed by user-data attached to the geometry.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class aClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output out, Object object)
     

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeometrySerde

      public GeometrySerde()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output out, Object object)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer
    • read

      public Object read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class aClass)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer