public static interface Mutation.SimpleBuilder
This should generally not be used when performance matters too much, but provides a more convenient interface to build a mutation than using the class constructor when performance is not of the utmost importance.
Modifier and Type | Method and Description |
---|---|
Mutation |
build()
Build the mutation represented by this builder.
|
Mutation.SimpleBuilder |
timestamp(long timestamp)
Sets the timestamp to use for the following additions to this builder or any derived (update or row) builder.
|
Mutation.SimpleBuilder |
ttl(int ttl)
Sets the ttl to use for the following additions to this builder or any derived (update or row) builder.
|
PartitionUpdate.SimpleBuilder |
update(java.lang.String tableName)
Adds an update for table identified by the provided name and return a builder for that partition.
|
PartitionUpdate.SimpleBuilder |
update(TableMetadata metadata)
Adds an update for table identified by the provided metadata and return a builder for that partition.
|
Mutation.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.Mutation.SimpleBuilder ttl(int ttl)
Note that the for non-compact tables, this method must be called before any column addition for this
ttl to be used for the row LivenessInfo
.
ttl
- the ttl to use for following additions. If that ttl hasn't been set, no ttl will be used.PartitionUpdate.SimpleBuilder update(TableMetadata metadata)
metadata
- the metadata of the table for which to add an update.metadata
(and the partition key for which this is a
mutation of).PartitionUpdate.SimpleBuilder update(java.lang.String tableName)
tableName
- the name of the table for which to add an update.metadata
(and the partition key for which this is a
mutation of).Mutation build()
Copyright © 2009-2022 The Apache Software Foundation