Tabnine Logo
RangeTombstoneList.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.cassandra.db.RangeTombstoneList
constructor

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

origin: jsevellec/cassandra-unit

public RangeTombstoneList copy()
{
  return new RangeTombstoneList(comparator,
                 Arrays.copyOf(starts, size),
                 Arrays.copyOf(ends, size),
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
}
origin: org.apache.cassandra/cassandra-all

public RangeTombstoneList copy()
{
  return new RangeTombstoneList(comparator,
                 Arrays.copyOf(starts, size),
                 Arrays.copyOf(ends, size),
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
}
origin: com.strapdata.cassandra/cassandra-all

public RangeTombstoneList copy()
{
  return new RangeTombstoneList(comparator,
                 Arrays.copyOf(starts, size),
                 Arrays.copyOf(ends, size),
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
}
origin: com.facebook.presto.cassandra/cassandra-server

public RangeTombstoneList copy()
{
  return new RangeTombstoneList(comparator,
                 Arrays.copyOf(starts, size),
                 Arrays.copyOf(ends, size),
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public RangeTombstoneList copy()
{
  return new RangeTombstoneList(comparator,
                 Arrays.copyOf(starts, size),
                 Arrays.copyOf(ends, size),
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
}
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: jsevellec/cassandra-unit

public void add(RangeTombstone tombstone, ClusteringComparator comparator)
{
  if (ranges == null)
    ranges = new RangeTombstoneList(comparator, 1);
  ranges.add(tombstone);
}
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

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: jsevellec/cassandra-unit

public RangeTombstoneList copy(AbstractAllocator allocator)
{
  RangeTombstoneList copy =  new RangeTombstoneList(comparator,
                           new ClusteringBound[size],
                           new ClusteringBound[size],
                           Arrays.copyOf(markedAts, size),
                           Arrays.copyOf(delTimes, size),
                           boundaryHeapSize, size);
  for (int i = 0; i < size; i++)
  {
    copy.starts[i] = clone(starts[i], allocator);
    copy.ends[i] = clone(ends[i], allocator);
  }
  return copy;
}
origin: org.apache.cassandra/cassandra-all

public RangeTombstoneList copy(AbstractAllocator allocator)
{
  RangeTombstoneList copy =  new RangeTombstoneList(comparator,
                           new ClusteringBound[size],
                           new ClusteringBound[size],
                           Arrays.copyOf(markedAts, size),
                           Arrays.copyOf(delTimes, size),
                           boundaryHeapSize, size);
  for (int i = 0; i < size; i++)
  {
    copy.starts[i] = clone(starts[i], allocator);
    copy.ends[i] = clone(ends[i], allocator);
  }
  return copy;
}
origin: com.strapdata.cassandra/cassandra-all

public RangeTombstoneList copy(AbstractAllocator allocator)
{
  RangeTombstoneList copy =  new RangeTombstoneList(comparator,
                           new ClusteringBound[size],
                           new ClusteringBound[size],
                           Arrays.copyOf(markedAts, size),
                           Arrays.copyOf(delTimes, size),
                           boundaryHeapSize, size);
  for (int i = 0; i < size; i++)
  {
    copy.starts[i] = clone(starts[i], allocator);
    copy.ends[i] = clone(ends[i], allocator);
  }
  return copy;
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public RangeTombstoneList copy(AbstractAllocator allocator)
{
  RangeTombstoneList copy =  new RangeTombstoneList(comparator,
                           new ClusteringBound[size],
                           new ClusteringBound[size],
                           Arrays.copyOf(markedAts, size),
                           Arrays.copyOf(delTimes, size),
                           boundaryHeapSize, size);
  for (int i = 0; i < size; i++)
  {
    copy.starts[i] = clone(starts[i], allocator);
    copy.ends[i] = clone(ends[i], allocator);
  }
  return copy;
}
origin: com.facebook.presto.cassandra/cassandra-server

public RangeTombstoneList copy(AbstractAllocator allocator)
{
  RangeTombstoneList copy =  new RangeTombstoneList(comparator,
                 new Composite[size],
                 new Composite[size],
                 Arrays.copyOf(markedAts, size),
                 Arrays.copyOf(delTimes, size),
                 boundaryHeapSize, size);
  for (int i = 0; i < size; i++)
  {
    assert !(starts[i] instanceof AbstractNativeCell || ends[i] instanceof AbstractNativeCell); //this should never happen
    copy.starts[i] = starts[i].copy(null, allocator);
    copy.ends[i] = ends[i].copy(null, allocator);
  }
  return copy;
}
origin: com.facebook.presto.cassandra/cassandra-server

    diff = new RangeTombstoneList(comparator, superset.size - i);
  diff = new RangeTombstoneList(comparator, Math.min(8, superset.size - i));
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;
}
org.apache.cassandra.dbRangeTombstoneList<init>

Popular methods of RangeTombstoneList

  • 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.
  • addInternal
  • capacity
  • comparator
  • copy
  • copyArrays
  • dataSize
  • grow
  • growToFree
  • insertFrom
  • isEmpty
  • insertFrom,
  • isEmpty,
  • iterator,
  • maxMarkedAt,
  • moveElements,
  • rangeTombstone,
  • search,
  • searchInternal,
  • setInternal

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ImageIO (javax.imageio)
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
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