public final class MutationGroup extends Object implements Serializable, 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 |
|---|---|
List<com.google.cloud.spanner.Mutation> |
attached() |
static MutationGroup |
create(com.google.cloud.spanner.Mutation primary,
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.
|
Iterator<com.google.cloud.spanner.Mutation> |
iterator() |
com.google.cloud.spanner.Mutation |
primary() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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, Iterable<com.google.cloud.spanner.Mutation> other)
public Iterator<com.google.cloud.spanner.Mutation> iterator()
public com.google.cloud.spanner.Mutation primary()
public List<com.google.cloud.spanner.Mutation> attached()
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.