UNPKG

cassandra-server

Version:

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

446 lines (432 loc) 20.9 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:36 CEST 2014 --> <title>org.apache.cassandra.utils (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="org.apache.cassandra.utils (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 class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.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/triggers/package-summary.html">Prev Package</a></li> <li><a href="../../../../org/apache/cassandra/utils/btree/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/cassandra/utils/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Package" class="title">Package&nbsp;org.apache.cassandra.utils</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation"> <caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Interface</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/CloseableIterator.html" title="interface in org.apache.cassandra.utils">CloseableIterator</a>&lt;T&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/IFilter.html" title="interface in org.apache.cassandra.utils">IFilter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/IMergeIterator.html" title="interface in org.apache.cassandra.utils">IMergeIterator</a>&lt;In,Out&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/OutputHandler.html" title="interface in org.apache.cassandra.utils">OutputHandler</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/AlwaysPresentFilter.html" title="class in org.apache.cassandra.utils">AlwaysPresentFilter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BackgroundActivityMonitor.html" title="class in org.apache.cassandra.utils">BackgroundActivityMonitor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BiMultiValMap.html" title="class in org.apache.cassandra.utils">BiMultiValMap</a>&lt;K,V&gt;</td> <td class="colLast"> <div class="block">A variant of BiMap which does not enforce uniqueness of values.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BloomFilter.html" title="class in org.apache.cassandra.utils">BloomFilter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BooleanSerializer.html" title="class in org.apache.cassandra.utils">BooleanSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BoundedStatsDeque.html" title="class in org.apache.cassandra.utils">BoundedStatsDeque</a></td> <td class="colLast"> <div class="block">bounded threadsafe deque</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ByteBufferUtil.html" title="class in org.apache.cassandra.utils">ByteBufferUtil</a></td> <td class="colLast"> <div class="block">Utility methods to make ByteBuffers less painful The following should illustrate the different ways byte buffers can be used public void testArrayOffet() { byte[] b = "test_slice_array".getBytes(); ByteBuffer bb = ByteBuffer.allocate(1024); assert bb.position() == 0; assert bb.limit() == 1024; assert bb.capacity() == 1024; bb.put(b); assert bb.position() == b.length; assert bb.remaining() == bb.limit() - bb.position(); ByteBuffer bb2 = bb.slice(); assert bb2.position() == 0; //slice should begin at other buffers current position assert bb2.arrayOffset() == bb.position(); //to match the position in the underlying array one needs to //track arrayOffset assert bb2.limit()+bb2.arrayOffset() == bb.limit(); assert bb2.remaining() == bb.remaining(); } }</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/BytesReadTracker.html" title="class in org.apache.cassandra.utils">BytesReadTracker</a></td> <td class="colLast"> <div class="block">This class is to track bytes read from given DataInput</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/CLibrary.html" title="class in org.apache.cassandra.utils">CLibrary</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ConcurrentBiMap.html" title="class in org.apache.cassandra.utils">ConcurrentBiMap</a>&lt;K,V&gt;</td> <td class="colLast"> <div class="block">A variant of BiMap that permits concurrent access, and expects uniqueness of values in both domain and range.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/CounterId.html" title="class in org.apache.cassandra.utils">CounterId</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/DefaultInteger.html" title="class in org.apache.cassandra.utils">DefaultInteger</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/EstimatedHistogram.html" title="class in org.apache.cassandra.utils">EstimatedHistogram</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/EstimatedHistogram.EstimatedHistogramSerializer.html" title="class in org.apache.cassandra.utils">EstimatedHistogram.EstimatedHistogramSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ExpiringMap.html" title="class in org.apache.cassandra.utils">ExpiringMap</a>&lt;K,V&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ExpiringMap.CacheableObject.html" title="class in org.apache.cassandra.utils">ExpiringMap.CacheableObject</a>&lt;T&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/FBUtilities.html" title="class in org.apache.cassandra.utils">FBUtilities</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/FilterFactory.html" title="class in org.apache.cassandra.utils">FilterFactory</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/GuidGenerator.html" title="class in org.apache.cassandra.utils">GuidGenerator</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Hex.html" title="class in org.apache.cassandra.utils">Hex</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/HistogramBuilder.html" title="class in org.apache.cassandra.utils">HistogramBuilder</a></td> <td class="colLast"> <div class="block">Simple class for constructing an EsimtatedHistogram from a set of predetermined values</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Interval.html" title="class in org.apache.cassandra.utils">Interval</a>&lt;C,D&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/IntervalTree.html" title="class in org.apache.cassandra.utils">IntervalTree</a>&lt;C,D,I extends <a href="../../../../org/apache/cassandra/utils/Interval.html" title="class in org.apache.cassandra.utils">Interval</a>&lt;C,D&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/IntervalTree.Serializer.html" title="class in org.apache.cassandra.utils">IntervalTree.Serializer</a>&lt;C,D,I extends <a href="../../../../org/apache/cassandra/utils/Interval.html" title="class in org.apache.cassandra.utils">Interval</a>&lt;C,D&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MD5Digest.html" title="class in org.apache.cassandra.utils">MD5Digest</a></td> <td class="colLast"> <div class="block">The result of the computation of an MD5 digest.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MergeIterator.html" title="class in org.apache.cassandra.utils">MergeIterator</a>&lt;In,Out&gt;</td> <td class="colLast"> <div class="block">Merges sorted input iterators which individually contain unique items.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MergeIterator.Candidate.html" title="class in org.apache.cassandra.utils">MergeIterator.Candidate</a>&lt;In&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MergeIterator.Reducer.html" title="class in org.apache.cassandra.utils">MergeIterator.Reducer</a>&lt;In,Out&gt;</td> <td class="colLast"> <div class="block">Accumulator that collects values of type A, and outputs a value of type B.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.html" title="class in org.apache.cassandra.utils">MerkleTree</a></td> <td class="colLast"> <div class="block">A MerkleTree implemented as a binary tree.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.MerkleTreeSerializer.html" title="class in org.apache.cassandra.utils">MerkleTree.MerkleTreeSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.RowHash.html" title="class in org.apache.cassandra.utils">MerkleTree.RowHash</a></td> <td class="colLast"> <div class="block">Hash value representing a row, to be used to pass hashes to the MerkleTree.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.TreeDifference.html" title="class in org.apache.cassandra.utils">MerkleTree.TreeDifference</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.TreeRange.html" title="class in org.apache.cassandra.utils">MerkleTree.TreeRange</a></td> <td class="colLast"> <div class="block">The public interface to a range in the tree.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MerkleTree.TreeRangeIterator.html" title="class in org.apache.cassandra.utils">MerkleTree.TreeRangeIterator</a></td> <td class="colLast"> <div class="block">Returns the leaf (range) of a given tree in increasing order.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Murmur3BloomFilter.html" title="class in org.apache.cassandra.utils">Murmur3BloomFilter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Murmur3BloomFilter.Murmur3BloomFilterSerializer.html" title="class in org.apache.cassandra.utils">Murmur3BloomFilter.Murmur3BloomFilterSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/MurmurHash.html" title="class in org.apache.cassandra.utils">MurmurHash</a></td> <td class="colLast"> <div class="block">This is a very fast, non-cryptographic hash suitable for general hash-based lookup.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Mx4jTool.html" title="class in org.apache.cassandra.utils">Mx4jTool</a></td> <td class="colLast"> <div class="block">If mx4j-tools is in the classpath call maybeLoad to load the HTTP interface of mx4j.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ObjectSizes.html" title="class in org.apache.cassandra.utils">ObjectSizes</a></td> <td class="colLast"> <div class="block">A convenience class for wrapping access to MemoryMeter</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/OutputHandler.LogOutput.html" title="class in org.apache.cassandra.utils">OutputHandler.LogOutput</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/OutputHandler.SystemOutput.html" title="class in org.apache.cassandra.utils">OutputHandler.SystemOutput</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/Pair.html" title="class in org.apache.cassandra.utils">Pair</a>&lt;T1,T2&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/PureJavaCrc32.html" title="class in org.apache.cassandra.utils">PureJavaCrc32</a></td> <td class="colLast"> <div class="block">A pure-java implementation of the CRC32 checksum that uses the same polynomial as the built-in native CRC32.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ResourceWatcher.html" title="class in org.apache.cassandra.utils">ResourceWatcher</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/ResourceWatcher.WatchedResource.html" title="class in org.apache.cassandra.utils">ResourceWatcher.WatchedResource</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/SemanticVersion.html" title="class in org.apache.cassandra.utils">SemanticVersion</a></td> <td class="colLast"> <div class="block">Implements semantic versioning as defined at http://semver.org/.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/SortedBiMultiValMap.html" title="class in org.apache.cassandra.utils">SortedBiMultiValMap</a>&lt;K,V&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/StatusLogger.html" title="class in org.apache.cassandra.utils">StatusLogger</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/StreamingHistogram.html" title="class in org.apache.cassandra.utils">StreamingHistogram</a></td> <td class="colLast"> <div class="block">Histogram that can be constructed from streaming of data.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/StreamingHistogram.StreamingHistogramSerializer.html" title="class in org.apache.cassandra.utils">StreamingHistogram.StreamingHistogramSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/UUIDGen.html" title="class in org.apache.cassandra.utils">UUIDGen</a></td> <td class="colLast"> <div class="block">The goods are here: www.ietf.org/rfc/rfc4122.txt.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/UUIDSerializer.html" title="class in org.apache.cassandra.utils">UUIDSerializer</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../org/apache/cassandra/utils/WrappedRunnable.html" title="class in org.apache.cassandra.utils">WrappedRunnable</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> </ul> </div> <!-- ======= 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 class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.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/triggers/package-summary.html">Prev Package</a></li> <li><a href="../../../../org/apache/cassandra/utils/btree/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/cassandra/utils/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.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> <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>