public class HashKeyRange extends Object implements Serializable, Cloneable
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
Constructor and Description |
---|
HashKeyRange() |
Modifier and Type | Method and Description |
---|---|
HashKeyRange |
clone() |
boolean |
equals(Object obj) |
String |
getEndingHashKey()
The ending hash key of the hash key range.
|
String |
getStartingHashKey()
The starting hash key of the hash key range.
|
int |
hashCode() |
void |
setEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
|
void |
setStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HashKeyRange |
withEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
|
HashKeyRange |
withStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
|
public String getStartingHashKey()
Constraints:
Pattern: 0|([1-9]\d{0,38})
public void setStartingHashKey(String startingHashKey)
Constraints:
Pattern: 0|([1-9]\d{0,38})
startingHashKey
- The starting hash key of the hash key range.public HashKeyRange withStartingHashKey(String startingHashKey)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,38})
startingHashKey
- The starting hash key of the hash key range.public String getEndingHashKey()
Constraints:
Pattern: 0|([1-9]\d{0,38})
public void setEndingHashKey(String endingHashKey)
Constraints:
Pattern: 0|([1-9]\d{0,38})
endingHashKey
- The ending hash key of the hash key range.public HashKeyRange withEndingHashKey(String endingHashKey)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,38})
endingHashKey
- The ending hash key of the hash key range.public String toString()
toString
in class Object
Object.toString()
public HashKeyRange clone()
Copyright © 2015. All rights reserved.