@Deprecated public static Deletion shadowable(DeletionTime time) { return new Deletion(time, true); }
@Deprecated public static Deletion shadowable(DeletionTime time) { return new Deletion(time, true); }
@Deprecated public static Deletion shadowable(DeletionTime time) { return new Deletion(time, true); }
builder.addRowDeletion(hasDeletion ? new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable) : Row.Deletion.LIVE);
builder.addRowDeletion(hasDeletion ? new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable) : Row.Deletion.LIVE);
builder.addRowDeletion(hasDeletion ? new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable) : Row.Deletion.LIVE);
builder.addRowDeletion(hasDeletion ? new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable) : Row.Deletion.LIVE);
Deletion deletion = new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable); in.seek(nextPosition); return BTreeRow.emptyDeletedRow(clustering, deletion);
Deletion deletion = new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable); in.seek(nextPosition); return BTreeRow.emptyDeletedRow(clustering, deletion);
Deletion deletion = new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable); in.seek(nextPosition); return BTreeRow.emptyDeletedRow(clustering, deletion);
Deletion deletion = new Row.Deletion(header.readDeletionTime(in), deletionIsShadowable); in.seek(nextPosition); return BTreeRow.emptyDeletedRow(clustering, deletion);
/** * Returns a copy of the row where all timestamps for live data have replaced by {@code newTimestamp} and * all deletion timestamp by {@code newTimestamp - 1}. * * This exists for the Paxos path, see {@link PartitionUpdate#updateAllTimestamp} for additional details. */ public Row updateAllTimestamp(long newTimestamp) { LivenessInfo newInfo = primaryKeyLivenessInfo.isEmpty() ? primaryKeyLivenessInfo : primaryKeyLivenessInfo.withUpdatedTimestamp(newTimestamp); // If the deletion is shadowable and the row has a timestamp, we'll forced the deletion timestamp to be less than the row one, so we // should get rid of said deletion. Deletion newDeletion = deletion.isLive() || (deletion.isShadowable() && !primaryKeyLivenessInfo.isEmpty()) ? Deletion.LIVE : new Deletion(new DeletionTime(newTimestamp - 1, deletion.time().localDeletionTime()), deletion.isShadowable()); return transformAndFilter(newInfo, newDeletion, (cd) -> cd.updateAllTimestamp(newTimestamp)); }
/** * Returns a copy of the row where all timestamps for live data have replaced by {@code newTimestamp} and * all deletion timestamp by {@code newTimestamp - 1}. * * This exists for the Paxos path, see {@link PartitionUpdate#updateAllTimestamp} for additional details. */ public Row updateAllTimestamp(long newTimestamp) { LivenessInfo newInfo = primaryKeyLivenessInfo.isEmpty() ? primaryKeyLivenessInfo : primaryKeyLivenessInfo.withUpdatedTimestamp(newTimestamp); // If the deletion is shadowable and the row has a timestamp, we'll forced the deletion timestamp to be less than the row one, so we // should get rid of said deletion. Deletion newDeletion = deletion.isLive() || (deletion.isShadowable() && !primaryKeyLivenessInfo.isEmpty()) ? Deletion.LIVE : new Deletion(new DeletionTime(newTimestamp - 1, deletion.time().localDeletionTime()), deletion.isShadowable()); return transformAndFilter(newInfo, newDeletion, (cd) -> cd.updateAllTimestamp(newTimestamp)); }
/** * Returns a copy of the row where all timestamps for live data have replaced by {@code newTimestamp} and * all deletion timestamp by {@code newTimestamp - 1}. * * This exists for the Paxos path, see {@link PartitionUpdate#updateAllTimestamp} for additional details. */ public Row updateAllTimestamp(long newTimestamp) { LivenessInfo newInfo = primaryKeyLivenessInfo.isEmpty() ? primaryKeyLivenessInfo : primaryKeyLivenessInfo.withUpdatedTimestamp(newTimestamp); // If the deletion is shadowable and the row has a timestamp, we'll forced the deletion timestamp to be less than the row one, so we // should get rid of said deletion. Deletion newDeletion = deletion.isLive() || (deletion.isShadowable() && !primaryKeyLivenessInfo.isEmpty()) ? Deletion.LIVE : new Deletion(new DeletionTime(newTimestamp - 1, deletion.time().localDeletionTime()), deletion.isShadowable()); return transformAndFilter(newInfo, newDeletion, (cd) -> cd.updateAllTimestamp(newTimestamp)); }
public static Deletion regular(DeletionTime time) { return time.isLive() ? LIVE : new Deletion(time, false); }
/** * Returns a copy of the row where all timestamps for live data have replaced by {@code newTimestamp} and * all deletion timestamp by {@code newTimestamp - 1}. * * This exists for the Paxos path, see {@link PartitionUpdate#updateAllTimestamp} for additional details. */ public Row updateAllTimestamp(long newTimestamp) { LivenessInfo newInfo = primaryKeyLivenessInfo.isEmpty() ? primaryKeyLivenessInfo : primaryKeyLivenessInfo.withUpdatedTimestamp(newTimestamp); // If the deletion is shadowable and the row has a timestamp, we'll forced the deletion timestamp to be less than the row one, so we // should get rid of said deletion. Deletion newDeletion = deletion.isLive() || (deletion.isShadowable() && !primaryKeyLivenessInfo.isEmpty()) ? Deletion.LIVE : new Deletion(new DeletionTime(newTimestamp - 1, deletion.time().localDeletionTime()), deletion.isShadowable()); return transformAndFilter(newInfo, newDeletion, (cd) -> cd.updateAllTimestamp(newTimestamp)); }
public static Deletion shadowable(DeletionTime time) { return new Deletion(time, true); }
public static Deletion regular(DeletionTime time) { return time.isLive() ? LIVE : new Deletion(time, false); }
public static Deletion regular(DeletionTime time) { return time.isLive() ? LIVE : new Deletion(time, false); }
public static Deletion regular(DeletionTime time) { return time.isLive() ? LIVE : new Deletion(time, false); }