Class TypeSerializerRegistry
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.TypeSerializerRegistry
-
public class TypeSerializerRegistry extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeSerializerRegistry.Builder
-
Field Summary
Fields Modifier and Type Field Description static TypeSerializerRegistryINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeSerializerRegistry.Builderbuild()<DT> TypeSerializer<DT>getSerializer(Class<DT> type)<DT> TypeSerializer<DT>getSerializer(DataType dataType)<DT> CustomTypeSerializer<DT>getSerializerForCustomType(String name)Gets the serializer for a given custom type name.
-
-
-
Field Detail
-
INSTANCE
public static final TypeSerializerRegistry INSTANCE
-
-
Method Detail
-
build
public static TypeSerializerRegistry.Builder build()
-
getSerializer
public <DT> TypeSerializer<DT> getSerializer(Class<DT> type) throws IOException
- Throws:
IOException
-
getSerializer
public <DT> TypeSerializer<DT> getSerializer(DataType dataType) throws IOException
- Throws:
IOException
-
getSerializerForCustomType
public <DT> CustomTypeSerializer<DT> getSerializerForCustomType(String name) throws IOException
Gets the serializer for a given custom type name.- Throws:
IOException
-
-