K
- the type of key to assign for each partition.public interface KeyRange<K extends Serializable> extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
This method should be overridden for KeyRange comparisons.
|
int |
hashCode()
This method should be overridden for KeyRange comparisons.
|
boolean |
includes(K key) |
boolean |
isAll() |
K |
rangeBeginInclusive() |
K |
rangeEndExclusive() |
String |
toString()
This method should be overridden for a readable representation of KeyRange.
|
boolean isAll()
K rangeBeginInclusive()
K rangeEndExclusive()
boolean includes(K key)
key
- the value to checktrue
if this key range includes the specified value, false
otherwiseString toString()
Object
's toString() as well.boolean equals(Object o)
Copyright © 2018. All rights reserved.