Package org.apache.pinot.common.utils
Class LLCSegmentName
- java.lang.Object
-
- org.apache.pinot.common.utils.SegmentName
-
- org.apache.pinot.common.utils.LLCSegmentName
-
- All Implemented Interfaces:
Comparable
public class LLCSegmentName extends SegmentName implements Comparable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pinot.common.utils.SegmentName
SegmentName.RealtimeSegmentType
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.common.utils.SegmentName
REALTIME_SUFFIX, REALTIME_SUFFIX_LENGTH, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description LLCSegmentName(String segmentName)LLCSegmentName(String tableName, int partitionGroupId, int sequenceNumber, long msSinceEpoch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)booleanequals(Object o)StringgetCreationTime()longgetCreationTimeMs()intgetPartitionGroupId()StringgetPartitionRange()StringgetSegmentName()SegmentName.RealtimeSegmentTypegetSegmentType()intgetSequenceNumber()static intgetSequenceNumber(String segmentName)Returns the sequence number of the given segment name.StringgetSequenceNumberStr()StringgetTableName()inthashCode()static LLCSegmentNameof(String segmentName)Returns theLLCSegmentNamefor the given segment name, ornullif the given segment name does not represent an LLC segment.StringtoString()-
Methods inherited from class org.apache.pinot.common.utils.SegmentName
getGroupId, getSegmentType, isHighLevelConsumerSegmentName, isLowLevelConsumerSegmentName, isRealtimeSegmentName, isValidComponentName
-
-
-
-
Method Detail
-
of
@Nullable public static LLCSegmentName of(String segmentName)
Returns theLLCSegmentNamefor the given segment name, ornullif the given segment name does not represent an LLC segment.
-
getSequenceNumber
public static int getSequenceNumber(String segmentName)
Returns the sequence number of the given segment name.
-
getSegmentType
public SegmentName.RealtimeSegmentType getSegmentType()
- Specified by:
getSegmentTypein classSegmentName
-
getTableName
public String getTableName()
- Specified by:
getTableNamein classSegmentName
-
getPartitionGroupId
public int getPartitionGroupId()
- Overrides:
getPartitionGroupIdin classSegmentName
-
getPartitionRange
public String getPartitionRange()
- Overrides:
getPartitionRangein classSegmentName
-
getSequenceNumber
public int getSequenceNumber()
- Specified by:
getSequenceNumberin classSegmentName
-
getCreationTime
public String getCreationTime()
-
getCreationTimeMs
public long getCreationTimeMs()
-
getSegmentName
public String getSegmentName()
- Specified by:
getSegmentNamein classSegmentName
-
getSequenceNumberStr
public String getSequenceNumberStr()
- Specified by:
getSequenceNumberStrin classSegmentName
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
-