Class ChildPartition

java.lang.Object
io.debezium.connector.spanner.db.model.ChildPartition

public class ChildPartition extends Object
A child partition represents a new partition that should be queried.
  • Field Details

    • token

      private final String token
    • parentTokens

      private final Set<String> parentTokens
  • Constructor Details

    • ChildPartition

      public ChildPartition(String token, Set<String> parentTokens)
      Constructs a child partition, which will have its own token and the parents that it originated from. A child partition will have a single parent if it is originated from a partition move or split. A child partition will have multiple parents if it is originated from a partition merge.
      Parameters:
      token - the child partition token
      parentTokens - the partition tokens of the parent(s) that originated the child partition
  • Method Details

    • getToken

      public String getToken()
      Unique partition identifier, which can be used to perform a change stream query.
      Returns:
      the unique partition identifier
    • getParentTokens

      public Set<String> getParentTokens()
      The unique partition identifiers of the parent partitions where this child partition originated from.
      Returns:
      a set of parent partition tokens
    • toString

      public String toString()
      Overrides:
      toString in class Object