@InterfaceStability.Evolving public class LogSegmentData extends Object
RemoteStorageManager.copyLogSegmentData(RemoteLogSegmentMetadata, LogSegmentData)
while copying a specific log segment to the remote storage.Constructor and Description |
---|
LogSegmentData(Path logSegment,
Path offsetIndex,
Path timeIndex,
Optional<Path> transactionIndex,
Path producerSnapshotIndex,
ByteBuffer leaderEpochIndex)
Creates a LogSegmentData instance with data and indexes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
ByteBuffer |
leaderEpochIndex() |
Path |
logSegment() |
Path |
offsetIndex() |
Path |
producerSnapshotIndex() |
Path |
timeIndex() |
String |
toString() |
Optional<Path> |
transactionIndex() |
public LogSegmentData(Path logSegment, Path offsetIndex, Path timeIndex, Optional<Path> transactionIndex, Path producerSnapshotIndex, ByteBuffer leaderEpochIndex)
logSegment
- actual log segment fileoffsetIndex
- offset index filetimeIndex
- time index filetransactionIndex
- transaction index file, which can be nullproducerSnapshotIndex
- producer snapshot until this segmentleaderEpochIndex
- leader-epoch-index until this segmentpublic Path logSegment()
public Path offsetIndex()
public Path timeIndex()
public Optional<Path> transactionIndex()
public Path producerSnapshotIndex()
public ByteBuffer leaderEpochIndex()