Modifier and Type | Class and Description |
---|---|
static class |
Mutation.MutationSerializer |
static interface |
Mutation.SimpleBuilder
Interface for building mutations geared towards human.
|
Modifier and Type | Field and Description |
---|---|
long |
createdAt |
static java.lang.String |
FORWARD_FROM |
static java.lang.String |
FORWARD_TO |
static Mutation.MutationSerializer |
serializer |
java.util.concurrent.atomic.AtomicLong |
viewLockAcquireStart |
Modifier | Constructor and Description |
---|---|
|
Mutation(PartitionUpdate update) |
|
Mutation(java.lang.String keyspaceName,
DecoratedKey key) |
|
Mutation(java.lang.String keyspaceName,
DecoratedKey key,
long createdAt,
boolean cdcEnabled) |
protected |
Mutation(java.lang.String keyspaceName,
DecoratedKey key,
java.util.Map<java.util.UUID,PartitionUpdate> modifications) |
Modifier and Type | Method and Description |
---|---|
Mutation |
add(PartitionUpdate update)
Adds PartitionUpdate to the local set of modifications.
|
void |
apply() |
void |
apply(boolean durableWrites) |
void |
apply(boolean durableWrites,
boolean isDroppable) |
java.util.concurrent.CompletableFuture<?> |
applyFuture() |
void |
applyUnsafe() |
Mutation |
copy() |
MessageOut<Mutation> |
createMessage() |
MessageOut<Mutation> |
createMessage(MessagingService.Verb verb) |
PartitionUpdate |
get(CFMetaData cfm) |
java.util.Collection<java.util.UUID> |
getColumnFamilyIds() |
java.lang.String |
getKeyspaceName() |
PartitionUpdate |
getPartitionUpdate(java.util.UUID cfId) |
java.util.Collection<PartitionUpdate> |
getPartitionUpdates() |
long |
getTimeout() |
boolean |
isEmpty() |
DecoratedKey |
key() |
static Mutation |
merge(java.util.List<Mutation> mutations)
Creates a new mutation that merges all the provided mutations.
|
static Mutation.SimpleBuilder |
simpleBuilder(java.lang.String keyspaceName,
DecoratedKey partitionKey)
Creates a new simple mutuation builder.
|
int |
smallestGCGS() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean shallow) |
boolean |
trackedByCDC() |
Mutation |
without(java.util.Set<java.util.UUID> cfIds) |
Mutation |
without(java.util.UUID cfId) |
public static final Mutation.MutationSerializer serializer
public static final java.lang.String FORWARD_TO
public static final java.lang.String FORWARD_FROM
public final long createdAt
public final java.util.concurrent.atomic.AtomicLong viewLockAcquireStart
public Mutation(java.lang.String keyspaceName, DecoratedKey key)
public Mutation(java.lang.String keyspaceName, DecoratedKey key, long createdAt, boolean cdcEnabled)
public Mutation(PartitionUpdate update)
protected Mutation(java.lang.String keyspaceName, DecoratedKey key, java.util.Map<java.util.UUID,PartitionUpdate> modifications)
public Mutation copy()
public Mutation without(java.util.Set<java.util.UUID> cfIds)
public Mutation without(java.util.UUID cfId)
public java.lang.String getKeyspaceName()
getKeyspaceName
in interface IMutation
public java.util.Collection<java.util.UUID> getColumnFamilyIds()
getColumnFamilyIds
in interface IMutation
public DecoratedKey key()
public java.util.Collection<PartitionUpdate> getPartitionUpdates()
getPartitionUpdates
in interface IMutation
public PartitionUpdate getPartitionUpdate(java.util.UUID cfId)
public Mutation add(PartitionUpdate update)
update
- PartitionUpdate to append to Modifications listjava.lang.IllegalArgumentException
- If PartitionUpdate for duplicate table is passed as argumentpublic PartitionUpdate get(CFMetaData cfm)
public boolean isEmpty()
public static Mutation merge(java.util.List<Mutation> mutations)
mutations
- the mutations to merge together. All mutation must be
on the same keyspace and partition key. There should also be at least one
mutation.mutations
.java.lang.IllegalArgumentException
- if not all the mutations are on the same
keyspace and key.public java.util.concurrent.CompletableFuture<?> applyFuture()
public void apply(boolean durableWrites, boolean isDroppable)
public void apply(boolean durableWrites)
public void applyUnsafe()
public MessageOut<Mutation> createMessage()
public MessageOut<Mutation> createMessage(MessagingService.Verb verb)
public long getTimeout()
getTimeout
in interface IMutation
public int smallestGCGS()
public boolean trackedByCDC()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean shallow)
public static Mutation.SimpleBuilder simpleBuilder(java.lang.String keyspaceName, DecoratedKey partitionKey)
keyspaceName
- the name of the keyspace this is a mutation for.partitionKey
- the key of partition this if a mutation for.Copyright © 2009-2022 The Apache Software Foundation