Package org.apache.pinot.spi.stream
Class LongMsgOffsetFactory
- java.lang.Object
-
- org.apache.pinot.spi.stream.LongMsgOffsetFactory
-
- All Implemented Interfaces:
StreamPartitionMsgOffsetFactory
public class LongMsgOffsetFactory extends Object implements StreamPartitionMsgOffsetFactory
-
-
Constructor Summary
Constructors Constructor Description LongMsgOffsetFactory()
-
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
public void init(StreamConfig streamConfig)
Description copied from interface:StreamPartitionMsgOffsetFactoryInitialization, called once when the factory is created.- Specified by:
initin interfaceStreamPartitionMsgOffsetFactory
-
create
public StreamPartitionMsgOffset create(String offsetStr)
Description copied from interface:StreamPartitionMsgOffsetFactoryConstruct an offset from the string provided.- Specified by:
createin interfaceStreamPartitionMsgOffsetFactory- Returns:
- StreamPartitionMsgOffset
-
create
public StreamPartitionMsgOffset create(StreamPartitionMsgOffset other)
Description copied from interface:StreamPartitionMsgOffsetFactoryConstruct an offset from another one provided, of the same type.- Specified by:
createin interfaceStreamPartitionMsgOffsetFactory- Returns:
-
-