public static class SimpleBuilders.PartitionUpdateBuilder extends java.lang.Object implements PartitionUpdate.SimpleBuilder
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder| Constructor and Description |
|---|
PartitionUpdateBuilder(CFMetaData metadata,
java.lang.Object... partitionKeyValues) |
| Modifier and Type | Method and Description |
|---|---|
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder |
addRangeTombstone()
Adds a new range tombstone to this update, returning a builder for that range.
|
PartitionUpdate |
build()
Build the update represented by this builder.
|
Mutation |
buildAsMutation()
As shortcut for
new Mutation(build()). |
PartitionUpdate.SimpleBuilder |
delete()
Deletes the partition identified by this builder (using a partition level deletion).
|
CFMetaData |
metadata()
The metadata of the table this is a builder on.
|
Row.SimpleBuilder |
row(java.lang.Object... clusteringValues)
Adds the row identifier by the provided clustering and return a builder for that row.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnowInSec, timestamp, ttlpublic PartitionUpdateBuilder(CFMetaData metadata, java.lang.Object... partitionKeyValues)
public CFMetaData metadata()
PartitionUpdate.SimpleBuildermetadata in interface PartitionUpdate.SimpleBuilderpublic Row.SimpleBuilder row(java.lang.Object... clusteringValues)
PartitionUpdate.SimpleBuilderrow in interface PartitionUpdate.SimpleBuilderclusteringValues - 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 a Clustering object directly, in which case that should be the
only argument.clusteringValues.public PartitionUpdate.SimpleBuilder delete()
PartitionUpdate.SimpleBuilderdelete in interface PartitionUpdate.SimpleBuilderpublic PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder addRangeTombstone()
PartitionUpdate.SimpleBuilderaddRangeTombstone in interface PartitionUpdate.SimpleBuilderpublic PartitionUpdate build()
PartitionUpdate.SimpleBuilderbuild in interface PartitionUpdate.SimpleBuilderpublic Mutation buildAsMutation()
PartitionUpdate.SimpleBuildernew Mutation(build()).buildAsMutation in interface PartitionUpdate.SimpleBuilderMutation.Copyright © 2018 The Apache Software Foundation