public class UpdateParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
CFMetaData |
metadata |
QueryOptions |
options |
PartitionColumns |
updatedColumns |
Constructor and Description |
---|
UpdateParameters(CFMetaData metadata,
PartitionColumns updatedColumns,
QueryOptions options,
long timestamp,
int ttl,
java.util.Map<DecoratedKey,Partition> prefetchedRows) |
Modifier and Type | Method and Description |
---|---|
void |
addCell(ColumnDefinition column,
java.nio.ByteBuffer value) |
void |
addCell(ColumnDefinition column,
CellPath path,
java.nio.ByteBuffer value) |
void |
addCounter(ColumnDefinition column,
long increment) |
void |
addPrimaryKeyLivenessInfo() |
void |
addRowDeletion() |
void |
addTombstone(ColumnDefinition column) |
void |
addTombstone(ColumnDefinition 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) |
void |
newRow(Clustering clustering) |
void |
setComplexDeletionTime(ColumnDefinition column) |
void |
setComplexDeletionTimeForOverwrite(ColumnDefinition column) |
public final CFMetaData metadata
public final PartitionColumns updatedColumns
public final QueryOptions options
public UpdateParameters(CFMetaData metadata, PartitionColumns updatedColumns, QueryOptions options, long timestamp, int ttl, java.util.Map<DecoratedKey,Partition> prefetchedRows) throws InvalidRequestException
InvalidRequestException
public void newRow(Clustering clustering) throws InvalidRequestException
InvalidRequestException
public Clustering currentClustering()
public void addPrimaryKeyLivenessInfo()
public void addRowDeletion()
public void addTombstone(ColumnDefinition column) throws InvalidRequestException
InvalidRequestException
public void addTombstone(ColumnDefinition column, CellPath path) throws InvalidRequestException
InvalidRequestException
public void addCell(ColumnDefinition column, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
public void addCell(ColumnDefinition column, CellPath path, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
public void addCounter(ColumnDefinition column, long increment) throws InvalidRequestException
InvalidRequestException
public void setComplexDeletionTime(ColumnDefinition column)
public void setComplexDeletionTimeForOverwrite(ColumnDefinition 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 © 2017 The Apache Software Foundation