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

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

Introduction

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

Prototype


public java.util.Date getApproximateCreationDateTime() 

Source Link

Document

<p> The approximate date and time when the stream record was created, in <a href="http://www.epochconverter.com/">UNIX epoch time</a> format.

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());
}