Tabnine Logo
RangeTombstoneList.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
org.apache.cassandra.db.RangeTombstoneList

Best Java code snippets using org.apache.cassandra.db.RangeTombstoneList.add (Showing top 18 results out of 315)

origin: com.facebook.presto.cassandra/cassandra-server

public void add(RangeTombstone tombstone)
{
  add(tombstone.min, tombstone.max, tombstone.data.markedForDeleteAt, tombstone.data.localDeletionTime);
}
origin: com.facebook.presto.cassandra/cassandra-server

add(tombstones.starts[i], tombstones.ends[i], tombstones.markedAts[i], tombstones.delTimes[i]);
origin: jsevellec/cassandra-unit

add(tombstones.starts[i], tombstones.ends[i], tombstones.markedAts[i], tombstones.delTimes[i]);
origin: jsevellec/cassandra-unit

public void add(RangeTombstone tombstone, ClusteringComparator comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
origin: org.apache.cassandra/cassandra-all

add(tombstones.starts[i], tombstones.ends[i], tombstones.markedAts[i], tombstones.delTimes[i]);
origin: org.apache.cassandra/cassandra-all

public void add(RangeTombstone tombstone, ClusteringComparator comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
origin: com.strapdata.cassandra/cassandra-all

add(tombstones.starts[i], tombstones.ends[i], tombstones.markedAts[i], tombstones.delTimes[i]);
origin: com.strapdata.cassandra/cassandra-all

public void add(RangeTombstone tombstone, ClusteringComparator comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

add(tombstones.starts[i], tombstones.ends[i], tombstones.markedAts[i], tombstones.delTimes[i]);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public void add(RangeTombstone tombstone, ClusteringComparator comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
origin: com.facebook.presto.cassandra/cassandra-server

public DeletionInfo(Composite start, Composite end, Comparator<Composite> comparator, long markedForDeleteAt, int localDeletionTime)
{
  this(DeletionTime.LIVE, new RangeTombstoneList(comparator, 1));
  ranges.add(start, end, markedForDeleteAt, localDeletionTime);
}
origin: com.facebook.presto.cassandra/cassandra-server

public void add(RangeTombstone tombstone, Comparator<Composite> comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
origin: com.facebook.presto.cassandra/cassandra-server

    diff.add(superset.starts[k], superset.ends[k], superset.markedAts[k], superset.delTimes[k]);
diff.add(superset.starts[i], superset.ends[i], superset.markedAts[i], superset.delTimes[i]);
origin: com.facebook.presto.cassandra/cassandra-server

public RangeTombstoneList deserialize(DataInput in, int version) throws IOException
{
  int size = in.readInt();
  if (size == 0)
    return null;
  RangeTombstoneList tombstones = new RangeTombstoneList(type, size);
  for (int i = 0; i < size; i++)
  {
    Composite start = type.serializer().deserialize(in);
    Composite end = type.serializer().deserialize(in);
    int delTime =  in.readInt();
    long markedAt = in.readLong();
    if (version >= MessagingService.VERSION_20)
    {
      tombstones.setInternal(i, start, end, markedAt, delTime);
    }
    else
    {
      /*
       * The old implementation used to have range sorted by left value, but with potentially
       * overlapping range. So we need to use the "slow" path.
       */
      tombstones.add(start, end, markedAt, delTime);
    }
  }
  // The "slow" path take care of updating the size, but not the fast one
  if (version >= MessagingService.VERSION_20)
    tombstones.size = size;
  return tombstones;
}
origin: jsevellec/cassandra-unit

public void add(RangeTombstone tombstone)
{
  add(tombstone.deletedSlice().start(),
    tombstone.deletedSlice().end(),
    tombstone.deletionTime().markedForDeleteAt(),
    tombstone.deletionTime().localDeletionTime());
}
origin: org.apache.cassandra/cassandra-all

public void add(RangeTombstone tombstone)
{
  add(tombstone.deletedSlice().start(),
    tombstone.deletedSlice().end(),
    tombstone.deletionTime().markedForDeleteAt(),
    tombstone.deletionTime().localDeletionTime());
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public void add(RangeTombstone tombstone)
{
  add(tombstone.deletedSlice().start(),
    tombstone.deletedSlice().end(),
    tombstone.deletionTime().markedForDeleteAt(),
    tombstone.deletionTime().localDeletionTime());
}
origin: com.strapdata.cassandra/cassandra-all

public void add(RangeTombstone tombstone)
{
  add(tombstone.deletedSlice().start(),
    tombstone.deletedSlice().end(),
    tombstone.deletionTime().markedForDeleteAt(),
    tombstone.deletionTime().localDeletionTime());
}
org.apache.cassandra.dbRangeTombstoneListadd

Javadoc

Adds a new range tombstone. This method will be faster if the new tombstone sort after all the currently existing ones (this is a common use case), but it doesn't assume it.

Popular methods of RangeTombstoneList

  • <init>
  • addAll
    Adds all the range tombstones of tombstones to this RangeTombstoneList.
  • addInternal
  • capacity
  • comparator
  • copy
  • copyArrays
  • dataSize
  • grow
  • growToFree
  • insertFrom
  • isEmpty
  • insertFrom,
  • isEmpty,
  • iterator,
  • maxMarkedAt,
  • moveElements,
  • rangeTombstone,
  • search,
  • searchInternal,
  • setInternal

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JOptionPane (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text 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