Class GraphSONMapper
java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper
- All Implemented Interfaces:
Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
public class GraphSONMapper
extends Object
implements Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
An extension to the standard Jackson
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());
}
}
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphSONMapper.Builderbuild()static GraphSONMapper.Builderbuild(GraphSONMapper mapper) Create a new Builder from a givenGraphSONMapper.org.apache.tinkerpop.shaded.jackson.databind.ObjectMapperCreate a new instance of the internal object mapper that an implementation represents.
-
Field Details
-
DEFAULT_MAX_NUMBER_LENGTH
public static final int DEFAULT_MAX_NUMBER_LENGTH- See Also:
-
-
Method Details
-
createMapper
public org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper createMapper()Description copied from interface:MapperCreate a new instance of the internal object mapper that an implementation represents.- Specified by:
createMapperin interfaceMapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
-
getVersion
-
build
-
build
Create a new Builder from a givenGraphSONMapper.- Returns:
- a new builder, with properties taken from the original mapper already applied.
-
getTypeInfo
-