public class HashKeyRange extends Object implements Serializable
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 |
|---|---|
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()
The starting hash key of the hash key range.
Constraints:
Pattern: 0|([1-9]\d{0,38})
The starting hash key of the hash key range.
public void setStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
Constraints:
Pattern: 0|([1-9]\d{0,38})
startingHashKey - The starting hash key of the hash key range.
public HashKeyRange withStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
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()
The ending hash key of the hash key range.
Constraints:
Pattern: 0|([1-9]\d{0,38})
The ending hash key of the hash key range.
public void setEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
Constraints:
Pattern: 0|([1-9]\d{0,38})
endingHashKey - The ending hash key of the hash key range.
public HashKeyRange withEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
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 ObjectObject.toString()Copyright © 2019. All rights reserved.