public class HashKeyRange
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getEndingHashKey()
The ending hash key of the hash key range.
|
java.lang.String |
getStartingHashKey()
The starting hash key of the hash key range.
|
int |
hashCode() |
void |
setEndingHashKey(java.lang.String endingHashKey)
The ending hash key of the hash key range.
|
void |
setStartingHashKey(java.lang.String startingHashKey)
The starting hash key of the hash key range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HashKeyRange |
withEndingHashKey(java.lang.String endingHashKey)
The ending hash key of the hash key range.
|
HashKeyRange |
withStartingHashKey(java.lang.String startingHashKey)
The starting hash key of the hash key range.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.