public static final class GryoMapper.Builder extends Object implements Mapper.Builder<GryoMapper.Builder>
GryoMapper
instance.Modifier and Type | Method and Description |
---|---|
GryoMapper.Builder |
addCustom(Class... custom)
Register custom classes to serializes with gryo using default serialization.
|
GryoMapper.Builder |
addCustom(Class clazz,
Function<Kryo,Serializer> serializer)
Register a custom class to serialize with a custom serializer as returned from a
Function . |
GryoMapper.Builder |
addCustom(Class clazz,
Serializer serializer)
Register custom class to serialize with a custom serialization class.
|
GryoMapper.Builder |
addRegistry(IoRegistry registry)
Adds a vendor supplied
IoRegistry to the Mapper.Builder which enables it to check for
vendor custom serializers to add to the Mapper . |
GryoMapper |
create()
Creates a
GryoMapper . |
public GryoMapper.Builder addRegistry(IoRegistry registry)
IoRegistry
to the Mapper.Builder
which enables it to check for
vendor custom serializers to add to the Mapper
. All Io
implementations should expose
this method via this Mapper.Builder
so that it is compatible with Graph.io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I>)
.addRegistry
in interface Mapper.Builder<GryoMapper.Builder>
public GryoMapper.Builder addCustom(Class... custom)
public GryoMapper.Builder addCustom(Class clazz, Serializer serializer)
public GryoMapper.Builder addCustom(Class clazz, Function<Kryo,Serializer> serializer)
Function
.public GryoMapper create()
GryoMapper
.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.