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>
AWrappedKryoSerializer
is a utility class for anyKryo
Serializer
that wraps around any implementation of a GafferToBytesSerialiser
. Implementations should simply use their constructor to call super with the wrappedToBytesSerialiser
as the parameter.
-
-
Constructor Summary
Constructors Constructor Description WrappedKryoSerializer(S serialiser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
T
read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<T> type)
void
write(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:
write
in 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:
read
in classcom.esotericsoftware.kryo.Serializer<T>
-
-