T
- the serializable typepublic interface TypeRegistration<T>
At most one of the getShadedSerializer()
, getSerializerShim()
,
and getFunctionOfShadedKryo()
will return a non-null value. If all
three methods return null, then there is no custom serialization logic associated
with this class. Gryo/Kryo will use its default serializer.
Modifier and Type | Method and Description |
---|---|
Function<Kryo,Serializer> |
getFunctionOfShadedKryo() |
int |
getId() |
SerializerShim<T> |
getSerializerShim() |
<any> |
getShadedSerializer() |
Class<T> |
getTargetClass() |
default boolean |
hasSerializer()
Returns true if at least one of
getShadedSerializer() , getSerializerShim() , or
getFunctionOfShadedKryo() is non null. |
Kryo |
registerWith(Kryo kryo)
Registers this type on the supplied
Kryo instance, using whatever custom serializer
may be present, then returns the same Kryo instance supplied as the parameter. |
int getId()
<any> getShadedSerializer()
SerializerShim<T> getSerializerShim()
Function<Kryo,Serializer> getFunctionOfShadedKryo()
Kryo registerWith(Kryo kryo)
Kryo
instance, using whatever custom serializer
may be present, then returns the same Kryo instance supplied as the parameter.kryo
- Kryo instance into which this type is registereddefault boolean hasSerializer()
getShadedSerializer()
, getSerializerShim()
, or
getFunctionOfShadedKryo()
is non null. Returns false if all are null.Copyright © 2013–2017 Apache Software Foundation. All rights reserved.