Package org.apache.cassandra.db
Class SimpleBuilders.MutationBuilder
java.lang.Object
org.apache.cassandra.db.SimpleBuilders.MutationBuilder
- All Implemented Interfaces:
Mutation.SimpleBuilder
- Enclosing class:
- SimpleBuilders
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the mutation represented by this builder.protected voidcopyParams(org.apache.cassandra.db.SimpleBuilders.AbstractBuilder<?> other) nowInSec(long nowInSec) timestamp(long timestamp) ttl(int ttl) Adds an update for table identified by the provided name and return a builder for that partition.update(TableMetadata metadata) Adds an update for table identified by the provided metadata and return a builder for that partition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.Mutation.SimpleBuilder
timestamp, ttl
-
Field Details
-
timestamp
protected long timestamp -
ttl
protected int ttl -
nowInSec
protected long nowInSec
-
-
Constructor Details
-
MutationBuilder
-
-
Method Details
-
update
Description copied from interface:Mutation.SimpleBuilderAdds an update for table identified by the provided metadata and return a builder for that partition.- Specified by:
updatein interfaceMutation.SimpleBuilder- Parameters:
metadata- the metadata of the table for which to add an update.- Returns:
- a builder for the partition identified by
metadata(and the partition key for which this is a mutation of).
-
update
Description copied from interface:Mutation.SimpleBuilderAdds an update for table identified by the provided name and return a builder for that partition.- Specified by:
updatein interfaceMutation.SimpleBuilder- Parameters:
tableName- the name of the table for which to add an update.- Returns:
- a builder for the partition identified by
metadata(and the partition key for which this is a mutation of).
-
build
Description copied from interface:Mutation.SimpleBuilderBuild the mutation represented by this builder.- Specified by:
buildin interfaceMutation.SimpleBuilder- Returns:
- the built mutation.
-
copyParams
protected void copyParams(org.apache.cassandra.db.SimpleBuilders.AbstractBuilder<?> other) -
timestamp
-
ttl
-
nowInSec
-