Package org.apache.pinot.spi.stream
Interface StreamPartitionMsgOffsetFactory
-
- All Known Implementing Classes:
LongMsgOffsetFactory
@Evolving public interface StreamPartitionMsgOffsetFactory
An interface to be implemented by streams that are consumed using Pinot LLC consumption.
-
-
Method Summary
Modifier and Type Method Description StreamPartitionMsgOffsetcreate(String offsetStr)Construct an offset from the string provided.StreamPartitionMsgOffsetcreate(StreamPartitionMsgOffset other)Construct an offset from another one provided, of the same type.voidinit(StreamConfig streamConfig)Initialization, called once when the factory is created.
-
-
-
Method Detail
-
init
void init(StreamConfig streamConfig)
Initialization, called once when the factory is created.- Parameters:
streamConfig-
-
create
StreamPartitionMsgOffset create(String offsetStr)
Construct an offset from the string provided.- Parameters:
offsetStr-- Returns:
- StreamPartitionMsgOffset
-
create
StreamPartitionMsgOffset create(StreamPartitionMsgOffset other)
Construct an offset from another one provided, of the same type.- Parameters:
other-- Returns:
-
-