public class UpdateParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
localDeletionTime |
CFMetaData |
metadata |
QueryOptions |
options |
long |
timestamp |
Constructor and Description |
---|
UpdateParameters(CFMetaData metadata,
QueryOptions options,
long timestamp,
int ttl,
java.util.Map<java.nio.ByteBuffer,CQL3Row> prefetchedLists) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Cell> |
getPrefetchedList(java.nio.ByteBuffer rowKey,
ColumnIdentifier cql3ColumnName,
ColumnFamily cf)
Returns the prefetched list with the already performed modifications.
|
Cell |
makeColumn(CellName name,
java.nio.ByteBuffer value) |
Cell |
makeCounter(CellName name,
long delta) |
RangeTombstone |
makeRangeTombstone(ColumnSlice slice) |
Cell |
makeTombstone(CellName name) |
RangeTombstone |
makeTombstoneForOverwrite(ColumnSlice slice) |
public final CFMetaData metadata
public final QueryOptions options
public final long timestamp
public final int localDeletionTime
public UpdateParameters(CFMetaData metadata, QueryOptions options, long timestamp, int ttl, java.util.Map<java.nio.ByteBuffer,CQL3Row> prefetchedLists) throws InvalidRequestException
InvalidRequestException
public Cell makeColumn(CellName name, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
public Cell makeCounter(CellName name, long delta) throws InvalidRequestException
InvalidRequestException
public Cell makeTombstone(CellName name) throws InvalidRequestException
InvalidRequestException
public RangeTombstone makeRangeTombstone(ColumnSlice slice) throws InvalidRequestException
InvalidRequestException
public RangeTombstone makeTombstoneForOverwrite(ColumnSlice slice) throws InvalidRequestException
InvalidRequestException
public java.util.List<Cell> getPrefetchedList(java.nio.ByteBuffer rowKey, ColumnIdentifier cql3ColumnName, ColumnFamily cf)
If no modification have yet been performed this method will return the fetched list. If some modifications (updates or deletions) have already been done the list returned will be the result of the merge of the fetched list and of the pending mutations.
rowKey
- the row keycql3ColumnName
- the column namecf
- the pending modificationsCopyright © 2020 The Apache Software Foundation