Package org.apache.pinot.spi.stream
Class LongMsgOffset
- java.lang.Object
-
- org.apache.pinot.spi.stream.LongMsgOffset
-
- All Implemented Interfaces:
Comparable<StreamPartitionMsgOffset>,StreamPartitionMsgOffset
public class LongMsgOffset extends Object implements StreamPartitionMsgOffset
-
-
Constructor Summary
Constructors Constructor Description LongMsgOffset(long offset)LongMsgOffset(String offset)LongMsgOffset(StreamPartitionMsgOffset other)
-
Method Summary
Modifier and Type Method Description intcompareTo(StreamPartitionMsgOffset other)StreamPartitionMsgOffsetfromString(String longOffset)Converts the string to aStreamPartitionMsgOffsetlonggetOffset()StringtoString()A serialized representation of the offset object as a String.
-
-
-
Constructor Detail
-
LongMsgOffset
public LongMsgOffset(long offset)
-
LongMsgOffset
public LongMsgOffset(String offset)
-
LongMsgOffset
public LongMsgOffset(StreamPartitionMsgOffset other)
-
-
Method Detail
-
getOffset
public long getOffset()
-
compareTo
public int compareTo(StreamPartitionMsgOffset other)
- Specified by:
compareToin interfaceComparable<StreamPartitionMsgOffset>
-
toString
public String toString()
Description copied from interface:StreamPartitionMsgOffsetA serialized representation of the offset object as a String.- Specified by:
toStringin interfaceStreamPartitionMsgOffset- Overrides:
toStringin classObject
-
fromString
public StreamPartitionMsgOffset fromString(String longOffset)
Description copied from interface:StreamPartitionMsgOffsetConverts the string to aStreamPartitionMsgOffset- Specified by:
fromStringin interfaceStreamPartitionMsgOffset
-
-