Codota Logo
RangeTombstoneList.rangeTombstone
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain RangeTombstoneList
private void myMethod () {
RangeTombstoneList r =
  • Codota IconClusteringComparator comparator;new RangeTombstoneList(comparator, int1)
  • Smart code suggestions by Codota
}
origin: org.apache.cassandra/cassandra-all

public RangeTombstone search(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : rangeTombstone(idx);
}
origin: jsevellec/cassandra-unit

public RangeTombstone search(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : rangeTombstone(idx);
}
origin: com.facebook.presto.cassandra/cassandra-server

public RangeTombstone search(Composite name)
{
  int idx = searchInternal(name, 0);
  return idx < 0 ? null : rangeTombstone(idx);
}
origin: com.strapdata.cassandra/cassandra-all

public RangeTombstone search(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : rangeTombstone(idx);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public RangeTombstone search(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : rangeTombstone(idx);
}
origin: com.facebook.presto.cassandra/cassandra-server

public Iterator<RangeTombstone> iterator(Composite from, Composite till)
{
  int startIdx = from.isEmpty() ? 0 : searchInternal(from, 0);
  final int start = startIdx < 0 ? -startIdx-1 : startIdx;
  if (start >= size)
    return Iterators.<RangeTombstone>emptyIterator();
  int finishIdx = till.isEmpty() ? size : searchInternal(till, start);
  // if stopIdx is the first range after 'till' we care only until the previous range
  final int finish = finishIdx < 0 ? -finishIdx-2 : finishIdx;
  // Note: the following is true because we know 'from' is before 'till' in sorted order.
  if (start > finish)
    return Iterators.<RangeTombstone>emptyIterator();
  else if (start == finish)
    return Iterators.<RangeTombstone>singletonIterator(rangeTombstone(start));
  return new AbstractIterator<RangeTombstone>()
  {
    private int idx = start;
    protected RangeTombstone computeNext()
    {
      if (idx >= size || idx > finish)
        return endOfData();
      return rangeTombstone(idx++);
    }
  };
}
org.apache.cassandra.dbRangeTombstoneListrangeTombstone

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

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now