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. | 
| boolean | equals(java.lang.Object o) | 
| int | hashCode() | 
| java.util.Iterator<com.google.cloud.spanner.Mutation> | iterator() | 
| com.google.cloud.spanner.Mutation | primary() | 
| java.lang.String | toString() | 
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()
public boolean equals(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