Class KinesisRecord
java.lang.Object
org.apache.beam.sdk.io.aws2.kinesis.KinesisRecord
KinesisClientRecord enhanced with utility methods.-
Constructor Summary
ConstructorsConstructorDescriptionKinesisRecord(ByteBuffer data, String sequenceNumber, long subSequenceNumber, String partitionKey, Instant approximateArrivalTimestamp, Instant readTime, String streamName, String shardId) KinesisRecord(software.amazon.kinesis.retrieval.KinesisClientRecord record, String streamName, String shardId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the approximate time that the record was inserted into the stream.getData()Returns the data blob.byte[]software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumberReturns the unique identifier of the record within its shard.longbyte[]Returns the unique identifier of the record based on its position in the stream.inthashCode()toString()
-
Constructor Details
-
KinesisRecord
-
KinesisRecord
-
-
Method Details
-
getExtendedSequenceNumber
public software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber getExtendedSequenceNumber() -
getUniqueId
public byte[] getUniqueId()Returns the unique identifier of the record based on its position in the stream. -
getReadTime
-
getStreamName
-
getShardId
-
getDataAsBytes
public byte[] getDataAsBytes() -
equals
-
hashCode
public int hashCode() -
toString
-
getSubSequenceNumber
public long getSubSequenceNumber() -
getSequenceNumber
Returns the unique identifier of the record within its shard. -
getApproximateArrivalTimestamp
Returns the approximate time that the record was inserted into the stream. -
getData
Returns the data blob. -
getPartitionKey
-