@DefaultCoder(value=AvroCoder.class) public class ChildPartition extends java.lang.Object implements java.io.Serializable
ChildPartitionsRecord.| Constructor and Description |
|---|
ChildPartition(java.lang.String token,
java.util.HashSet<java.lang.String> parentTokens)
Constructs a child partition, which will have its own token and the parents that it originated
from.
|
ChildPartition(java.lang.String token,
java.lang.String parentToken)
Constructs a child partition, which will have its own token and the parent that it originated
from.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.HashSet<java.lang.String> |
getParentTokens()
The unique partition identifiers of the parent partitions where this child partition originated
from.
|
java.lang.String |
getToken()
Unique partition identifier, which can be used to perform a change stream query.
|
int |
hashCode() |
java.lang.String |
toString() |
public ChildPartition(java.lang.String token,
java.util.HashSet<java.lang.String> parentTokens)
token - the child partition tokenparentTokens - the partition tokens of the parent(s) that originated the child partitionpublic ChildPartition(java.lang.String token,
java.lang.String parentToken)
ChildPartition(String, HashSet).token - the child partition tokenparentToken - the partition tokens of the parent that originated the child partitionpublic java.lang.String getToken()
public java.util.HashSet<java.lang.String> getParentTokens()
public boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object