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 MutationGroup
Creates a new group.static MutationGroup
boolean
int
hashCode()
iterator()
primary()
long
size()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
-