public class UpdateParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
TableMetadata |
metadata |
QueryOptions |
options |
RegularAndStaticColumns |
updatedColumns |
Constructor and Description |
---|
UpdateParameters(TableMetadata metadata,
RegularAndStaticColumns updatedColumns,
QueryOptions options,
long timestamp,
int nowInSec,
int ttl,
java.util.Map<DecoratedKey,Partition> prefetchedRows) |
Modifier and Type | Method and Description |
---|---|
void |
addCell(ColumnMetadata column,
java.nio.ByteBuffer value) |
void |
addCell(ColumnMetadata column,
CellPath path,
java.nio.ByteBuffer value) |
void |
addCounter(ColumnMetadata column,
long increment) |
void |
addPrimaryKeyLivenessInfo() |
void |
addRowDeletion() |
void |
addTombstone(ColumnMetadata column) |
void |
addTombstone(ColumnMetadata column,
CellPath path) |
Row |
buildRow() |
Clustering<?> |
currentClustering() |
DeletionTime |
deletionTime() |
Row |
getPrefetchedRow(DecoratedKey key,
Clustering<?> clustering)
Returns the prefetched row with the already performed modifications.
|
RangeTombstone |
makeRangeTombstone(ClusteringComparator comparator,
Clustering<?> clustering) |
RangeTombstone |
makeRangeTombstone(Slice slice) |
<V> void |
newRow(Clustering<V> clustering) |
void |
setComplexDeletionTime(ColumnMetadata column) |
void |
setComplexDeletionTimeForOverwrite(ColumnMetadata column) |
public final TableMetadata metadata
public final RegularAndStaticColumns updatedColumns
public final QueryOptions options
public UpdateParameters(TableMetadata metadata, RegularAndStaticColumns updatedColumns, QueryOptions options, long timestamp, int nowInSec, int ttl, java.util.Map<DecoratedKey,Partition> prefetchedRows) throws InvalidRequestException
InvalidRequestException
public <V> void newRow(Clustering<V> clustering) throws InvalidRequestException
InvalidRequestException
public Clustering<?> currentClustering()
public void addPrimaryKeyLivenessInfo()
public void addRowDeletion()
public void addTombstone(ColumnMetadata column) throws InvalidRequestException
InvalidRequestException
public void addTombstone(ColumnMetadata column, CellPath path) throws InvalidRequestException
InvalidRequestException
public void addCell(ColumnMetadata column, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
public void addCell(ColumnMetadata column, CellPath path, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
public void addCounter(ColumnMetadata column, long increment) throws InvalidRequestException
InvalidRequestException
public void setComplexDeletionTime(ColumnMetadata column)
public void setComplexDeletionTimeForOverwrite(ColumnMetadata column)
public Row buildRow()
public DeletionTime deletionTime()
public RangeTombstone makeRangeTombstone(ClusteringComparator comparator, Clustering<?> clustering)
public RangeTombstone makeRangeTombstone(Slice slice)
public Row getPrefetchedRow(DecoratedKey key, Clustering<?> clustering)
If no modification have yet been performed this method will return the fetched row or null
if
the row does not exist. If some modifications (updates or deletions) have already been done the row returned
will be the result of the merge of the fetched row and of the pending mutations.
key
- the partition keyclustering
- the row clusteringCopyright © 2009-2021 The Apache Software Foundation