Class MutationGroup
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.MutationGroup
- All Implemented Interfaces:
Serializable,Iterable<Mutation>
A bundle of mutations that must be submitted atomically.
One of the mutations is chosen to be "primary", and can be used to determine partitions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionattached()static MutationGroupCreates a new group.static MutationGroupbooleaninthashCode()iterator()primary()longsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
create
Creates a new group.- Parameters:
primary- a primary mutation.other- other mutations, usually interleaved in parent.- Returns:
- new mutation group.
-
create
-
iterator
-
size
public long size() -
-
attached
-
equals
-
hashCode
public int hashCode() -
toString
-