public class UserRecord
extends com.amazonaws.services.kinesis.model.Record
| Modifier | Constructor and Description |
|---|---|
protected |
UserRecord(boolean aggregated,
com.amazonaws.services.kinesis.model.Record record,
long subSequenceNumber,
String explicitHashKey)
Create a User Record.
|
|
UserRecord(com.amazonaws.services.kinesis.model.Record record)
Create a User Record from a Kinesis Record.
|
| Modifier and Type | Method and Description |
|---|---|
static List<UserRecord> |
deaggregate(List<com.amazonaws.services.kinesis.model.Record> records)
This method deaggregates the given list of Amazon Kinesis records into a
list of KPL user records.
|
static List<UserRecord> |
deaggregate(List<com.amazonaws.services.kinesis.model.Record> records,
BigInteger startingHashKey,
BigInteger endingHashKey)
This method deaggregates the given list of Amazon Kinesis records into a
list of KPL user records.
|
boolean |
equals(Object obj) |
String |
getExplicitHashKey() |
long |
getSubSequenceNumber() |
int |
hashCode() |
boolean |
isAggregated() |
String |
toString() |
clone, getApproximateArrivalTimestamp, getData, getEncryptionType, getPartitionKey, getSequenceNumber, marshall, setApproximateArrivalTimestamp, setData, setEncryptionType, setPartitionKey, setSequenceNumber, withApproximateArrivalTimestamp, withData, withEncryptionType, withEncryptionType, withPartitionKey, withSequenceNumberpublic UserRecord(com.amazonaws.services.kinesis.model.Record record)
record - Kinesis recordprotected UserRecord(boolean aggregated,
com.amazonaws.services.kinesis.model.Record record,
long subSequenceNumber,
String explicitHashKey)
aggregated - whether the record is aggregatedrecord - Kinesis recordsubSequenceNumber - subsequence numberexplicitHashKey - explicit hash keypublic long getSubSequenceNumber()
public String getExplicitHashKey()
public boolean isAggregated()
public String toString()
toString in class com.amazonaws.services.kinesis.model.Recordpublic int hashCode()
hashCode in class com.amazonaws.services.kinesis.model.Recordpublic boolean equals(Object obj)
equals in class com.amazonaws.services.kinesis.model.Recordpublic static List<UserRecord> deaggregate(List<com.amazonaws.services.kinesis.model.Record> records)
records - A list of Amazon Kinesis records, each possibly aggregated.public static List<UserRecord> deaggregate(List<com.amazonaws.services.kinesis.model.Record> records, BigInteger startingHashKey, BigInteger endingHashKey)
records - A list of Amazon Kinesis records, each possibly aggregated.startingHashKey - A BigInteger representing the starting hash key that the
explicit hash keys or partition keys of retained resulting KPL
user records must be greater than or equal to.endingHashKey - A BigInteger representing the ending hash key that the the
explicit hash keys or partition keys of retained resulting KPL
user records must be smaller than or equal to.Copyright © 2023. All rights reserved.