public class UserRecord
extends Record
| Modifier | Constructor and Description |
|---|---|
protected |
UserRecord(boolean aggregated,
Record record,
long subSequenceNumber,
String explicitHashKey)
Create a User Record.
|
|
UserRecord(Record record)
Create a User Record from a Kinesis Record.
|
| Modifier and Type | Method and Description |
|---|---|
static List<UserRecord> |
deaggregate(List<Record> records)
This method deaggregates the given list of Amazon Kinesis records into a
list of KPL user records.
|
static List<UserRecord> |
deaggregate(List<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() |
public UserRecord(Record record)
record - Kinesis recordprotected UserRecord(boolean aggregated,
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()
public int hashCode()
public boolean equals(Object obj)
public static List<UserRecord> deaggregate(List<Record> records)
records - A list of Amazon Kinesis records, each possibly aggregated.public static List<UserRecord> deaggregate(List<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.