Package org.apache.flink.types
Interface Key<T>
-
- All Superinterfaces:
Comparable<T>,IOReadableWritable,Serializable,Value
- All Known Subinterfaces:
NormalizableKey<T>
- All Known Implementing Classes:
BooleanValue,ByteValue,CharValue,DoubleValue,FloatValue,IntValue,LongValue,NullValue,ShortValue,StringValue
@Deprecated @PublicEvolving public interface Key<T> extends Value, Comparable<T>
Deprecated.The Key type is a relict of a deprecated and removed API and will be removed in future (2.0) versions as well.This interface has to be implemented by all data types that act as key. Keys are used to establish relationships between values. A key must always beComparableto other keys of the same type. In addition, keys must implement a correctObject.hashCode()method andObject.equals(Object)method to ensure that grouping on keys works properly.This interface extends
Valueand requires to implement the serialization of its value.- See Also:
Value,IOReadableWritable,Comparable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object other)Deprecated.Compares the object on equality with another object.inthashCode()Deprecated.All keys must override the hash-code function to generate proper deterministic hash codes, based on their contents.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.apache.flink.core.io.IOReadableWritable
read, write
-
-