Class RemoteLogSegmentId
java.lang.Object
org.apache.kafka.server.log.remote.storage.RemoteLogSegmentId
This class represents a universally unique identifier associated to a topic partition's log segment. This will be
regenerated for every attempt of copying a specific log segment in
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static RemoteLogSegmentId
generateNew
(TopicIdPartition topicIdPartition) Creates a newRemoteLogSegmentId
for the providedTopicIdPartition
with a random Uuid.int
hashCode()
id()
toString()
-
Constructor Details
-
RemoteLogSegmentId
-
-
Method Details
-
generateNew
Creates a newRemoteLogSegmentId
for the providedTopicIdPartition
with a random Uuid.- Parameters:
topicIdPartition
- TopicIdPartition of this remote log segment.- Returns:
- generated RemoteLogSegmentId.
-
topicIdPartition
- Returns:
- TopicIdPartition of this remote log segment.
-
id
- Returns:
- Universally Unique Id of this remote log segment.
-
toString
-
equals
-
hashCode
public int hashCode()
-