Package org.apache.cassandra.db
Class SimpleBuilders.PartitionUpdateBuilder
java.lang.Object
org.apache.cassandra.db.SimpleBuilders.PartitionUpdateBuilder
- All Implemented Interfaces:
PartitionUpdate.SimpleBuilder
- Enclosing class:
- SimpleBuilders
public static class SimpleBuilders.PartitionUpdateBuilder
extends Object
implements PartitionUpdate.SimpleBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.db.partitions.PartitionUpdate.SimpleBuilder
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPartitionUpdateBuilder(TableMetadata metadata, Object... partitionKeyValues) -
Method Summary
Modifier and TypeMethodDescriptionAdds a new range tombstone to this update, returning a builder for that range.Adds a new range tombstone to this updatebuild()Build the update represented by this builder.As shortcut fornew Mutation(build()).protected voidcopyParams(org.apache.cassandra.db.SimpleBuilders.AbstractBuilder<?> other) delete()Deletes the partition identified by this builder (using a partition level deletion).metadata()The metadata of the table this is a builder on.nowInSec(long nowInSec) Adds the row identifier by the provided clustering and return a builder for that row.timestamp(long timestamp) ttl(int ttl) 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.partitions.PartitionUpdate.SimpleBuilder
nowInSec, timestamp, ttl
-
Field Details
-
timestamp
protected long timestamp -
ttl
protected int ttl -
nowInSec
protected long nowInSec
-
-
Constructor Details
-
PartitionUpdateBuilder
-
-
Method Details
-
metadata
Description copied from interface:PartitionUpdate.SimpleBuilderThe metadata of the table this is a builder on.- Specified by:
metadatain interfacePartitionUpdate.SimpleBuilder
-
row
Description copied from interface:PartitionUpdate.SimpleBuilderAdds the row identifier by the provided clustering and return a builder for that row.- Specified by:
rowin interfacePartitionUpdate.SimpleBuilder- Parameters:
clusteringValues- the value for the clustering columns of the row to add to this build. There may be no values if either the table has no clustering column, or if you want to edit the static row. Note that as a shortcut it is also allowed to pass aClusteringobject directly, in which case that should be the only argument.- Returns:
- a builder for the row identified by
clusteringValues.
-
delete
Description copied from interface:PartitionUpdate.SimpleBuilderDeletes the partition identified by this builder (using a partition level deletion).- Specified by:
deletein interfacePartitionUpdate.SimpleBuilder- Returns:
- this builder.
-
addRangeTombstone
Description copied from interface:PartitionUpdate.SimpleBuilderAdds a new range tombstone to this update, returning a builder for that range.- Specified by:
addRangeTombstonein interfacePartitionUpdate.SimpleBuilder- Returns:
- the range tombstone builder for the newly added range.
-
addRangeTombstone
Description copied from interface:PartitionUpdate.SimpleBuilderAdds a new range tombstone to this update- Specified by:
addRangeTombstonein interfacePartitionUpdate.SimpleBuilder- Returns:
- this builder
-
build
Description copied from interface:PartitionUpdate.SimpleBuilderBuild the update represented by this builder.- Specified by:
buildin interfacePartitionUpdate.SimpleBuilder- Returns:
- the built update.
-
buildAsMutation
Description copied from interface:PartitionUpdate.SimpleBuilderAs shortcut fornew Mutation(build()).- Specified by:
buildAsMutationin interfacePartitionUpdate.SimpleBuilder- Returns:
- the built update, wrapped in a
Mutation.
-
copyParams
protected void copyParams(org.apache.cassandra.db.SimpleBuilders.AbstractBuilder<?> other) -
timestamp
-
ttl
-
nowInSec
-