Class StarGraphSerializer
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.util.star.StarGraphSerializer
 
- 
- All Implemented Interfaces:
- SerializerShim<StarGraph>
 
 public class StarGraphSerializer extends Object implements SerializerShim<StarGraph> Kryo serializer forStarGraph. Implements an internal versioning capability for backward compatibility. The single byte at the front of the serialization stream denotes the version. That version can be used to choose the correct deserialization mechanism. The limitation is that this versioning won't help with backward compatibility for custom serializers from providers. Providers should be encouraged to write their serializers with backward compatibility in mind.- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Constructor SummaryConstructors Constructor Description StarGraphSerializer(Direction edgeDirectionToSerialize, GraphFilter graphFilter)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <I extends InputShim>
 StarGraphread(KryoShim<I,?> kryo, I input, Class<StarGraph> clazz)If the returnedStarGraphis null, that means that theGraphFilterfiltered the vertex.<O extends OutputShim>
 voidwrite(KryoShim<?,O> kryo, O output, StarGraph starGraph)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim.SerializerShimisImmutable
 
- 
 
- 
- 
- 
Constructor Detail- 
StarGraphSerializerpublic StarGraphSerializer(Direction edgeDirectionToSerialize, GraphFilter graphFilter) 
 
- 
 - 
Method Detail- 
writepublic <O extends OutputShim> void write(KryoShim<?,O> kryo, O output, StarGraph starGraph) - Specified by:
- writein interface- SerializerShim<StarGraph>
 
 - 
readpublic <I extends InputShim> StarGraph read(KryoShim<I,?> kryo, I input, Class<StarGraph> clazz) If the returnedStarGraphis null, that means that theGraphFilterfiltered the vertex.- Specified by:
- readin interface- SerializerShim<StarGraph>
 
 
- 
 
-