Class StarGraphSerializer
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.star.StarGraphSerializer
- All Implemented Interfaces:
SerializerShim<StarGraph>
Kryo serializer for
StarGraph. 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 Summary
ConstructorsConstructorDescriptionStarGraphSerializer(Direction edgeDirectionToSerialize, GraphFilter graphFilter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim.SerializerShim
isImmutable
-
Constructor Details
-
StarGraphSerializer
-
-
Method Details
-
write
- Specified by:
writein interfaceSerializerShim<StarGraph>
-
read
If the returnedStarGraphis null, that means that theGraphFilterfiltered the vertex.- Specified by:
readin interfaceSerializerShim<StarGraph>
-