public class UserRecord
extends Record
| Modifier | Constructor and Description |
|---|---|
protected |
UserRecord(boolean aggregated,
Record record,
long subSequenceNumber,
java.lang.String explicitHashKey)
Create a User Record.
|
|
UserRecord(Record record)
Create a User Record from a Kinesis Record.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<UserRecord> |
deaggregate(java.util.List<Record> records)
This method deaggregates the given list of Amazon Kinesis records into a
list of KPL user records.
|
static java.util.List<UserRecord> |
deaggregate(java.util.List<Record> records,
java.math.BigInteger startingHashKey,
java.math.BigInteger endingHashKey)
This method deaggregates the given list of Amazon Kinesis records into a
list of KPL user records.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExplicitHashKey() |
long |
getSubSequenceNumber() |
int |
hashCode() |
boolean |
isAggregated() |
java.lang.String |
toString() |
public UserRecord(Record record)
record - Kinesis recordprotected UserRecord(boolean aggregated,
Record record,
long subSequenceNumber,
java.lang.String explicitHashKey)
aggregated - whether the record is aggregatedrecord - Kinesis recordsubSequenceNumber - subsequence numberexplicitHashKey - explicit hash keypublic long getSubSequenceNumber()
public java.lang.String getExplicitHashKey()
public boolean isAggregated()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
public static java.util.List<UserRecord> deaggregate(java.util.List<Record> records)
records - A list of Amazon Kinesis records, each possibly aggregated.public static java.util.List<UserRecord> deaggregate(java.util.List<Record> records, java.math.BigInteger startingHashKey, java.math.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.