Class ShadedImmutableMapSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>>
net.sansa_stack.query.spark.ontop.kryo.ShadedImmutableMapSerializer

public class ShadedImmutableMapSerializer extends com.esotericsoftware.kryo.Serializer<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>>
A kryo Serializer for guava-libraries ImmutableMap.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,Object>
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>> type)
     
    static void
    registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
    Creates a new ShadedImmutableMapSerializer and registers its serializer for the several ImmutableMap related classes.
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object> immutableMap)
     

    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

    • ShadedImmutableMapSerializer

      public ShadedImmutableMapSerializer()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object> immutableMap)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>>
    • read

      public it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,Object> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>> type)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<Object,? extends Object>>
    • registerSerializers

      public static void registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
      Creates a new ShadedImmutableMapSerializer and registers its serializer for the several ImmutableMap related classes.
      Parameters:
      kryo - the Kryo instance to set the serializer on