public class JavaSerializer<T extends Serializable>
extends org.apache.flink.api.common.typeutils.TypeSerializer<T>
Modifier and Type | Class and Description |
---|---|
static class |
JavaSerializer.JavaSerializerSnapshot<T extends Serializable>
JavaSerializer snapshot class. |
Constructor and Description |
---|
JavaSerializer(Class<T> type) |
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) |
JavaSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
org.apache.flink.core.memory.DataOutputView target) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T> |
snapshotConfiguration() |
public boolean isImmutableType()
isImmutableType
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public JavaSerializer<T> duplicate()
duplicate
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public T createInstance()
createInstance
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public T copy(T from)
copy
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public T copy(T from, T reuse)
copy
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public int getLength()
getLength
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
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 extends Serializable>
IOException
public T deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
IOException
public T deserialize(T reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
IOException
public 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 extends Serializable>
IOException
public int hashCode()
hashCode
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public boolean equals(Object obj)
equals
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T> snapshotConfiguration()
snapshotConfiguration
in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Serializable>
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.