public class StarGraphSerializer extends Object implements SerializerShim<StarGraph>
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.| Constructor and Description |
|---|
StarGraphSerializer(Direction edgeDirectionToSerialize,
GraphFilter graphFilter) |
| Modifier and Type | Method and Description |
|---|---|
<I extends InputShim> |
read(KryoShim<I,?> kryo,
I input,
Class<StarGraph> clazz)
If the returned
StarGraph is null, that means that the GraphFilter filtered the vertex. |
<O extends OutputShim> |
write(KryoShim<?,O> kryo,
O output,
StarGraph starGraph) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisImmutablepublic StarGraphSerializer(Direction edgeDirectionToSerialize, GraphFilter graphFilter)
public <O extends OutputShim> void write(KryoShim<?,O> kryo, O output, StarGraph starGraph)
write in interface SerializerShim<StarGraph>public <I extends InputShim> StarGraph read(KryoShim<I,?> kryo, I input, Class<StarGraph> clazz)
StarGraph is null, that means that the GraphFilter filtered the vertex.read in interface SerializerShim<StarGraph>Copyright © 2013–2019 Apache Software Foundation. All rights reserved.