T - Object type, should implement Writablepublic class DirectWritableSerializer<T extends org.apache.hadoop.io.Writable>
extends com.esotericsoftware.kryo.Serializer<T>
| Constructor and Description |
|---|
DirectWritableSerializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
copy(com.esotericsoftware.kryo.Kryo kryo,
T original) |
protected T |
create(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<T> type)
Used by
read(Kryo, Input, Class) to create the new object. |
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 object) |
public void write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
T object)
write in class com.esotericsoftware.kryo.Serializer<T extends org.apache.hadoop.io.Writable>public T read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<T> type)
read in class com.esotericsoftware.kryo.Serializer<T extends org.apache.hadoop.io.Writable>public T copy(com.esotericsoftware.kryo.Kryo kryo, T original)
copy in class com.esotericsoftware.kryo.Serializer<T extends org.apache.hadoop.io.Writable>protected T create(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<T> type)
read(Kryo, Input, Class) to create the new object.
This can be overridden to customize object creation, eg to call a
constructor with arguments. The default implementation
uses Kryo.newInstance(Class).kryo - Kryo object instanceinput - Inputtype - Type of the class to createCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.