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 java.lang.Object implements PartitionUpdate.SimpleBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.partitions.PartitionUpdate.SimpleBuilder
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder
-
-
Constructor Summary
Constructors Constructor Description PartitionUpdateBuilder(TableMetadata metadata, java.lang.Object... partitionKeyValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionUpdate.SimpleBuilder.RangeTombstoneBuilderaddRangeTombstone()Adds a new range tombstone to this update, returning a builder for that range.PartitionUpdate.SimpleBuilderaddRangeTombstone(RangeTombstone rt)Adds a new range tombstone to this updatePartitionUpdatebuild()Build the update represented by this builder.MutationbuildAsMutation()As shortcut fornew Mutation(build()).PartitionUpdate.SimpleBuilderdelete()Deletes the partition identified by this builder (using a partition level deletion).TableMetadatametadata()The metadata of the table this is a builder on.Row.SimpleBuilderrow(java.lang.Object... clusteringValues)Adds the row identifier by the provided clustering and return a builder for that row.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.partitions.PartitionUpdate.SimpleBuilder
nowInSec, timestamp, ttl
-
-
-
-
Constructor Detail
-
PartitionUpdateBuilder
public PartitionUpdateBuilder(TableMetadata metadata, java.lang.Object... partitionKeyValues)
-
-
Method Detail
-
metadata
public TableMetadata metadata()
Description copied from interface:PartitionUpdate.SimpleBuilderThe metadata of the table this is a builder on.- Specified by:
metadatain interfacePartitionUpdate.SimpleBuilder
-
row
public Row.SimpleBuilder row(java.lang.Object... clusteringValues)
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
public PartitionUpdate.SimpleBuilder 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
public PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder 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
public PartitionUpdate.SimpleBuilder addRangeTombstone(RangeTombstone rt)
Description copied from interface:PartitionUpdate.SimpleBuilderAdds a new range tombstone to this update- Specified by:
addRangeTombstonein interfacePartitionUpdate.SimpleBuilder- Returns:
- this builder
-
build
public PartitionUpdate build()
Description copied from interface:PartitionUpdate.SimpleBuilderBuild the update represented by this builder.- Specified by:
buildin interfacePartitionUpdate.SimpleBuilder- Returns:
- the built update.
-
buildAsMutation
public Mutation buildAsMutation()
Description copied from interface:PartitionUpdate.SimpleBuilderAs shortcut fornew Mutation(build()).- Specified by:
buildAsMutationin interfacePartitionUpdate.SimpleBuilder- Returns:
- the built update, wrapped in a
Mutation.
-
-