本文整理汇总了Java中org.apache.cassandra.db.Column.isMarkedForDelete方法的典型用法代码示例。如果您正苦于以下问题:Java Column.isMarkedForDelete方法的具体用法?Java Column.isMarkedForDelete怎么用?Java Column.isMarkedForDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.db.Column
的用法示例。
在下文中一共展示了Column.isMarkedForDelete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: add
import org.apache.cassandra.db.Column; //导入方法依赖的package包/类
public void add(Column c)
{
if (c.isMarkedForDelete(now))
return;
ByteBuffer[] current = composite.split(c.name());
if (currentGroup == null)
{
currentGroup = new ColumnGroupMap(current);
currentGroup.add(current, idx, c);
previous = current;
return;
}
if (!isSameGroup(current))
{
groups.add(currentGroup);
currentGroup = new ColumnGroupMap(current);
}
currentGroup.add(current, idx, c);
previous = current;
}
示例2: nextColumn
import org.apache.cassandra.db.Column; //导入方法依赖的package包/类
@Override
public void nextColumn(Column column)
{
// avoid adding already expired or deleted columns to the index
if (column.isMarkedForDelete(start))
return;
ColumnIndex columnIndex = supportedIndexes.get(column.name());
if (columnIndex == null)
return;
Index index = indexes.get(column.name());
if (index == null)
indexes.put(column.name(), (index = new Index(columnIndex)));
index.add(column.value().duplicate(), currentKey, currentKeyPosition);
}
示例3: isIndexEntryStale
import org.apache.cassandra.db.Column; //导入方法依赖的package包/类
public boolean isIndexEntryStale(ByteBuffer indexedValue, ColumnFamily data, long now)
{
Column liveColumn = data.getColumn(columnDef.name);
if (liveColumn == null || liveColumn.isMarkedForDelete(now))
return true;
ByteBuffer liveValue = liveColumn.value();
return columnDef.getValidator().compare(indexedValue, liveValue) != 0;
}
示例4: isDead
import org.apache.cassandra.db.Column; //导入方法依赖的package包/类
private boolean isDead(Column c)
{
return c == null || c.isMarkedForDelete(now);
}