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 SummaryNested Classes Modifier and Type Class Description static classGryoMapper.BuilderA builder to construct aGryoMapperinstance.
 - 
Method SummaryAll 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- 
createMapperpublic 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 interface- Mapper<org.apache.tinkerpop.shaded.kryo.Kryo>
 
 - 
getVersionpublic GryoVersion getVersion() 
 - 
getTypeRegistrationspublic List<TypeRegistration<?>> getTypeRegistrations() 
 - 
buildpublic static GryoMapper.Builder build() 
 
- 
 
-