@InterfaceStability.Evolving public class RemoteLogSegmentId extends Object
RemoteStorageManager.copyLogSegmentData(RemoteLogSegmentMetadata, LogSegmentData).
Once it is stored in remote storage, it is used to access that segment later from remote log metadata storage.| Constructor and Description |
|---|
RemoteLogSegmentId(TopicIdPartition topicIdPartition,
Uuid id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static RemoteLogSegmentId |
generateNew(TopicIdPartition topicIdPartition)
Creates a new
RemoteLogSegmentId for the provided TopicIdPartition with a random Uuid. |
int |
hashCode() |
Uuid |
id() |
TopicIdPartition |
topicIdPartition() |
String |
toString() |
public RemoteLogSegmentId(TopicIdPartition topicIdPartition, Uuid id)
public static RemoteLogSegmentId generateNew(TopicIdPartition topicIdPartition)
RemoteLogSegmentId for the provided TopicIdPartition with a random Uuid.topicIdPartition - TopicIdPartition of this remote log segment.public TopicIdPartition topicIdPartition()
public Uuid id()