@Generated(value="software.amazon.awssdk:codegen") public class Record extends Object implements StructuredPojo, software.amazon.awssdk.utils.builder.ToCopyableBuilder<Record.Builder,Record>
The unit of data of the Amazon Kinesis stream, which is composed of a sequence number, a partition key, and a data blob.
Modifier and Type | Class and Description |
---|---|
static interface |
Record.Builder |
Modifier and Type | Method and Description |
---|---|
Date |
approximateArrivalTimestamp()
The approximate time that the record was inserted into the stream.
|
static Record.Builder |
builder() |
ByteBuffer |
data()
The data blob.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
String |
partitionKey()
Identifies which shard in the stream the data record is assigned to.
|
String |
sequenceNumber()
The unique identifier of the record in the stream.
|
static Class<? extends Record.Builder> |
serializableBuilderClass() |
Record.Builder |
toBuilder() |
String |
toString() |
public String sequenceNumber()
The unique identifier of the record in the stream.
public Date approximateArrivalTimestamp()
The approximate time that the record was inserted into the stream.
public ByteBuffer data()
The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public String partitionKey()
Identifies which shard in the stream the data record is assigned to.
public Record.Builder toBuilder()
toBuilder
in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<Record.Builder,Record>
public static Record.Builder builder()
public static Class<? extends Record.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.