Class GraphSONMapper.Builder
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper.Builder
 
- 
- All Implemented Interfaces:
- Mapper.Builder<GraphSONMapper.Builder>
 - Enclosing class:
- GraphSONMapper
 
 public static class GraphSONMapper.Builder extends Object implements Mapper.Builder<GraphSONMapper.Builder> 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphSONMapper.BuilderaddCustomModule(org.apache.tinkerpop.shaded.jackson.databind.module.SimpleModule custom)Supply a mapper module for serialization/deserialization.GraphSONMapper.BuilderaddDefaultXModule(boolean includeDefaultXModule)Supply a default extension module of V2_0 and V3_0 for serialization/deserialization.GraphSONMapper.BuilderaddRegistry(IoRegistry registry)Adds a vendor suppliedIoRegistryto theMapper.Builderwhich enables it to check for vendor custom serializers to add to theMapper.GraphSONMappercreate()GraphSONMapper.BuilderloadCustomModules(boolean loadCustomModules)Try to loadSimpleModuleinstances from the current classpath.GraphSONMapper.BuildermaxNestingDepth(int maxNestingDepth)GraphSONMapper.BuildermaxNumberLength(int maxNumLength)GraphSONMapper.BuildermaxStringLength(int maxStringLength)GraphSONMapper.Buildernormalize(boolean normalize)Forces keys to be sorted.GraphSONMapper.BuildertypeInfo(TypeInfo typeInfo)Specify if the values are going to be typed or not, and at which level.GraphSONMapper.Builderversion(String version)Set the version of GraphSON to use.GraphSONMapper.Builderversion(GraphSONVersion version)Set the version of GraphSON to use.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.io.Mapper.BuilderaddRegistries
 
- 
 
- 
- 
- 
Method Detail- 
addRegistrypublic GraphSONMapper.Builder addRegistry(IoRegistry registry) Adds a vendor suppliedIoRegistryto theMapper.Builderwhich enables it to check for vendor custom serializers to add to theMapper. AllIoimplementations should expose this method via thisMapper.Builderso that it is compatible withGraph.io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I>). Successive calls to this method will add multiple registries. Registry order must be respected when doing so. In other words, data written withIoRegistryAadded first andBsecond must be read by aMapperwith that same registry ordering. Attempting to addBbeforeAwill result in errors.- Specified by:
- addRegistryin interface- Mapper.Builder<GraphSONMapper.Builder>
 
 - 
versionpublic GraphSONMapper.Builder version(GraphSONVersion version) Set the version of GraphSON to use. The default isGraphSONVersion.V3_0.
 - 
versionpublic GraphSONMapper.Builder version(String version) Set the version of GraphSON to use.
 - 
addCustomModulepublic GraphSONMapper.Builder addCustomModule(org.apache.tinkerpop.shaded.jackson.databind.module.SimpleModule custom) Supply a mapper module for serialization/deserialization.
 - 
addDefaultXModulepublic GraphSONMapper.Builder addDefaultXModule(boolean includeDefaultXModule) Supply a default extension module of V2_0 and V3_0 for serialization/deserialization.
 - 
loadCustomModulespublic GraphSONMapper.Builder loadCustomModules(boolean loadCustomModules) Try to loadSimpleModuleinstances from the current classpath. These are loaded in addition to the one supplied to theaddCustomModule(SimpleModule);
 - 
normalizepublic GraphSONMapper.Builder normalize(boolean normalize) Forces keys to be sorted.
 - 
typeInfopublic GraphSONMapper.Builder typeInfo(TypeInfo typeInfo) Specify if the values are going to be typed or not, and at which level. The level can beTypeInfo.NO_TYPESorTypeInfo.PARTIAL_TYPES, and could be extended in the future.
 - 
maxNumberLengthpublic GraphSONMapper.Builder maxNumberLength(int maxNumLength) 
 - 
maxNestingDepthpublic GraphSONMapper.Builder maxNestingDepth(int maxNestingDepth) 
 - 
maxStringLengthpublic GraphSONMapper.Builder maxStringLength(int maxStringLength) 
 - 
createpublic GraphSONMapper create() 
 
- 
 
-