Class PixelSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<Pixel>
org.apache.sedona.viz.core.Serde.PixelSerializer

public class PixelSerializer extends com.esotericsoftware.kryo.Serializer<Pixel>
This serializer aims at serializing Pixel object. In the generated ByteArray, we put attributes as follows: X, Y, ResolutionX, ResolutionY, isDuplicate, currentPartitionId.
  • 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<Pixel> type)
     
    readPixel(byte[] inputArray)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Pixel 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

    • PixelSerializer

      public PixelSerializer()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Pixel object)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<Pixel>
    • read

      public Pixel read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<Pixel> type)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<Pixel>
    • readPixel

      public Pixel readPixel(byte[] inputArray)