Class DynamoDBStreamsSchema
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.serialization.DynamoDBStreamsSchema
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.java.typeutils.ResultTypeQueryable<com.amazonaws.services.dynamodbv2.model.Record>,KinesisDeserializationSchema<com.amazonaws.services.dynamodbv2.model.Record>
public class DynamoDBStreamsSchema extends Object implements KinesisDeserializationSchema<com.amazonaws.services.dynamodbv2.model.Record>
Schema used for deserializing DynamoDB streams records.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamoDBStreamsSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.services.dynamodbv2.model.Recorddeserialize(byte[] message, String partitionKey, String seqNum, long approxArrivalTimestamp, String stream, String shardId)Deserializes a Kinesis record's bytes.org.apache.flink.api.common.typeinfo.TypeInformation<com.amazonaws.services.dynamodbv2.model.Record>getProducedType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.connectors.kinesis.serialization.KinesisDeserializationSchema
open
-
-
-
-
Method Detail
-
deserialize
public com.amazonaws.services.dynamodbv2.model.Record deserialize(byte[] message, String partitionKey, String seqNum, long approxArrivalTimestamp, String stream, String shardId) throws IOExceptionDescription copied from interface:KinesisDeserializationSchemaDeserializes a Kinesis record's bytes. If the record cannot be deserialized,nullmay be returned. This informs the Flink Kinesis Consumer to process the Kinesis record without producing any output for it, i.e. effectively "skipping" the record.- Specified by:
deserializein interfaceKinesisDeserializationSchema<com.amazonaws.services.dynamodbv2.model.Record>- Parameters:
message- the record's value as a byte arraypartitionKey- the record's partition key at the time of writingseqNum- the sequence number of this record in the Kinesis shardapproxArrivalTimestamp- the server-side timestamp of when Kinesis received and stored the recordstream- the name of the Kinesis stream that this record was sent toshardId- The identifier of the shard the record was sent to- Returns:
- the deserialized message as an Java object (
nullif the message cannot be deserialized). - Throws:
IOException
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<com.amazonaws.services.dynamodbv2.model.Record> getProducedType()
- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<com.amazonaws.services.dynamodbv2.model.Record>
-
-