public class TierSegmentUploadInitiate extends AbstractTierSegmentMetadata
Constructor and Description |
---|
TierSegmentUploadInitiate(TopicIdPartition topicIdPartition,
int tierEpoch,
java.util.UUID objectId,
long baseOffset,
long endOffset,
long maxTimestamp,
int size,
boolean hasEpochState,
boolean hasAbortedTxns,
boolean hasProducerState) |
TierSegmentUploadInitiate(TopicIdPartition topicIdPartition,
SegmentUploadInitiate metadata) |
Modifier and Type | Method and Description |
---|---|
long |
baseOffset() |
long |
endOffset() |
boolean |
hasAbortedTxns() |
boolean |
hasEpochState() |
boolean |
hasProducerState() |
long |
maxTimestamp() |
java.util.UUID |
messageId()
Get a unique id for this message.
|
java.nio.ByteBuffer |
payloadBuffer() |
int |
size() |
TierObjectMetadata.State |
state()
The current state of the segment.
|
int |
tierEpoch()
tierEpoch for the tier metadata
|
TopicIdPartition |
topicIdPartition()
Topic-partition corresponding to this tier metadata.
|
java.lang.String |
toString() |
TierRecordType |
type() |
objectId, objectIdAsBase64
deserialize, deserialize, deserializeKey, deserializeKey, equals, getTypeId, hashCode, messageIdAsBase64, serializeKey, serializeValue
public TierSegmentUploadInitiate(TopicIdPartition topicIdPartition, int tierEpoch, java.util.UUID objectId, long baseOffset, long endOffset, long maxTimestamp, int size, boolean hasEpochState, boolean hasAbortedTxns, boolean hasProducerState)
public TierSegmentUploadInitiate(TopicIdPartition topicIdPartition, SegmentUploadInitiate metadata)
public TierObjectMetadata.State state()
AbstractTierSegmentMetadata
state
in class AbstractTierSegmentMetadata
public long baseOffset()
public long endOffset()
public long maxTimestamp()
public int size()
public boolean hasEpochState()
public boolean hasAbortedTxns()
public boolean hasProducerState()
public TierRecordType type()
type
in class AbstractTierMetadata
public TopicIdPartition topicIdPartition()
AbstractTierMetadata
topicIdPartition
in class AbstractTierMetadata
public int tierEpoch()
AbstractTierMetadata
tierEpoch
in class AbstractTierMetadata
public java.nio.ByteBuffer payloadBuffer()
payloadBuffer
in class AbstractTierMetadata
public java.util.UUID messageId()
AbstractTierMetadata
messageId
in class AbstractTierMetadata
public java.lang.String toString()
toString
in class java.lang.Object