public class GraphSONMapper extends Object implements Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
ObjectMapper
which automatically registers the standard
GraphSONModule
for serializing Graph
elements. This class
can be used for generalized JSON serialization tasks that require meeting GraphSON standards.
Graph
implementations providing an IoRegistry
should register their SimpleModule
implementations to it as follows:
public class MyGraphIoRegistry extends AbstractIoRegistry {
public MyGraphIoRegistry() {
register(GraphSONIo.class, null, new MyGraphSimpleModule());
}
}
Modifier and Type | Class and Description |
---|---|
static class |
GraphSONMapper.Builder |
Modifier and Type | Method and Description |
---|---|
static GraphSONMapper.Builder |
build() |
static GraphSONMapper.Builder |
build(GraphSONMapper mapper)
Create a new Builder from a given
GraphSONMapper . |
org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper |
createMapper()
Create a new instance of the internal object mapper that an implementation represents.
|
TypeInfo |
getTypeInfo() |
GraphSONVersion |
getVersion() |
public org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper createMapper()
Mapper
createMapper
in interface Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
public GraphSONVersion getVersion()
public static GraphSONMapper.Builder build()
public static GraphSONMapper.Builder build(GraphSONMapper mapper)
GraphSONMapper
.public TypeInfo getTypeInfo()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.