Interface Mapper.Builder<B extends Mapper.Builder>
-
- All Known Implementing Classes:
GraphMLMapper.Builder
,GraphSONMapper.Builder
,GryoMapper.Builder
public static interface Mapper.Builder<B extends Mapper.Builder>
Largely a marker interface for builders that constructMapper
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default B
addRegistries(List<IoRegistry> registries)
Adds a vendor suppliedIoRegistry
to theMapper.Builder
which enables it to check for vendor custom serializers to add to theMapper
.B
addRegistry(IoRegistry registry)
Adds a vendor suppliedIoRegistry
to theMapper.Builder
which enables it to check for vendor custom serializers to add to theMapper
.
-
-
-
Method Detail
-
addRegistry
B addRegistry(IoRegistry registry)
Adds a vendor suppliedIoRegistry
to theMapper.Builder
which enables it to check for vendor custom serializers to add to theMapper
. AllIo
implementations should expose this method via thisMapper.Builder
so 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 withIoRegistry
A
added first andB
second must be read by aMapper
with that same registry ordering. Attempting to addB
beforeA
will result in errors.
-
addRegistries
default B addRegistries(List<IoRegistry> registries)
Adds a vendor suppliedIoRegistry
to theMapper.Builder
which enables it to check for vendor custom serializers to add to theMapper
. AllIo
implementations should expose this method via thisMapper.Builder
so 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 withIoRegistry
A
added first andB
second must be read by aMapper
with that same registry ordering. Attempting to addB
beforeA
will result in errors.
-
-