Example usage for com.amazonaws.services.dynamodbv2.model StreamRecord getSequenceNumber

List of usage examples for com.amazonaws.services.dynamodbv2.model StreamRecord getSequenceNumber

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.model StreamRecord getSequenceNumber.

Prototype


public String getSequenceNumber() 

Source Link

Document

The sequence number of the stream record.

Usage

From source file:dynamok.source.DynamoDbSourceTask.java

License:Apache License

private SourceRecord toSourceRecord(Map<String, String> sourcePartition, String topic,
        StreamRecord dynamoRecord) {
    return new SourceRecord(sourcePartition,
            Collections.singletonMap(Keys.SEQNUM, dynamoRecord.getSequenceNumber()), topic, null,
            RecordMapper.attributesSchema(), RecordMapper.toConnect(dynamoRecord.getKeys()),
            RecordMapper.attributesSchema(), RecordMapper.toConnect(dynamoRecord.getNewImage()),
            dynamoRecord.getApproximateCreationDateTime().getTime());
}