@Deprecated @PublicEvolving public interface Key<T> extends Value, Comparable<T>
Comparableto other keys of the same type. In addition, keys must implement a correct
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.
|Modifier and Type||Method and Description|
Compares the object on equality with another object.
All keys must override the hash-code function to generate proper deterministic hash codes, based on their contents.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.