public static class EnumValueSerializer.ScalaEnumSerializerConfigSnapshot<E extends scala.Enumeration> extends TypeSerializerConfigSnapshot
Constructor and Description |
---|
ScalaEnumSerializerConfigSnapshot() |
ScalaEnumSerializerConfigSnapshot(E enum_) |
Modifier and Type | Method and Description |
---|---|
Class<E> |
enumClass() |
scala.collection.immutable.List<scala.Tuple2<String,Object>> |
enumConstants() |
boolean |
equals(Object obj) |
int[] |
getCompatibleVersions()
Returns the compatible version values.
|
Class<E> |
getEnumClass() |
scala.collection.immutable.List<scala.Tuple2<String,Object>> |
getEnumConstants() |
int |
getVersion()
Returns the version number of the object.
|
int |
hashCode() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
getUserCodeClassLoader, setUserCodeClassLoader
getReadVersion
public ScalaEnumSerializerConfigSnapshot()
public ScalaEnumSerializerConfigSnapshot(E enum_)
public void write(DataOutputView out)
IOReadableWritable
write
in interface IOReadableWritable
write
in class VersionedIOReadableWritable
out
- the output view to receive the data.public void read(DataInputView in)
IOReadableWritable
read
in interface IOReadableWritable
read
in class VersionedIOReadableWritable
in
- the input view to read the data frompublic int getVersion()
Versioned
public scala.collection.immutable.List<scala.Tuple2<String,Object>> getEnumConstants()
public boolean equals(Object obj)
equals
in class TypeSerializerConfigSnapshot
public int hashCode()
hashCode
in class TypeSerializerConfigSnapshot
public int[] getCompatibleVersions()
VersionedIOReadableWritable
By default, the base implementation recognizes only the current version (identified by Versioned.getVersion()
)
as compatible. This method can be used as a hook and may be overridden to identify more compatible versions.
getCompatibleVersions
in class VersionedIOReadableWritable
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.