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

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

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

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

/**
 * Combines another DeletionInfo with this one and returns the result.  Whichever top-level tombstone
 * has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime.  The
 * range tombstones will be combined.
 *
 * @return this object.
 */
public DeletionInfo add(DeletionInfo newInfo)
{
  add(newInfo.topLevel);
  if (ranges == null)
    ranges = newInfo.ranges == null ? null : newInfo.ranges.copy();
  else if (newInfo.ranges != null)
    ranges.addAll(newInfo.ranges);
  return this;
}
origin: org.apache.cassandra/cassandra-all

/**
 * Combines another DeletionInfo with this one and returns the result.  Whichever top-level tombstone
 * has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime.  The
 * range tombstones will be combined.
 *
 * @return this object.
 */
public DeletionInfo add(DeletionInfo newInfo)
{
  add(newInfo.getPartitionDeletion());
  // We know MutableDeletionInfo is the only impelementation and we're not mutating it, it's just to get access to the
  // RangeTombstoneList directly.
  assert newInfo instanceof MutableDeletionInfo;
  RangeTombstoneList newRanges = ((MutableDeletionInfo)newInfo).ranges;
  if (ranges == null)
    ranges = newRanges == null ? null : newRanges.copy();
  else if (newRanges != null)
    ranges.addAll(newRanges);
  return this;
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * Combines another DeletionInfo with this one and returns the result.  Whichever top-level tombstone
 * has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime.  The
 * range tombstones will be combined.
 *
 * @return this object.
 */
public DeletionInfo add(DeletionInfo newInfo)
{
  add(newInfo.getPartitionDeletion());
  // We know MutableDeletionInfo is the only impelementation and we're not mutating it, it's just to get access to the
  // RangeTombstoneList directly.
  assert newInfo instanceof MutableDeletionInfo;
  RangeTombstoneList newRanges = ((MutableDeletionInfo)newInfo).ranges;
  if (ranges == null)
    ranges = newRanges == null ? null : newRanges.copy();
  else if (newRanges != null)
    ranges.addAll(newRanges);
  return this;
}
origin: jsevellec/cassandra-unit

/**
 * Combines another DeletionInfo with this one and returns the result.  Whichever top-level tombstone
 * has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime.  The
 * range tombstones will be combined.
 *
 * @return this object.
 */
public DeletionInfo add(DeletionInfo newInfo)
{
  add(newInfo.getPartitionDeletion());
  // We know MutableDeletionInfo is the only impelementation and we're not mutating it, it's just to get access to the
  // RangeTombstoneList directly.
  assert newInfo instanceof MutableDeletionInfo;
  RangeTombstoneList newRanges = ((MutableDeletionInfo)newInfo).ranges;
  if (ranges == null)
    ranges = newRanges == null ? null : newRanges.copy();
  else if (newRanges != null)
    ranges.addAll(newRanges);
  return this;
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Combines another DeletionInfo with this one and returns the result.  Whichever top-level tombstone
 * has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime.  The
 * range tombstones will be combined.
 *
 * @return this object.
 */
public DeletionInfo add(DeletionInfo newInfo)
{
  add(newInfo.getPartitionDeletion());
  // We know MutableDeletionInfo is the only impelementation and we're not mutating it, it's just to get access to the
  // RangeTombstoneList directly.
  assert newInfo instanceof MutableDeletionInfo;
  RangeTombstoneList newRanges = ((MutableDeletionInfo)newInfo).ranges;
  if (ranges == null)
    ranges = newRanges == null ? null : newRanges.copy();
  else if (newRanges != null)
    ranges.addAll(newRanges);
  return this;
}
org.apache.cassandra.dbRangeTombstoneListaddAll

Javadoc

Adds all the range tombstones of tombstones to this RangeTombstoneList.

Popular methods of RangeTombstoneList

  • <init>
  • add
    Adds a new range tombstone. This method will be faster if the new tombstone sort after all the curre
  • addInternal
  • capacity
  • comparator
  • copy
  • copyArrays
  • dataSize
  • grow
  • growToFree
  • insertFrom
  • isEmpty
  • insertFrom,
  • isEmpty,
  • iterator,
  • maxMarkedAt,
  • moveElements,
  • rangeTombstone,
  • search,
  • searchInternal,
  • setInternal

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top 12 Jupyter Notebook extensions
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