@Internal public class KryoRegistration extends Object implements Serializable
KryoRegistration
resembles a registered class and its serializer in Kryo.Modifier and Type | Class and Description |
---|---|
static class |
KryoRegistration.SerializerDefinitionType
IMPORTANT: the order of the enumerations must not change, since their ordinals are used for
serialization.
|
Constructor and Description |
---|
KryoRegistration(Class<?> registeredClass) |
KryoRegistration(Class<?> registeredClass,
Class<? extends com.esotericsoftware.kryo.Serializer<?>> serializerClass) |
KryoRegistration(Class<?> registeredClass,
ExecutionConfig.SerializableSerializer<? extends com.esotericsoftware.kryo.Serializer<?>> serializableSerializerInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<?> |
getRegisteredClass() |
ExecutionConfig.SerializableSerializer<? extends com.esotericsoftware.kryo.Serializer<?>> |
getSerializableSerializerInstance() |
com.esotericsoftware.kryo.Serializer<?> |
getSerializer(com.esotericsoftware.kryo.Kryo kryo) |
Class<? extends com.esotericsoftware.kryo.Serializer<?>> |
getSerializerClass() |
KryoRegistration.SerializerDefinitionType |
getSerializerDefinitionType() |
int |
hashCode() |
public KryoRegistration(Class<?> registeredClass)
public KryoRegistration(Class<?> registeredClass, Class<? extends com.esotericsoftware.kryo.Serializer<?>> serializerClass)
public KryoRegistration(Class<?> registeredClass, ExecutionConfig.SerializableSerializer<? extends com.esotericsoftware.kryo.Serializer<?>> serializableSerializerInstance)
public Class<?> getRegisteredClass()
public KryoRegistration.SerializerDefinitionType getSerializerDefinitionType()
@Nullable public Class<? extends com.esotericsoftware.kryo.Serializer<?>> getSerializerClass()
@Nullable public ExecutionConfig.SerializableSerializer<? extends com.esotericsoftware.kryo.Serializer<?>> getSerializableSerializerInstance()
public com.esotericsoftware.kryo.Serializer<?> getSerializer(com.esotericsoftware.kryo.Kryo kryo)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.