Class SegmentZKMetadata
- java.lang.Object
-
- org.apache.pinot.common.metadata.segment.SegmentZKMetadata
-
- All Implemented Interfaces:
ZKMetadata
public class SegmentZKMetadata extends Object implements ZKMetadata
-
-
Constructor Summary
Constructors Constructor Description SegmentZKMetadata(String segmentName)SegmentZKMetadata(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)
-
Method Summary
-
-
-
Constructor Detail
-
SegmentZKMetadata
public SegmentZKMetadata(String segmentName)
-
SegmentZKMetadata
public SegmentZKMetadata(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)
-
-
Method Detail
-
getSegmentName
public String getSegmentName()
-
getStartTimeMs
public long getStartTimeMs()
-
getEndTimeMs
public long getEndTimeMs()
-
getRawStartTime
public String getRawStartTime()
-
getRawEndTime
public String getRawEndTime()
-
setStartTime
public void setStartTime(long startTime)
-
setEndTime
public void setEndTime(long endTime)
-
setRawStartTime
public void setRawStartTime(String startTime)
-
setRawEndTime
public void setRawEndTime(String endTime)
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
-
getIndexVersion
public String getIndexVersion()
-
setIndexVersion
public void setIndexVersion(String indexVersion)
-
getTotalDocs
public long getTotalDocs()
-
setTotalDocs
public void setTotalDocs(long totalDocs)
-
setSizeInBytes
public void setSizeInBytes(long sizeInBytes)
-
getSizeInBytes
public long getSizeInBytes()
-
getCrc
public long getCrc()
-
setCrc
public void setCrc(long crc)
-
getTier
public String getTier()
-
setTier
public void setTier(String tier)
-
getCreationTime
public long getCreationTime()
-
setCreationTime
public void setCreationTime(long creationTime)
-
getPushTime
public long getPushTime()
-
setPushTime
public void setPushTime(long pushTime)
-
getRefreshTime
public long getRefreshTime()
-
setRefreshTime
public void setRefreshTime(long pushTime)
-
getDownloadUrl
public String getDownloadUrl()
-
setDownloadUrl
public void setDownloadUrl(String downloadUrl)
-
getCrypterName
public String getCrypterName()
-
setCrypterName
public void setCrypterName(String crypterName)
-
getPartitionMetadata
public SegmentPartitionMetadata getPartitionMetadata()
-
setPartitionMetadata
public void setPartitionMetadata(SegmentPartitionMetadata partitionMetadata)
-
getStatus
public CommonConstants.Segment.Realtime.Status getStatus()
-
setStatus
public void setStatus(CommonConstants.Segment.Realtime.Status status)
-
getSizeThresholdToFlushSegment
public int getSizeThresholdToFlushSegment()
-
setSizeThresholdToFlushSegment
public void setSizeThresholdToFlushSegment(int flushThresholdSize)
-
getTimeThresholdToFlushSegment
public String getTimeThresholdToFlushSegment()
-
setTimeThresholdToFlushSegment
public void setTimeThresholdToFlushSegment(String flushThresholdTime)
-
getStartOffset
public String getStartOffset()
-
setStartOffset
public void setStartOffset(String startOffset)
-
getEndOffset
public String getEndOffset()
-
setEndOffset
public void setEndOffset(String endOffset)
-
getNumReplicas
public int getNumReplicas()
-
setNumReplicas
public void setNumReplicas(int numReplicas)
-
getSegmentUploadStartTime
public long getSegmentUploadStartTime()
-
setSegmentUploadStartTime
public void setSegmentUploadStartTime(long segmentUploadStartTime)
-
toZNRecord
public org.apache.helix.zookeeper.datamodel.ZNRecord toZNRecord()
- Specified by:
toZNRecordin interfaceZKMetadata
-
-