public static class SimpleBuilders.MutationBuilder extends java.lang.Object implements Mutation.SimpleBuilder
Constructor and Description |
---|
MutationBuilder(java.lang.String keyspaceName,
DecoratedKey key) |
Modifier and Type | Method and Description |
---|---|
Mutation |
build()
Build the mutation represented by this builder.
|
PartitionUpdate.SimpleBuilder |
update(CFMetaData metadata)
Adds an update for table identified by the provided metadata and return a builder for that partition.
|
PartitionUpdate.SimpleBuilder |
update(java.lang.String tableName)
Adds an update for table identified by the provided name and return a builder for that partition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
timestamp, ttl
public MutationBuilder(java.lang.String keyspaceName, DecoratedKey key)
public PartitionUpdate.SimpleBuilder update(CFMetaData metadata)
Mutation.SimpleBuilder
update
in interface Mutation.SimpleBuilder
metadata
- the metadata of the table for which to add an update.metadata
(and the partition key for which this is a
mutation of).public PartitionUpdate.SimpleBuilder update(java.lang.String tableName)
Mutation.SimpleBuilder
update
in interface Mutation.SimpleBuilder
tableName
- the name of the table for which to add an update.metadata
(and the partition key for which this is a
mutation of).public Mutation build()
Mutation.SimpleBuilder
build
in interface Mutation.SimpleBuilder
Copyright © 2019 The Apache Software Foundation