public final class MutationGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<com.google.cloud.spanner.Mutation>
One of the mutations is chosen to be "primary", and can be used to determine partitions.
Modifier and Type | Method and Description |
---|---|
java.util.List<com.google.cloud.spanner.Mutation> |
attached() |
static MutationGroup |
create(com.google.cloud.spanner.Mutation primary,
java.lang.Iterable<com.google.cloud.spanner.Mutation> other) |
static MutationGroup |
create(com.google.cloud.spanner.Mutation primary,
com.google.cloud.spanner.Mutation... other)
Creates a new group.
|
java.util.Iterator<com.google.cloud.spanner.Mutation> |
iterator() |
com.google.cloud.spanner.Mutation |
primary() |
public static MutationGroup create(com.google.cloud.spanner.Mutation primary, com.google.cloud.spanner.Mutation... other)
primary
- a primary mutation.other
- other mutations, usually interleaved in parent.public static MutationGroup create(com.google.cloud.spanner.Mutation primary, java.lang.Iterable<com.google.cloud.spanner.Mutation> other)
public java.util.Iterator<com.google.cloud.spanner.Mutation> iterator()
iterator
in interface java.lang.Iterable<com.google.cloud.spanner.Mutation>
public com.google.cloud.spanner.Mutation primary()
public java.util.List<com.google.cloud.spanner.Mutation> attached()