Class GenericNodeSerializerViaThrift

java.lang.Object
com.esotericsoftware.kryo.Serializer<org.apache.jena.graph.Node>
org.aksw.jenax.io.kryo.jena.GenericNodeSerializerViaThrift

public class GenericNodeSerializerViaThrift extends com.esotericsoftware.kryo.Serializer<org.apache.jena.graph.Node>
Node serializer using Jena's thrift implementation.
Author:
Claus Stadler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GenericNodeSerializerViaThrift(boolean allowValues)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.graph.Node
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<org.apache.jena.graph.Node> nodeClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.apache.jena.graph.Node node)
     

    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
  • Field Details

    • allowValues

      protected boolean allowValues
  • Constructor Details

    • GenericNodeSerializerViaThrift

      public GenericNodeSerializerViaThrift()
    • GenericNodeSerializerViaThrift

      public GenericNodeSerializerViaThrift(boolean allowValues)
      Parameters:
      allowValues - Whether to encode Nodes as values where possible. May break term equivalence e.g. for doubles.
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.apache.jena.graph.Node node)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<org.apache.jena.graph.Node>
    • read

      public org.apache.jena.graph.Node read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<org.apache.jena.graph.Node> nodeClass)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<org.apache.jena.graph.Node>