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

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

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

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

/**
 * 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.
 */
public void add(Composite start, Composite end, long markedAt, int delTime)
{
  if (isEmpty())
  {
    addInternal(0, start, end, markedAt, delTime);
    return;
  }
  int c = comparator.compare(ends[size-1], start);
  // Fast path if we add in sorted order
  if (c < 0)
  {
    addInternal(size, start, end, markedAt, delTime);
  }
  else
  {
    // Note: insertFrom expect i to be the insertion point in term of interval ends
    int pos = Arrays.binarySearch(ends, 0, size, start, comparator);
    insertFrom((pos >= 0 ? pos : -pos-1), start, end, markedAt, delTime);
  }
  boundaryHeapSize += start.unsharedHeapSize() + end.unsharedHeapSize();
}
origin: com.facebook.presto.cassandra/cassandra-server

      addInternal(i, starts[i], start, markedAts[i], delTimes[i]);
      i++;
        setInternal(i, start, end, markedAt, delTime);
      else
        addInternal(i, start, end, markedAt, delTime);
      return;
      addInternal(i, start, end, markedAt, delTime);
      i++;
      setInternal(i, end, ends[i], markedAts[i], delTimes[i]);
        addInternal(i, start, end, markedAt, delTime);
        return;
      addInternal(i, start, starts[i], markedAt, delTime);
      i++;
addInternal(i, start, end, markedAt, delTime);
origin: org.apache.cassandra/cassandra-all

/**
 * 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.
 */
public void add(ClusteringBound start, ClusteringBound end, long markedAt, int delTime)
{
  if (isEmpty())
  {
    addInternal(0, start, end, markedAt, delTime);
    return;
  }
  int c = comparator.compare(ends[size-1], start);
  // Fast path if we add in sorted order
  if (c <= 0)
  {
    addInternal(size, start, end, markedAt, delTime);
  }
  else
  {
    // Note: insertFrom expect i to be the insertion point in term of interval ends
    int pos = Arrays.binarySearch(ends, 0, size, start, comparator);
    insertFrom((pos >= 0 ? pos+1 : -pos-1), start, end, markedAt, delTime);
  }
  boundaryHeapSize += start.unsharedHeapSize() + end.unsharedHeapSize();
}
origin: jsevellec/cassandra-unit

/**
 * 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.
 */
public void add(ClusteringBound start, ClusteringBound end, long markedAt, int delTime)
{
  if (isEmpty())
  {
    addInternal(0, start, end, markedAt, delTime);
    return;
  }
  int c = comparator.compare(ends[size-1], start);
  // Fast path if we add in sorted order
  if (c <= 0)
  {
    addInternal(size, start, end, markedAt, delTime);
  }
  else
  {
    // Note: insertFrom expect i to be the insertion point in term of interval ends
    int pos = Arrays.binarySearch(ends, 0, size, start, comparator);
    insertFrom((pos >= 0 ? pos+1 : -pos-1), start, end, markedAt, delTime);
  }
  boundaryHeapSize += start.unsharedHeapSize() + end.unsharedHeapSize();
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * 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.
 */
public void add(ClusteringBound start, ClusteringBound end, long markedAt, int delTime)
{
  if (isEmpty())
  {
    addInternal(0, start, end, markedAt, delTime);
    return;
  }
  int c = comparator.compare(ends[size-1], start);
  // Fast path if we add in sorted order
  if (c <= 0)
  {
    addInternal(size, start, end, markedAt, delTime);
  }
  else
  {
    // Note: insertFrom expect i to be the insertion point in term of interval ends
    int pos = Arrays.binarySearch(ends, 0, size, start, comparator);
    insertFrom((pos >= 0 ? pos+1 : -pos-1), start, end, markedAt, delTime);
  }
  boundaryHeapSize += start.unsharedHeapSize() + end.unsharedHeapSize();
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * 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.
 */
public void add(ClusteringBound start, ClusteringBound end, long markedAt, int delTime)
{
  if (isEmpty())
  {
    addInternal(0, start, end, markedAt, delTime);
    return;
  }
  int c = comparator.compare(ends[size-1], start);
  // Fast path if we add in sorted order
  if (c <= 0)
  {
    addInternal(size, start, end, markedAt, delTime);
  }
  else
  {
    // Note: insertFrom expect i to be the insertion point in term of interval ends
    int pos = Arrays.binarySearch(ends, 0, size, start, comparator);
    insertFrom((pos >= 0 ? pos+1 : -pos-1), start, end, markedAt, delTime);
  }
  boundaryHeapSize += start.unsharedHeapSize() + end.unsharedHeapSize();
}
origin: com.facebook.presto.cassandra/cassandra-server

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

      if (!Slice.isEmpty(comparator, starts[i], newEnd))
        addInternal(i, starts[i], newEnd, markedAts[i], delTimes[i]);
        i++;
        setInternal(i, start, ends[i], markedAts[i], delTimes[i]);
      addInternal(i, start, end, markedAt, delTime);
      return;
      addInternal(i, start, end, markedAt, delTime);
      i++;
      ClusteringBound newStart = end.invert();
        addInternal(i, start, end, markedAt, delTime);
        return;
      if (!Slice.isEmpty(comparator, start, newEnd))
        addInternal(i, start, newEnd, markedAt, delTime);
        i++;
addInternal(i, start, end, markedAt, delTime);
origin: jsevellec/cassandra-unit

      if (!Slice.isEmpty(comparator, starts[i], newEnd))
        addInternal(i, starts[i], newEnd, markedAts[i], delTimes[i]);
        i++;
        setInternal(i, start, ends[i], markedAts[i], delTimes[i]);
      addInternal(i, start, end, markedAt, delTime);
      return;
      addInternal(i, start, end, markedAt, delTime);
      i++;
      ClusteringBound newStart = end.invert();
        addInternal(i, start, end, markedAt, delTime);
        return;
      if (!Slice.isEmpty(comparator, start, newEnd))
        addInternal(i, start, newEnd, markedAt, delTime);
        i++;
addInternal(i, start, end, markedAt, delTime);
origin: com.strapdata.cassandra/cassandra-all

      if (!Slice.isEmpty(comparator, starts[i], newEnd))
        addInternal(i, starts[i], newEnd, markedAts[i], delTimes[i]);
        i++;
        setInternal(i, start, ends[i], markedAts[i], delTimes[i]);
      addInternal(i, start, end, markedAt, delTime);
      return;
      addInternal(i, start, end, markedAt, delTime);
      i++;
      ClusteringBound newStart = end.invert();
        addInternal(i, start, end, markedAt, delTime);
        return;
      if (!Slice.isEmpty(comparator, start, newEnd))
        addInternal(i, start, newEnd, markedAt, delTime);
        i++;
addInternal(i, start, end, markedAt, delTime);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

      if (!Slice.isEmpty(comparator, starts[i], newEnd))
        addInternal(i, starts[i], newEnd, markedAts[i], delTimes[i]);
        i++;
        setInternal(i, start, ends[i], markedAts[i], delTimes[i]);
      addInternal(i, start, end, markedAt, delTime);
      return;
      addInternal(i, start, end, markedAt, delTime);
      i++;
      ClusteringBound newStart = end.invert();
        addInternal(i, start, end, markedAt, delTime);
        return;
      if (!Slice.isEmpty(comparator, start, newEnd))
        addInternal(i, start, newEnd, markedAt, delTime);
        i++;
addInternal(i, start, end, markedAt, delTime);
origin: jsevellec/cassandra-unit

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

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

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

addInternal(size, tombstones.starts[j], tombstones.ends[j], tombstones.markedAts[j], tombstones.delTimes[j]);
org.apache.cassandra.dbRangeTombstoneListaddInternal

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
  • addAll
    Adds all the range tombstones of tombstones to this RangeTombstoneList.
  • 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
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Path (java.nio.file)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best IntelliJ 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