@Deprecated @PublicEvolving public interface Key<T> extends Value, Comparable<T>
Comparable
to
other keys of the same type. In addition, keys must implement a correct Object.hashCode()
method and Object.equals(Object)
method to ensure
that grouping on keys works properly.
This interface extends Value
and requires to implement the
serialization of its value.
Value
,
IOReadableWritable
,
Comparable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Deprecated.
Compares the object on equality with another object.
|
int |
hashCode()
Deprecated.
All keys must override the hash-code function to generate proper deterministic hash codes,
based on their contents.
|
read, write
compareTo
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.