@Internal public class SequenceNumber extends Object implements Serializable
SequenceNumber
is referring to an
aggregated Kinesis record, the subsequence number will be a non-negative value representing the
order of the sub-record within the aggregation.Constructor and Description |
---|
SequenceNumber(String sequenceNumber)
Create a new instance for a non-aggregated Kinesis record without a subsequence number.
|
SequenceNumber(String sequenceNumber,
long subSequenceNumber)
Create a new instance, with the specified sequence number and subsequence number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSequenceNumber() |
long |
getSubSequenceNumber() |
int |
hashCode() |
boolean |
isAggregated() |
String |
toString() |
public SequenceNumber(String sequenceNumber)
sequenceNumber
- the sequence numberpublic SequenceNumber(String sequenceNumber, long subSequenceNumber)
sequenceNumber
- the sequence numbersubSequenceNumber
- the subsequence number (-1 to represent non-aggregated Kinesis
records)public boolean isAggregated()
public String getSequenceNumber()
public long getSubSequenceNumber()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.