Tabnine Logo
Row$Deletion.isShadowable
Code IndexAdd Tabnine to your IDE (free)

How to use
isShadowable
method
in
org.apache.cassandra.db.rows.Row$Deletion

Best Java code snippets using org.apache.cassandra.db.rows.Row$Deletion.isShadowable (Showing top 12 results out of 315)

origin: com.strapdata.cassandra/cassandra-all

if (deletion.isShadowable())
  extendedFlags |= HAS_SHADOWABLE_DELETION;
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

if (deletion.isShadowable())
  extendedFlags |= HAS_SHADOWABLE_DELETION;
origin: jsevellec/cassandra-unit

if (deletion.isShadowable())
  extendedFlags |= HAS_SHADOWABLE_DELETION;
origin: org.apache.cassandra/cassandra-all

if (deletion.isShadowable())
  extendedFlags |= HAS_SHADOWABLE_DELETION;
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * 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));
}
origin: org.apache.cassandra/cassandra-all

/**
 * 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));
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * 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));
}
origin: jsevellec/cassandra-unit

/**
 * 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));
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

  public static boolean hasExtendedFlags(Row row)
  {
    return row.isStatic() || row.deletion().isShadowable();
  }
}
origin: com.strapdata.cassandra/cassandra-all

  public static boolean hasExtendedFlags(Row row)
  {
    return row.isStatic() || row.deletion().isShadowable();
  }
}
origin: jsevellec/cassandra-unit

  public static boolean hasExtendedFlags(Row row)
  {
    return row.isStatic() || row.deletion().isShadowable();
  }
}
origin: org.apache.cassandra/cassandra-all

  public static boolean hasExtendedFlags(Row row)
  {
    return row.isStatic() || row.deletion().isShadowable();
  }
}
org.apache.cassandra.db.rowsRow$DeletionisShadowable

Javadoc

Whether the deletion is a shadowable one or not.

Popular methods of Row$Deletion

  • <init>
  • dataSize
  • deletes
  • digest
  • equals
  • isLive
    Wether the deletion is live or not, that is if its an actual deletion or not.
  • isShadowedBy
  • regular
  • supersedes
  • time
    The time of the row deletion.

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Path (java.nio.file)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now