public final class EnumSerializer<T extends Enum<T>>
extends org.apache.flink.api.common.typeutils.TypeSerializer<T>
TypeSerializer for Java enums.| Modifier and Type | Class and Description |
|---|---|
static class |
EnumSerializer.EnumSerializerSnapshot<T extends Enum<T>>
TypeSerializerSnapshot for EnumSerializer. |
| Constructor and Description |
|---|
EnumSerializer(Class<T> enumClass) |
| 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) |
EnumSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
org.apache.flink.core.memory.DataOutputView target) |
EnumSerializer.EnumSerializerSnapshot<T> |
snapshotConfiguration() |
String |
toString() |
public boolean isImmutableType()
public EnumSerializer<T> duplicate()
public T createInstance()
public int getLength()
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 Enum<T>>IOExceptionpublic T deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<T extends Enum<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 extends Enum<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 extends Enum<T>>IOExceptionpublic boolean equals(Object obj)
public int hashCode()
public EnumSerializer.EnumSerializerSnapshot<T> snapshotConfiguration()
Copyright © 2024 The Apache Software Foundation. All rights reserved.