public class StarGraphGraphSONSerializer
extends <any>
| Modifier and Type | Class and Description |
|---|---|
static class |
StarGraphGraphSONSerializer.DirectionalStarGraph |
| Constructor and Description |
|---|
StarGraphGraphSONSerializer(boolean normalize) |
| Modifier and Type | Method and Description |
|---|---|
static void |
readStarGraphEdges(Function<Attachable<Edge>,Edge> edgeMaker,
StarGraph starGraph,
Map<String,Object> vertexData,
String direction)
A helper function for reading vertex edges from a serialized
StarGraph (i.e. |
static StarGraph |
readStarGraphVertex(Map<String,Object> vertexData)
A helper function for reading a serialized
StarGraph from a Map generated by
StarGraphGraphSONSerializer. |
void |
serialize(StarGraphGraphSONSerializer.DirectionalStarGraph starGraph,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider) |
void |
serializeWithType(StarGraphGraphSONSerializer.DirectionalStarGraph starGraph,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider,
TypeSerializer typeSerializer) |
public StarGraphGraphSONSerializer(boolean normalize)
public void serialize(StarGraphGraphSONSerializer.DirectionalStarGraph starGraph, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonGenerationException
IOExceptionJsonGenerationExceptionpublic void serializeWithType(StarGraphGraphSONSerializer.DirectionalStarGraph starGraph, JsonGenerator jsonGenerator, SerializerProvider serializerProvider, TypeSerializer typeSerializer) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic static void readStarGraphEdges(Function<Attachable<Edge>,Edge> edgeMaker, StarGraph starGraph, Map<String,Object> vertexData, String direction) throws IOException
StarGraph (i.e. a Map) generated by
StarGraphGraphSONSerializer.IOExceptionpublic static StarGraph readStarGraphVertex(Map<String,Object> vertexData) throws IOException
StarGraph from a Map generated by
StarGraphGraphSONSerializer.IOExceptionCopyright © 2013–2016 Apache Software Foundation. All rights reserved.