Class WrappedKryoSerializer<S extends ToBytesSerialiser<T>,T>
- java.lang.Object
-
- com.esotericsoftware.kryo.Serializer<T>
-
- uk.gov.gchq.gaffer.spark.serialisation.kryo.WrappedKryoSerializer<S,T>
-
- Type Parameters:
S- the serialiser being wrappedT- the type for which the serialiser is to serialise
- Direct Known Subclasses:
HllSketchKryoSerializer,HllUnionKryoSerializer,HyperLogLogPlusKryoSerializer,LongsSketchKryoSerializer,ReservoirLongsSketchKryoSerializer,ReservoirLongsUnionKryoSerializer,StringsSketchKryoSerializer,StringsSketchKryoSerializer,StringsUnionKryoSerializer
public abstract class WrappedKryoSerializer<S extends ToBytesSerialiser<T>,T> extends com.esotericsoftware.kryo.Serializer<T>AWrappedKryoSerializeris a utility class for anyKryoSerializerthat wraps around any implementation of a GafferToBytesSerialiser. Implementations should simply use their constructor to call super with the wrappedToBytesSerialiseras the parameter.
-
-
Constructor Summary
Constructors Constructor Description WrappedKryoSerializer(S serialiser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()Tread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<T> type)voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, T obj)
-
-
-
Constructor Detail
-
WrappedKryoSerializer
public WrappedKryoSerializer(S serialiser)
-
-
Method Detail
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, T obj)- Specified by:
writein classcom.esotericsoftware.kryo.Serializer<T>
-
read
public T read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<T> type)
- Specified by:
readin classcom.esotericsoftware.kryo.Serializer<T>
-
-