Class KinesisRecordsBatch
- java.lang.Object
-
- org.apache.pinot.plugin.stream.kinesis.KinesisRecordsBatch
-
- All Implemented Interfaces:
MessageBatch<byte[]>
public class KinesisRecordsBatch extends Object implements MessageBatch<byte[]>
AMessageBatchfor collecting records from the Kinesis stream
-
-
Constructor Summary
Constructors Constructor Description KinesisRecordsBatch(List<software.amazon.awssdk.services.kinesis.model.Record> recordList, String shardId, boolean endOfShard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getMessageAtIndex(int index)intgetMessageCount()intgetMessageLengthAtIndex(int index)intgetMessageOffsetAtIndex(int index)longgetNextStreamMessageOffsetAtIndex(int index)StreamPartitionMsgOffsetgetNextStreamPartitionMsgOffsetAtIndex(int index)booleanisEndOfPartitionGroup()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.spi.stream.MessageBatch
getMetadataAtIndex, getOffsetOfNextBatch, getUnfilteredMessageCount
-
-
-
-
Method Detail
-
getMessageCount
public int getMessageCount()
- Specified by:
getMessageCountin interfaceMessageBatch<byte[]>
-
getMessageAtIndex
public byte[] getMessageAtIndex(int index)
- Specified by:
getMessageAtIndexin interfaceMessageBatch<byte[]>
-
getMessageOffsetAtIndex
public int getMessageOffsetAtIndex(int index)
- Specified by:
getMessageOffsetAtIndexin interfaceMessageBatch<byte[]>
-
getMessageLengthAtIndex
public int getMessageLengthAtIndex(int index)
- Specified by:
getMessageLengthAtIndexin interfaceMessageBatch<byte[]>
-
getNextStreamPartitionMsgOffsetAtIndex
public StreamPartitionMsgOffset getNextStreamPartitionMsgOffsetAtIndex(int index)
- Specified by:
getNextStreamPartitionMsgOffsetAtIndexin interfaceMessageBatch<byte[]>
-
getNextStreamMessageOffsetAtIndex
public long getNextStreamMessageOffsetAtIndex(int index)
- Specified by:
getNextStreamMessageOffsetAtIndexin interfaceMessageBatch<byte[]>
-
isEndOfPartitionGroup
public boolean isEndOfPartitionGroup()
- Specified by:
isEndOfPartitionGroupin interfaceMessageBatch<byte[]>
-
-