Class KinesisShardSplitReaderBase.RecordBatch
- java.lang.Object
-
- org.apache.flink.connector.kinesis.source.reader.KinesisShardSplitReaderBase.RecordBatch
-
- Enclosing class:
- KinesisShardSplitReaderBase
@Internal protected static class KinesisShardSplitReaderBase.RecordBatch extends Object
Dataclass to store a batch of Kinesis records with metadata. Used to pass Kinesis records from the SplitReader implementation to the SplitReaderBase.
-
-
Constructor Summary
Constructors Constructor Description RecordBatch(List<software.amazon.awssdk.services.kinesis.model.Record> records, long millisBehindLatest, boolean completed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMillisBehindLatest()List<software.amazon.awssdk.services.kinesis.model.Record>getRecords()booleanisCompleted()
-
-
-
Constructor Detail
-
RecordBatch
public RecordBatch(List<software.amazon.awssdk.services.kinesis.model.Record> records, long millisBehindLatest, boolean completed)
-
-
Method Detail
-
getRecords
public List<software.amazon.awssdk.services.kinesis.model.Record> getRecords()
-
getMillisBehindLatest
public long getMillisBehindLatest()
-
isCompleted
public boolean isCompleted()
-
-