T - The type to be serialized.public class KryoSerializer<T>
extends org.apache.flink.api.common.typeutils.TypeSerializer<T>
| Modifier | Constructor and Description |
|---|---|
|
KryoSerializer(Class<T> type,
org.apache.flink.api.common.ExecutionConfig executionConfig) |
protected |
KryoSerializer(KryoSerializer<T> toCopy)
Copy-constructor that does not copy transient fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
T |
copy(T from) |
T |
copy(T from,
T reuse) |
T |
createInstance() |
T |
deserialize(org.apache.flink.core.memory.DataInputView source) |
T |
deserialize(T reuse,
org.apache.flink.core.memory.DataInputView source) |
KryoSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
com.esotericsoftware.kryo.Kryo |
getKryo() |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
org.apache.flink.core.memory.DataOutputView target) |
public KryoSerializer(Class<T> type, org.apache.flink.api.common.ExecutionConfig executionConfig)
protected KryoSerializer(KryoSerializer<T> toCopy)
public boolean isImmutableType()
isImmutableType in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public KryoSerializer<T> duplicate()
duplicate in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public T createInstance()
createInstance in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public T copy(T from)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public T copy(T from, T reuse)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public int getLength()
getLength in class org.apache.flink.api.common.typeutils.TypeSerializer<T>public void serialize(T record, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize in class org.apache.flink.api.common.typeutils.TypeSerializer<T>IOExceptionpublic T deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<T>IOExceptionpublic T deserialize(T reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<T>IOExceptionpublic void copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<T>IOExceptionpublic com.esotericsoftware.kryo.Kryo getKryo()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.