public static interface PartitionUpdate.SimpleBuilder
This should generally not be used when performance matters too much, but provides a more convenient interface to build an update than using the class constructor when performance is not of the utmost importance.
Modifier and Type | Interface and Description |
---|---|
static interface |
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder
Interface to build range tombstone.
|
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.
|
PartitionUpdate.SimpleBuilder |
nowInSec(int nowInSec)
Sets the current time to use for the following additions to this builder or any derived (row) builder.
|
Row.SimpleBuilder |
row(java.lang.Object... clusteringValues)
Adds the row identifier by the provided clustering and return a builder for that row.
|
PartitionUpdate.SimpleBuilder |
timestamp(long timestamp)
Sets the timestamp to use for the following additions to this builder or any derived (row) builder.
|
PartitionUpdate.SimpleBuilder |
ttl(int ttl)
Sets the ttl to use for the following additions to this builder or any derived (row) builder.
|
CFMetaData metadata()
PartitionUpdate.SimpleBuilder timestamp(long timestamp)
timestamp
- the timestamp to use for following additions. If that timestamp hasn't been set, the current
time in microseconds will be used.PartitionUpdate.SimpleBuilder ttl(int ttl)
ttl
- the ttl to use for following additions. If that ttl hasn't been set, no ttl will be used.PartitionUpdate.SimpleBuilder nowInSec(int nowInSec)
nowInSec
- the current time to use for following additions. If the current time hasn't been set, the current
time in seconds will be used.Row.SimpleBuilder row(java.lang.Object... clusteringValues)
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
.PartitionUpdate.SimpleBuilder delete()
PartitionUpdate.SimpleBuilder.RangeTombstoneBuilder addRangeTombstone()
PartitionUpdate build()
Mutation buildAsMutation()
new Mutation(build())
.Mutation
.Copyright © 2019 The Apache Software Foundation