Class GryoMapper
- java.lang.Object
 - 
- org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapper
 
 
- 
- All Implemented Interfaces:
 Mapper<org.apache.tinkerpop.shaded.kryo.Kryo>
public final class GryoMapper extends Object implements Mapper<org.apache.tinkerpop.shaded.kryo.Kryo>
AMapperimplementation for Kryo. This implementation requires that all classes to be serialized by Kryo are registered to it.Graphimplementations providing anIoRegistryshould register their custom classes and/or serializers in one of three ways:- Register just the custom class with a 
nullSerializerimplementation - Register the custom class with a 
Serializerimplementation - 
 Register the custom class with a 
Function<Kryo, Serializer>for those cases where theSerializerrequires theKryoinstance to get constructed. 
public class MyGraphIoRegistry extends AbstractIoRegistry { public MyGraphIoRegistry() { register(GryoIo.class, MyGraphIdClass.class, new MyGraphIdSerializer()); } }- Author:
 - Stephen Mallette (http://stephen.genoprime.com)
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGryoMapper.BuilderA builder to construct aGryoMapperinstance. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GryoMapper.Builderbuild()org.apache.tinkerpop.shaded.kryo.KryocreateMapper()Create a new instance of the internal object mapper that an implementation represents.List<Class>getRegisteredClasses()List<TypeRegistration<?>>getTypeRegistrations()GryoVersiongetVersion() 
 - 
 
- 
- 
Method Detail
- 
createMapper
public org.apache.tinkerpop.shaded.kryo.Kryo 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.kryo.Kryo>
 
- 
getVersion
public GryoVersion getVersion()
 
- 
getTypeRegistrations
public List<TypeRegistration<?>> getTypeRegistrations()
 
- 
build
public static GryoMapper.Builder build()
 
 - 
 
 -