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) |
UpdateParameters(CFMetaData metadata,
PartitionColumns updatedColumns,
QueryOptions options,
long timestamp,
int ttl,
java.util.Map<DecoratedKey,Partition> prefetchedRows,
int nowInSec) |
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)
public UpdateParameters(CFMetaData metadata, PartitionColumns updatedColumns, QueryOptions options, long timestamp, int ttl, java.util.Map<DecoratedKey,Partition> prefetchedRows, int nowInSec) 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 addCounter(ColumnDefinition column, long increment, CellPath path) 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 © 2009- The Apache Software Foundation