public static class SimpleBuilders.PartitionUpdateBuilder extends java.lang.Object implements PartitionUpdate.SimpleBuilder
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder
Constructor and Description |
---|
PartitionUpdateBuilder(TableMetadata 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.SimpleBuilder |
addRangeTombstone(RangeTombstone rt)
Adds a new range tombstone to this update
|
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).
|
TableMetadata |
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, wait
nowInSec, timestamp, ttl
public PartitionUpdateBuilder(TableMetadata metadata, java.lang.Object... partitionKeyValues)
public TableMetadata metadata()
PartitionUpdate.SimpleBuilder
metadata
in interface PartitionUpdate.SimpleBuilder
public Row.SimpleBuilder row(java.lang.Object... clusteringValues)
PartitionUpdate.SimpleBuilder
row
in interface PartitionUpdate.SimpleBuilder
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 a Clustering
object directly, in which case that should be the
only argument.clusteringValues
.public PartitionUpdate.SimpleBuilder delete()
PartitionUpdate.SimpleBuilder
delete
in interface PartitionUpdate.SimpleBuilder
public PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder addRangeTombstone()
PartitionUpdate.SimpleBuilder
addRangeTombstone
in interface PartitionUpdate.SimpleBuilder
public PartitionUpdate.SimpleBuilder addRangeTombstone(RangeTombstone rt)
PartitionUpdate.SimpleBuilder
addRangeTombstone
in interface PartitionUpdate.SimpleBuilder
public PartitionUpdate build()
PartitionUpdate.SimpleBuilder
build
in interface PartitionUpdate.SimpleBuilder
public Mutation buildAsMutation()
PartitionUpdate.SimpleBuilder
new Mutation(build())
.buildAsMutation
in interface PartitionUpdate.SimpleBuilder
Mutation
.Copyright © 2009- The Apache Software Foundation