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

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

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

origin: org.apache.cassandra/cassandra-all

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

/**
 * Returns the DeletionTime for the tombstone overlapping {@code name} (there can't be more than one),
 * or null if {@code name} is not covered by any tombstone.
 */
public DeletionTime searchDeletionTime(Composite name)
{
  int idx = searchInternal(name, 0);
  return idx < 0 ? null : new DeletionTime(markedAts[idx], delTimes[idx]);
}
origin: jsevellec/cassandra-unit

/**
 * Returns the DeletionTime for the tombstone overlapping {@code name} (there can't be more than one),
 * or null if {@code name} is not covered by any tombstone.
 */
public DeletionTime searchDeletionTime(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : new DeletionTime(markedAts[idx], delTimes[idx]);
}
origin: jsevellec/cassandra-unit

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

/**
 * Returns the DeletionTime for the tombstone overlapping {@code name} (there can't be more than one),
 * or null if {@code name} is not covered by any tombstone.
 */
public DeletionTime searchDeletionTime(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : new DeletionTime(markedAts[idx], delTimes[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

/**
 * Returns the DeletionTime for the tombstone overlapping {@code name} (there can't be more than one),
 * or null if {@code name} is not covered by any tombstone.
 */
public DeletionTime searchDeletionTime(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : new DeletionTime(markedAts[idx], delTimes[idx]);
}
origin: org.apache.cassandra/cassandra-all

/**
 * Returns the DeletionTime for the tombstone overlapping {@code name} (there can't be more than one),
 * or null if {@code name} is not covered by any tombstone.
 */
public DeletionTime searchDeletionTime(Clustering name)
{
  int idx = searchInternal(name, 0, size);
  return idx < 0 ? null : new DeletionTime(markedAts[idx], delTimes[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: org.apache.cassandra/cassandra-all

/**
 * Returns whether the given name/timestamp pair is deleted by one of the tombstone
 * of this RangeTombstoneList.
 */
public boolean isDeleted(Clustering clustering, Cell cell)
{
  int idx = searchInternal(clustering, 0, size);
  // No matter what the counter cell's timestamp is, a tombstone always takes precedence. See CASSANDRA-7346.
  return idx >= 0 && (cell.isCounterCell() || markedAts[idx] >= cell.timestamp());
}
origin: jsevellec/cassandra-unit

/**
 * Returns whether the given name/timestamp pair is deleted by one of the tombstone
 * of this RangeTombstoneList.
 */
public boolean isDeleted(Clustering clustering, Cell cell)
{
  int idx = searchInternal(clustering, 0, size);
  // No matter what the counter cell's timestamp is, a tombstone always takes precedence. See CASSANDRA-7346.
  return idx >= 0 && (cell.isCounterCell() || markedAts[idx] >= cell.timestamp());
}
origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Returns whether the given name/timestamp pair is deleted by one of the tombstone
 * of this RangeTombstoneList.
 */
public boolean isDeleted(Cell cell)
{
  int idx = searchInternal(cell.name(), 0);
  // No matter what the counter cell's timestamp is, a tombstone always takes precedence. See CASSANDRA-7346.
  return idx >= 0 && (cell instanceof CounterCell || markedAts[idx] >= cell.timestamp());
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Returns whether the given name/timestamp pair is deleted by one of the tombstone
 * of this RangeTombstoneList.
 */
public boolean isDeleted(Clustering clustering, Cell cell)
{
  int idx = searchInternal(clustering, 0, size);
  // No matter what the counter cell's timestamp is, a tombstone always takes precedence. See CASSANDRA-7346.
  return idx >= 0 && (cell.isCounterCell() || markedAts[idx] >= cell.timestamp());
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * Returns whether the given name/timestamp pair is deleted by one of the tombstone
 * of this RangeTombstoneList.
 */
public boolean isDeleted(Clustering clustering, Cell cell)
{
  int idx = searchInternal(clustering, 0, size);
  // No matter what the counter cell's timestamp is, a tombstone always takes precedence. See CASSANDRA-7346.
  return idx >= 0 && (cell.isCounterCell() || markedAts[idx] >= cell.timestamp());
}
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++);
    }
  };
}
origin: org.apache.cassandra/cassandra-all

private Iterator<RangeTombstone> forwardIterator(final Slice slice)
  int startIdx = slice.start() == ClusteringBound.BOTTOM ? 0 : searchInternal(slice.start(), 0, size);
  final int start = startIdx < 0 ? -startIdx-1 : startIdx;
    return Collections.emptyIterator();
  int finishIdx = slice.end() == ClusteringBound.TOP ? size - 1 : searchInternal(slice.end(), start, size);
origin: com.strapdata.cassandra/cassandra-all

private Iterator<RangeTombstone> forwardIterator(final Slice slice)
  int startIdx = slice.start() == ClusteringBound.BOTTOM ? 0 : searchInternal(slice.start(), 0, size);
  final int start = startIdx < 0 ? -startIdx-1 : startIdx;
    return Collections.emptyIterator();
  int finishIdx = slice.end() == ClusteringBound.TOP ? size - 1 : searchInternal(slice.end(), start, size);
origin: com.strapdata.cassandra/cassandra-all

private Iterator<RangeTombstone> reverseIterator(final Slice slice)
  int startIdx = slice.end() == ClusteringBound.TOP ? size - 1 : searchInternal(slice.end(), 0, size);
    return Collections.emptyIterator();
  int finishIdx = slice.start() == ClusteringBound.BOTTOM ? 0 : searchInternal(slice.start(), 0, start + 1);  // include same as finish
origin: jsevellec/cassandra-unit

private Iterator<RangeTombstone> forwardIterator(final Slice slice)
  int startIdx = slice.start() == ClusteringBound.BOTTOM ? 0 : searchInternal(slice.start(), 0, size);
  final int start = startIdx < 0 ? -startIdx-1 : startIdx;
    return Collections.emptyIterator();
  int finishIdx = slice.end() == ClusteringBound.TOP ? size - 1 : searchInternal(slice.end(), start, size);
org.apache.cassandra.dbRangeTombstoneListsearchInternal

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,
  • rangeTombstone,
  • search,
  • setInternal

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JCheckBox (javax.swing)
  • CodeWhisperer alternatives
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