congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RangeTombstoneList.isEmpty
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jsevellec/cassandra-unit

public boolean hasRanges()
{
  return ranges != null && !ranges.isEmpty();
}
origin: org.apache.cassandra/cassandra-all

public boolean hasRanges()
{
  return ranges != null && !ranges.isEmpty();
}
origin: com.strapdata.cassandra/cassandra-all

public boolean hasRanges()
{
  return ranges != null && !ranges.isEmpty();
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public boolean hasRanges()
{
  return ranges != null && !ranges.isEmpty();
}
origin: com.facebook.presto.cassandra/cassandra-server

public boolean hasRanges()
{
  return ranges != null && !ranges.isEmpty();
}
origin: jsevellec/cassandra-unit

/**
 * Returns whether this DeletionInfo is live, that is deletes no columns.
 */
public boolean isLive()
{
  return partitionDeletion.isLive() && (ranges == null || ranges.isEmpty());
}
origin: org.apache.cassandra/cassandra-all

@Override
public String toString()
{
  if (ranges == null || ranges.isEmpty())
    return String.format("{%s}", partitionDeletion);
  else
    return String.format("{%s, ranges=%s}", partitionDeletion, rangesAsString());
}
origin: jsevellec/cassandra-unit

@Override
public String toString()
{
  if (ranges == null || ranges.isEmpty())
    return String.format("{%s}", partitionDeletion);
  else
    return String.format("{%s, ranges=%s}", partitionDeletion, rangesAsString());
}
origin: org.apache.cassandra/cassandra-all

/**
 * Returns whether this DeletionInfo is live, that is deletes no columns.
 */
public boolean isLive()
{
  return partitionDeletion.isLive() && (ranges == null || ranges.isEmpty());
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

@Override
public String toString()
{
  if (ranges == null || ranges.isEmpty())
    return String.format("{%s}", partitionDeletion);
  else
    return String.format("{%s, ranges=%s}", partitionDeletion, rangesAsString());
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Returns whether this DeletionInfo is live, that is deletes no columns.
 */
public boolean isLive()
{
  return partitionDeletion.isLive() && (ranges == null || ranges.isEmpty());
}
origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Returns whether this DeletionInfo is live, that is deletes no columns.
 */
public boolean isLive()
{
  return topLevel.isLive() && (ranges == null || ranges.isEmpty());
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * Returns whether this DeletionInfo is live, that is deletes no columns.
 */
public boolean isLive()
{
  return partitionDeletion.isLive() && (ranges == null || ranges.isEmpty());
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public String toString()
{
  if (ranges == null || ranges.isEmpty())
    return String.format("{%s}", partitionDeletion);
  else
    return String.format("{%s, ranges=%s}", partitionDeletion, rangesAsString());
}
origin: com.facebook.presto.cassandra/cassandra-server

@Override
public String toString()
{
  if (ranges == null || ranges.isEmpty())
    return String.format("{%s}", topLevel);
  else
    return String.format("{%s, ranges=%s}", topLevel, rangesAsString());
}
origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Purge every tombstones that are older than {@code gcbefore}.
 *
 * @param gcBefore timestamp (in seconds) before which tombstones should be purged
 */
public void purge(int gcBefore)
{
  topLevel = topLevel.localDeletionTime < gcBefore ? DeletionTime.LIVE : topLevel;
  if (ranges != null)
  {
    ranges.purge(gcBefore);
    if (ranges.isEmpty())
      ranges = null;
  }
}
origin: jsevellec/cassandra-unit

private String rangesAsString()
{
  assert !ranges.isEmpty();
  StringBuilder sb = new StringBuilder();
  ClusteringComparator cc = ranges.comparator();
  Iterator<RangeTombstone> iter = rangeIterator(false);
  while (iter.hasNext())
  {
    RangeTombstone i = iter.next();
    sb.append(i.deletedSlice().toString(cc));
    sb.append('@');
    sb.append(i.deletionTime());
  }
  return sb.toString();
}
origin: org.apache.cassandra/cassandra-all

private String rangesAsString()
{
  assert !ranges.isEmpty();
  StringBuilder sb = new StringBuilder();
  ClusteringComparator cc = ranges.comparator();
  Iterator<RangeTombstone> iter = rangeIterator(false);
  while (iter.hasNext())
  {
    RangeTombstone i = iter.next();
    sb.append(i.deletedSlice().toString(cc));
    sb.append('@');
    sb.append(i.deletionTime());
  }
  return sb.toString();
}
origin: com.strapdata.cassandra/cassandra-all

private String rangesAsString()
{
  assert !ranges.isEmpty();
  StringBuilder sb = new StringBuilder();
  ClusteringComparator cc = ranges.comparator();
  Iterator<RangeTombstone> iter = rangeIterator(false);
  while (iter.hasNext())
  {
    RangeTombstone i = iter.next();
    sb.append(i.deletedSlice().toString(cc));
    sb.append('@');
    sb.append(i.deletionTime());
  }
  return sb.toString();
}
origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Evaluates difference between this deletion info and superset for read repair
 *
 * @return the difference between the two, or LIVE if no difference
 */
public DeletionInfo diff(DeletionInfo superset)
{
  RangeTombstoneList rangeDiff = superset.ranges == null || superset.ranges.isEmpty()
                 ? null
                 : ranges == null ? superset.ranges : ranges.diff(superset.ranges);
  return topLevel.markedForDeleteAt != superset.topLevel.markedForDeleteAt || rangeDiff != null
     ? new DeletionInfo(superset.topLevel, rangeDiff)
     : DeletionInfo.live();
}
org.apache.cassandra.dbRangeTombstoneListisEmpty

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,
  • iterator,
  • maxMarkedAt,
  • moveElements,
  • rangeTombstone,
  • search,
  • searchInternal,
  • setInternal

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • 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)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JFileChooser (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot 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