Package | Description |
---|---|
org.apache.tinkerpop.gremlin.structure.io.gryo |
Modifier and Type | Method and Description |
---|---|
GryoMapper.Builder |
GryoMapper.Builder.addCustom(Class... custom)
Register custom classes to serializes with gryo using default serialization.
|
GryoMapper.Builder |
GryoMapper.Builder.addCustom(Class clazz,
Function<org.apache.tinkerpop.shaded.kryo.Kryo,org.apache.tinkerpop.shaded.kryo.Serializer> functionOfKryo)
Register a custom class to serialize with a custom serializer as returned from a
Function . |
GryoMapper.Builder |
GryoMapper.Builder.addCustom(Class clazz,
org.apache.tinkerpop.shaded.kryo.Serializer serializer)
Register custom class to serialize with a custom serialization class.
|
GryoMapper.Builder |
GryoMapper.Builder.addCustom(Class clazz,
SerializerShim serializer)
Register custom class to serialize with a custom serialization shim.
|
GryoMapper.Builder |
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 . |
static GryoMapper.Builder |
GryoMapper.build() |
GryoMapper.Builder |
GryoMapper.Builder.classResolver(Supplier<org.apache.tinkerpop.shaded.kryo.ClassResolver> classResolverSupplier)
Provides a custom Kryo
ClassResolver to be supplied to a Kryo instance. |
GryoMapper.Builder |
GryoIo.mapper()
Constructs a
Mapper.Builder which is responsible for constructing the abstraction over different
serialization methods. |
GryoMapper.Builder |
GryoMapper.Builder.referenceTracking(boolean referenceTracking)
By default, each appearance of an object in the graph after the first is stored as an integer ordinal.
|
GryoMapper.Builder |
GryoMapper.Builder.registrationRequired(boolean registrationRequired)
When set to
true , all classes serialized by the Kryo instances created from this
GryoMapper must have their classes known up front and registered appropriately through this
builder. |
GryoMapper.Builder |
GryoMapper.Builder.version(GryoVersion version)
The version of Gryo to use in the mapper.
|
Modifier and Type | Method and Description |
---|---|
GryoPool.Builder |
GryoPool.Builder.initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)
A consumer to update the
GryoMapper.Builder once constructed. |
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.