Class Shard
- All Implemented Interfaces:
Serializable
,Cloneable
A uniquely identified group of data records in an Amazon Kinesis stream.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The shard ID of the shard adjacent to the shard's parent.The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.The shard ID of the shard's parent.The range of possible sequence numbers for the shard.The unique identifier of the shard within the stream.int
hashCode()
void
setAdjacentParentShardId
(String adjacentParentShardId) The shard ID of the shard adjacent to the shard's parent.void
setHashKeyRange
(HashKeyRange hashKeyRange) The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.void
setParentShardId
(String parentShardId) The shard ID of the shard's parent.void
setSequenceNumberRange
(SequenceNumberRange sequenceNumberRange) The range of possible sequence numbers for the shard.void
setShardId
(String shardId) The unique identifier of the shard within the stream.toString()
Returns a string representation of this object; useful for testing and debugging.withAdjacentParentShardId
(String adjacentParentShardId) The shard ID of the shard adjacent to the shard's parent.withHashKeyRange
(HashKeyRange hashKeyRange) The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.withParentShardId
(String parentShardId) The shard ID of the shard's parent.withSequenceNumberRange
(SequenceNumberRange sequenceNumberRange) The range of possible sequence numbers for the shard.withShardId
(String shardId) The unique identifier of the shard within the stream.
-
Constructor Details
-
Shard
public Shard()
-
-
Method Details
-
setShardId
The unique identifier of the shard within the stream.
- Parameters:
shardId
- The unique identifier of the shard within the stream.
-
getShardId
The unique identifier of the shard within the stream.
- Returns:
- The unique identifier of the shard within the stream.
-
withShardId
The unique identifier of the shard within the stream.
- Parameters:
shardId
- The unique identifier of the shard within the stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setParentShardId
The shard ID of the shard's parent.
- Parameters:
parentShardId
- The shard ID of the shard's parent.
-
getParentShardId
The shard ID of the shard's parent.
- Returns:
- The shard ID of the shard's parent.
-
withParentShardId
The shard ID of the shard's parent.
- Parameters:
parentShardId
- The shard ID of the shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAdjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
- Parameters:
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.
-
getAdjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
- Returns:
- The shard ID of the shard adjacent to the shard's parent.
-
withAdjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
- Parameters:
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHashKeyRange
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Parameters:
hashKeyRange
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
-
getHashKeyRange
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Returns:
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
-
withHashKeyRange
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Parameters:
hashKeyRange
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSequenceNumberRange
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange
- The range of possible sequence numbers for the shard.
-
getSequenceNumberRange
The range of possible sequence numbers for the shard.
- Returns:
- The range of possible sequence numbers for the shard.
-
withSequenceNumberRange
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange
- The range of possible sequence numbers for the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-