public class KinesisRecord
extends java.lang.Object
KinesisClientRecord
enhanced with utility methods.Constructor and Description |
---|
KinesisRecord(java.nio.ByteBuffer data,
java.lang.String sequenceNumber,
long subSequenceNumber,
java.lang.String partitionKey,
Instant approximateArrivalTimestamp,
Instant readTime,
java.lang.String streamName,
java.lang.String shardId) |
KinesisRecord(software.amazon.kinesis.retrieval.KinesisClientRecord record,
java.lang.String streamName,
java.lang.String shardId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
Instant |
getApproximateArrivalTimestamp() |
java.nio.ByteBuffer |
getData() |
byte[] |
getDataAsBytes() |
software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber |
getExtendedSequenceNumber() |
java.lang.String |
getPartitionKey() |
Instant |
getReadTime() |
java.lang.String |
getSequenceNumber() |
java.lang.String |
getShardId() |
java.lang.String |
getStreamName() |
long |
getSubSequenceNumber() |
byte[] |
getUniqueId() |
int |
hashCode() |
java.lang.String |
toString() |
public KinesisRecord(software.amazon.kinesis.retrieval.KinesisClientRecord record, java.lang.String streamName, java.lang.String shardId)
public software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber getExtendedSequenceNumber()
public byte[] getUniqueId()
public Instant getReadTime()
public java.lang.String getStreamName()
public java.lang.String getShardId()
public byte[] getDataAsBytes()
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public long getSubSequenceNumber()
public java.lang.String getSequenceNumber()
public Instant getApproximateArrivalTimestamp()
public java.nio.ByteBuffer getData()
public java.lang.String getPartitionKey()