public class DynamoDBStreamsShardHandle extends StreamShardHandle
Modifier and Type | Field and Description |
---|---|
static String |
SHARDID_PREFIX |
static int |
SHARDID_PREFIX_LEN |
Constructor and Description |
---|
DynamoDBStreamsShardHandle(String streamName,
com.amazonaws.services.kinesis.model.Shard shard) |
Modifier and Type | Method and Description |
---|---|
static int |
compareShardIds(String firstShardId,
String secondShardId) |
static boolean |
isValidShardId(String shardId)
Dynamodb streams shard ID is a char string ranging from 28 characters to 65 characters.
|
equals, getShard, getStreamName, hashCode, isClosed, toString
public static final String SHARDID_PREFIX
public static final int SHARDID_PREFIX_LEN
public DynamoDBStreamsShardHandle(String streamName, com.amazonaws.services.kinesis.model.Shard shard)
public static boolean isValidShardId(String shardId)
The shardId observed usually takes the format of: "shardId-00000001536805703746-69688cb1", where "shardId-" is a prefix, followed by a 20-digit timestamp string and 0-36 or more characters, separated by '-'. Following this format, it is expected the child shards created during a re-sharding event have shardIds bigger than their parents.
shardId
- shard IdCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.