UNPKG

cassandra-server

Version:

A thin Javascript wrapper around Apache Cassandra to provide out of the box server support

775 lines (774 loc) 37.5 kB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_67) on Sun Sep 07 15:29:28 CEST 2014 --> <title>DeletionInfo (apache-cassandra API)</title> <meta name="date" content="2014-09-07"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="DeletionInfo (apache-cassandra API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/DeletionInfo.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/apache/cassandra/db/DeletedCell.html" title="interface in org.apache.cassandra.db"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/cassandra/db/DeletionInfo.html" target="_top">Frames</a></li> <li><a href="DeletionInfo.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.apache.cassandra.db</div> <h2 title="Class DeletionInfo" class="title">Class DeletionInfo</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>org.apache.cassandra.db.DeletionInfo</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="../../../../org/apache/cassandra/cache/IMeasurableMemory.html" title="interface in org.apache.cassandra.cache">IMeasurableMemory</a></dd> </dl> <hr> <br> <pre>public class <span class="strong">DeletionInfo</span> extends java.lang.Object implements <a href="../../../../org/apache/cassandra/cache/IMeasurableMemory.html" title="interface in org.apache.cassandra.cache">IMeasurableMemory</a></pre> <div class="block">A combination of a top-level (or row) tombstone and range tombstones describing the deletions within a <a href="../../../../org/apache/cassandra/db/ColumnFamily.html" title="class in org.apache.cassandra.db"><code>ColumnFamily</code></a> (or row).</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested_class_summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> <caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db">DeletionInfo.InOrderTester</a></strong></code> <div class="block">This object allow testing whether a given column (name/timestamp) is deleted or not by this DeletionInfo, assuming that the columns given to this object are passed in forward or reversed comparator sorted order.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static class&nbsp;</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.Serializer.html" title="class in org.apache.cassandra.db">DeletionInfo.Serializer</a></strong></code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#DeletionInfo(org.apache.cassandra.db.composites.Composite,%20org.apache.cassandra.db.composites.Composite,%20java.util.Comparator,%20long,%20int)">DeletionInfo</a></strong>(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;start, <a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;end, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator, long&nbsp;markedForDeleteAt, int&nbsp;localDeletionTime)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#DeletionInfo(org.apache.cassandra.db.DeletionTime)">DeletionInfo</a></strong>(<a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a>&nbsp;topLevel)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#DeletionInfo(long,%20int)">DeletionInfo</a></strong>(long&nbsp;markedForDeleteAt, int&nbsp;localDeletionTime)</code> <div class="block">Creates a DeletionInfo with only a top-level (row) tombstone.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#DeletionInfo(org.apache.cassandra.db.RangeTombstone,%20java.util.Comparator)">DeletionInfo</a></strong>(<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&nbsp;rangeTombstone, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator)</code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#add(org.apache.cassandra.db.DeletionInfo)">add</a></strong>(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;newInfo)</code> <div class="block">Combines another DeletionInfo with this one and returns the result.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#add(org.apache.cassandra.db.DeletionTime)">add</a></strong>(<a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a>&nbsp;newInfo)</code> <div class="block">Potentially replaces the top-level tombstone with another, keeping whichever has the higher markedForDeleteAt timestamp.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#add(org.apache.cassandra.db.RangeTombstone,%20java.util.Comparator)">add</a></strong>(<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&nbsp;tombstone, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#copy()">copy</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#copy(org.apache.cassandra.utils.memory.AbstractAllocator)">copy</a></strong>(<a href="../../../../org/apache/cassandra/utils/memory/AbstractAllocator.html" title="class in org.apache.cassandra.utils.memory">AbstractAllocator</a>&nbsp;allocator)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#dataSize()">dataSize</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#diff(org.apache.cassandra.db.DeletionInfo)">diff</a></strong>(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;superset)</code> <div class="block">Evaluates difference between this deletion info and superset for read repair</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object&nbsp;o)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#getTopLevelDeletion()">getTopLevelDeletion</a></strong>()</code> <div class="block">Returns the top-level (or "row") tombstone.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#hasPurgeableTombstones(int)">hasPurgeableTombstones</a></strong>(int&nbsp;gcBefore)</code> <div class="block">Returns true if <code>purge</code> would remove the top-level tombstone or any of the range tombstones, false otherwise.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#hasRanges()">hasRanges</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db">DeletionInfo.InOrderTester</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#inOrderTester(boolean)">inOrderTester</a></strong>(boolean&nbsp;reversed)</code> <div class="block">Returns a new <a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db"><code>DeletionInfo.InOrderTester</code></a> given the order in which columns will be passed to it.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#isDeleted(org.apache.cassandra.db.Cell)">isDeleted</a></strong>(<a href="../../../../org/apache/cassandra/db/Cell.html" title="interface in org.apache.cassandra.db">Cell</a>&nbsp;cell)</code> <div class="block">Return whether a given cell is deleted by the container having this deletion info.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#isLive()">isLive</a></strong>()</code> <div class="block">Returns whether this DeletionInfo is live, that is deletes no columns.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#live()">live</a></strong>()</code> <div class="block">Returns a new DeletionInfo that has no top-level tombstone or any range tombstones.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#maxTimestamp()">maxTimestamp</a></strong>()</code> <div class="block">Returns the maximum timestamp in any of the range tombstones or the top-level tombstone.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#mayModify(org.apache.cassandra.db.DeletionInfo)">mayModify</a></strong>(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;delInfo)</code> <div class="block">Whether this deletion info may modify the provided one if added to it.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#minTimestamp()">minTimestamp</a></strong>()</code> <div class="block">Returns the minimum timestamp in any of the range tombstones or the top-level tombstone.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#purge(int)">purge</a></strong>(int&nbsp;gcBefore)</code> <div class="block">Purge every tombstones that are older than <code>gcbefore</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#rangeCount()">rangeCount</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#rangeCovering(org.apache.cassandra.db.composites.Composite)">rangeCovering</a></strong>(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;name)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.util.Iterator&lt;<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&gt;</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#rangeIterator()">rangeIterator</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.util.Iterator&lt;<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&gt;</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#rangeIterator(org.apache.cassandra.db.composites.Composite,%20org.apache.cassandra.db.composites.Composite)">rangeIterator</a></strong>(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;start, <a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;finish)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#toString()">toString</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#unsharedHeapSize()">unsharedHeapSize</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#updateAllTimestamp(long)">updateAllTimestamp</a></strong>(long&nbsp;timestamp)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/apache/cassandra/db/DeletionInfo.html#updateDigest(java.security.MessageDigest)">updateDigest</a></strong>(java.security.MessageDigest&nbsp;digest)</code> <div class="block">Digests deletion info.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="DeletionInfo(long, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DeletionInfo</h4> <pre>public&nbsp;DeletionInfo(long&nbsp;markedForDeleteAt, int&nbsp;localDeletionTime)</pre> <div class="block">Creates a DeletionInfo with only a top-level (row) tombstone.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>markedForDeleteAt</code> - the time after which the entire row should be considered deleted</dd><dd><code>localDeletionTime</code> - what time the deletion write was applied locally (for purposes of purging the tombstone after gc_grace_seconds).</dd></dl> </li> </ul> <a name="DeletionInfo(org.apache.cassandra.db.DeletionTime)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DeletionInfo</h4> <pre>public&nbsp;DeletionInfo(<a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a>&nbsp;topLevel)</pre> </li> </ul> <a name="DeletionInfo(org.apache.cassandra.db.composites.Composite, org.apache.cassandra.db.composites.Composite, java.util.Comparator, long, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DeletionInfo</h4> <pre>public&nbsp;DeletionInfo(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;start, <a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;end, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator, long&nbsp;markedForDeleteAt, int&nbsp;localDeletionTime)</pre> </li> </ul> <a name="DeletionInfo(org.apache.cassandra.db.RangeTombstone, java.util.Comparator)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>DeletionInfo</h4> <pre>public&nbsp;DeletionInfo(<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&nbsp;rangeTombstone, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="live()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>live</h4> <pre>public static&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;live()</pre> <div class="block">Returns a new DeletionInfo that has no top-level tombstone or any range tombstones.</div> </li> </ul> <a name="copy()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copy</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;copy()</pre> </li> </ul> <a name="copy(org.apache.cassandra.utils.memory.AbstractAllocator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copy</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;copy(<a href="../../../../org/apache/cassandra/utils/memory/AbstractAllocator.html" title="class in org.apache.cassandra.utils.memory">AbstractAllocator</a>&nbsp;allocator)</pre> </li> </ul> <a name="isLive()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isLive</h4> <pre>public&nbsp;boolean&nbsp;isLive()</pre> <div class="block">Returns whether this DeletionInfo is live, that is deletes no columns.</div> </li> </ul> <a name="isDeleted(org.apache.cassandra.db.Cell)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isDeleted</h4> <pre>public&nbsp;boolean&nbsp;isDeleted(<a href="../../../../org/apache/cassandra/db/Cell.html" title="interface in org.apache.cassandra.db">Cell</a>&nbsp;cell)</pre> <div class="block">Return whether a given cell is deleted by the container having this deletion info.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>cell</code> - the cell to check.</dd> <dt><span class="strong">Returns:</span></dt><dd>true if the cell is deleted, false otherwise</dd></dl> </li> </ul> <a name="inOrderTester(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>inOrderTester</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db">DeletionInfo.InOrderTester</a>&nbsp;inOrderTester(boolean&nbsp;reversed)</pre> <div class="block">Returns a new <a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db"><code>DeletionInfo.InOrderTester</code></a> given the order in which columns will be passed to it.</div> </li> </ul> <a name="purge(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>purge</h4> <pre>public&nbsp;void&nbsp;purge(int&nbsp;gcBefore)</pre> <div class="block">Purge every tombstones that are older than <code>gcbefore</code>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>gcBefore</code> - timestamp (in seconds) before which tombstones should be purged</dd></dl> </li> </ul> <a name="diff(org.apache.cassandra.db.DeletionInfo)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>diff</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;diff(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;superset)</pre> <div class="block">Evaluates difference between this deletion info and superset for read repair</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the difference between the two, or LIVE if no difference</dd></dl> </li> </ul> <a name="updateDigest(java.security.MessageDigest)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateDigest</h4> <pre>public&nbsp;void&nbsp;updateDigest(java.security.MessageDigest&nbsp;digest)</pre> <div class="block">Digests deletion info. Used to trigger read repair on mismatch.</div> </li> </ul> <a name="hasPurgeableTombstones(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasPurgeableTombstones</h4> <pre>public&nbsp;boolean&nbsp;hasPurgeableTombstones(int&nbsp;gcBefore)</pre> <div class="block">Returns true if <code>purge</code> would remove the top-level tombstone or any of the range tombstones, false otherwise.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>gcBefore</code> - timestamp (in seconds) before which tombstones should be purged</dd></dl> </li> </ul> <a name="add(org.apache.cassandra.db.DeletionTime)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>add</h4> <pre>public&nbsp;void&nbsp;add(<a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a>&nbsp;newInfo)</pre> <div class="block">Potentially replaces the top-level tombstone with another, keeping whichever has the higher markedForDeleteAt timestamp.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>newInfo</code> - </dd></dl> </li> </ul> <a name="add(org.apache.cassandra.db.RangeTombstone, java.util.Comparator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>add</h4> <pre>public&nbsp;void&nbsp;add(<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&nbsp;tombstone, java.util.Comparator&lt;<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&gt;&nbsp;comparator)</pre> </li> </ul> <a name="add(org.apache.cassandra.db.DeletionInfo)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>add</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;add(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;newInfo)</pre> <div class="block">Combines another DeletionInfo with this one and returns the result. Whichever top-level tombstone has the higher markedForDeleteAt timestamp will be kept, along with its localDeletionTime. The range tombstones will be combined.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>this object.</dd></dl> </li> </ul> <a name="minTimestamp()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>minTimestamp</h4> <pre>public&nbsp;long&nbsp;minTimestamp()</pre> <div class="block">Returns the minimum timestamp in any of the range tombstones or the top-level tombstone.</div> </li> </ul> <a name="maxTimestamp()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>maxTimestamp</h4> <pre>public&nbsp;long&nbsp;maxTimestamp()</pre> <div class="block">Returns the maximum timestamp in any of the range tombstones or the top-level tombstone.</div> </li> </ul> <a name="getTopLevelDeletion()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getTopLevelDeletion</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/DeletionTime.html" title="class in org.apache.cassandra.db">DeletionTime</a>&nbsp;getTopLevelDeletion()</pre> <div class="block">Returns the top-level (or "row") tombstone.</div> </li> </ul> <a name="rangeIterator()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rangeIterator</h4> <pre>public&nbsp;java.util.Iterator&lt;<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&gt;&nbsp;rangeIterator()</pre> </li> </ul> <a name="rangeIterator(org.apache.cassandra.db.composites.Composite, org.apache.cassandra.db.composites.Composite)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rangeIterator</h4> <pre>public&nbsp;java.util.Iterator&lt;<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&gt;&nbsp;rangeIterator(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;start, <a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;finish)</pre> </li> </ul> <a name="rangeCovering(org.apache.cassandra.db.composites.Composite)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rangeCovering</h4> <pre>public&nbsp;<a href="../../../../org/apache/cassandra/db/RangeTombstone.html" title="class in org.apache.cassandra.db">RangeTombstone</a>&nbsp;rangeCovering(<a href="../../../../org/apache/cassandra/db/composites/Composite.html" title="interface in org.apache.cassandra.db.composites">Composite</a>&nbsp;name)</pre> </li> </ul> <a name="dataSize()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>dataSize</h4> <pre>public&nbsp;int&nbsp;dataSize()</pre> </li> </ul> <a name="hasRanges()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasRanges</h4> <pre>public&nbsp;boolean&nbsp;hasRanges()</pre> </li> </ul> <a name="rangeCount()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rangeCount</h4> <pre>public&nbsp;int&nbsp;rangeCount()</pre> </li> </ul> <a name="mayModify(org.apache.cassandra.db.DeletionInfo)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mayModify</h4> <pre>public&nbsp;boolean&nbsp;mayModify(<a href="../../../../org/apache/cassandra/db/DeletionInfo.html" title="class in org.apache.cassandra.db">DeletionInfo</a>&nbsp;delInfo)</pre> <div class="block">Whether this deletion info may modify the provided one if added to it.</div> </li> </ul> <a name="toString()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public&nbsp;java.lang.String&nbsp;toString()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="updateAllTimestamp(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateAllTimestamp</h4> <pre>public&nbsp;void&nbsp;updateAllTimestamp(long&nbsp;timestamp)</pre> </li> </ul> <a name="equals(java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;o)</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="hashCode()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> <pre>public final&nbsp;int&nbsp;hashCode()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="unsharedHeapSize()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>unsharedHeapSize</h4> <pre>public&nbsp;long&nbsp;unsharedHeapSize()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/apache/cassandra/cache/IMeasurableMemory.html#unsharedHeapSize()">unsharedHeapSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/cassandra/cache/IMeasurableMemory.html" title="interface in org.apache.cassandra.cache">IMeasurableMemory</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/DeletionInfo.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/apache/cassandra/db/DeletedCell.html" title="interface in org.apache.cassandra.db"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/apache/cassandra/db/DeletionInfo.InOrderTester.html" title="class in org.apache.cassandra.db"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/cassandra/db/DeletionInfo.html" target="_top">Frames</a></li> <li><a href="DeletionInfo.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &copy; 2014 The Apache Software Foundation</small></p> </body> </html>