UNPKG

cassandra-server

Version:

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

650 lines (649 loc) 30 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:33 CEST 2014 --> <title>MappedFileDataInput (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="MappedFileDataInput (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/MappedFileDataInput.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/io/util/LengthAvailableInputStream.html" title="class in org.apache.cassandra.io.util"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../../org/apache/cassandra/io/util/Memory.html" title="class in org.apache.cassandra.io.util"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/cassandra/io/util/MappedFileDataInput.html" target="_top">Frames</a></li> <li><a href="MappedFileDataInput.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>Nested&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.io.util</div> <h2 title="Class MappedFileDataInput" class="title">Class MappedFileDataInput</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>java.io.InputStream</li> <li> <ul class="inheritance"> <li><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">org.apache.cassandra.io.util.AbstractDataInput</a></li> <li> <ul class="inheritance"> <li>org.apache.cassandra.io.util.MappedFileDataInput</li> </ul> </li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, <a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></dd> </dl> <hr> <br> <pre>public class <span class="strong">MappedFileDataInput</span> extends <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a> implements <a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== 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/io/util/MappedFileDataInput.html#MappedFileDataInput(java.io.FileInputStream,%20java.lang.String,%20long,%20int)">MappedFileDataInput</a></strong>(java.io.FileInputStream&nbsp;stream, java.lang.String&nbsp;filename, long&nbsp;segmentOffset, int&nbsp;position)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#MappedFileDataInput(java.nio.MappedByteBuffer,%20java.lang.String,%20long,%20int)">MappedFileDataInput</a></strong>(java.nio.MappedByteBuffer&nbsp;buffer, java.lang.String&nbsp;filename, long&nbsp;segmentOffset, int&nbsp;position)</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>long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#bytesPastMark(org.apache.cassandra.io.util.FileMark)">bytesPastMark</a></strong>(<a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a>&nbsp;mark)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#bytesRemaining()">bytesRemaining</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#getFilePointer()">getFilePointer</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#getPath()">getPath</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected int</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#getPosition()">getPosition</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#isEOF()">isEOF</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a></code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#mark()">mark</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#markSupported()">markSupported</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#read()">read</a></strong>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.nio.ByteBuffer</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#readBytes(int)">readBytes</a></strong>(int&nbsp;length)</code> <div class="block">Does the same thing as <code>readFully</code> do but without copying data (thread safe)</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#readFully(byte[])">readFully</a></strong>(byte[]&nbsp;bytes)</code> <div class="block">Reads bytes from this file into <code>buffer</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#readFully(byte[],%20int,%20int)">readFully</a></strong>(byte[]&nbsp;buffer, int&nbsp;offset, int&nbsp;count)</code> <div class="block">Read bytes from this file into <code>buffer</code> starting at offset <code>offset</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#reset(org.apache.cassandra.io.util.FileMark)">reset</a></strong>(<a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a>&nbsp;mark)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#seek(long)">seek</a></strong>(long&nbsp;pos)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#seekInternal(int)">seekInternal</a></strong>(int&nbsp;pos)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/cassandra/io/util/MappedFileDataInput.html#skipBytes(int)">skipBytes</a></strong>(int&nbsp;n)</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/io/util/MappedFileDataInput.html#toString()">toString</a></strong>()</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_org.apache.cassandra.io.util.AbstractDataInput"> <!-- --> </a> <h3>Methods inherited from class&nbsp;org.apache.cassandra.io.util.<a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a></h3> <code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readBoolean()">readBoolean</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readByte()">readByte</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readChar()">readChar</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readDouble()">readDouble</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readFloat()">readFloat</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readInt()">readInt</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readLine()">readLine</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readLong()">readLong</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readShort()">readShort</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readUnsignedByte()">readUnsignedByte</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readUnsignedShort()">readUnsignedShort</a>, <a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readUTF()">readUTF</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.io.InputStream"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.io.InputStream</h3> <code>available, close, mark, read, read, reset, skip</code></li> </ul> <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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.io.DataInput"> <!-- --> </a> <h3>Methods inherited from interface&nbsp;java.io.DataInput</h3> <code>readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.io.Closeable"> <!-- --> </a> <h3>Methods inherited from interface&nbsp;java.io.Closeable</h3> <code>close</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="MappedFileDataInput(java.io.FileInputStream, java.lang.String, long, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>MappedFileDataInput</h4> <pre>public&nbsp;MappedFileDataInput(java.io.FileInputStream&nbsp;stream, java.lang.String&nbsp;filename, long&nbsp;segmentOffset, int&nbsp;position) throws java.io.IOException</pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="MappedFileDataInput(java.nio.MappedByteBuffer, java.lang.String, long, int)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>MappedFileDataInput</h4> <pre>public&nbsp;MappedFileDataInput(java.nio.MappedByteBuffer&nbsp;buffer, java.lang.String&nbsp;filename, long&nbsp;segmentOffset, int&nbsp;position)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="seekInternal(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>seekInternal</h4> <pre>protected&nbsp;void&nbsp;seekInternal(int&nbsp;pos)</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#seekInternal(int)">seekInternal</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a></code></dd> </dl> </li> </ul> <a name="seek(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>seek</h4> <pre>public&nbsp;void&nbsp;seek(long&nbsp;pos) throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#seek(long)">seek</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="getFilePointer()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getFilePointer</h4> <pre>public&nbsp;long&nbsp;getFilePointer()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#getFilePointer()">getFilePointer</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> </dl> </li> </ul> <a name="getPosition()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPosition</h4> <pre>protected&nbsp;int&nbsp;getPosition()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#getPosition()">getPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a></code></dd> </dl> </li> </ul> <a name="markSupported()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>markSupported</h4> <pre>public&nbsp;boolean&nbsp;markSupported()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>markSupported</code>&nbsp;in class&nbsp;<code>java.io.InputStream</code></dd> </dl> </li> </ul> <a name="reset(org.apache.cassandra.io.util.FileMark)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>reset</h4> <pre>public&nbsp;void&nbsp;reset(<a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a>&nbsp;mark) throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#reset(org.apache.cassandra.io.util.FileMark)">reset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="mark()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mark</h4> <pre>public&nbsp;<a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a>&nbsp;mark()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#mark()">mark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> </dl> </li> </ul> <a name="bytesPastMark(org.apache.cassandra.io.util.FileMark)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>bytesPastMark</h4> <pre>public&nbsp;long&nbsp;bytesPastMark(<a href="../../../../../org/apache/cassandra/io/util/FileMark.html" title="interface in org.apache.cassandra.io.util">FileMark</a>&nbsp;mark)</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#bytesPastMark(org.apache.cassandra.io.util.FileMark)">bytesPastMark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> </dl> </li> </ul> <a name="isEOF()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isEOF</h4> <pre>public&nbsp;boolean&nbsp;isEOF() throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#isEOF()">isEOF</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="bytesRemaining()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>bytesRemaining</h4> <pre>public&nbsp;long&nbsp;bytesRemaining() throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#bytesRemaining()">bytesRemaining</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="getPath()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPath</h4> <pre>public&nbsp;java.lang.String&nbsp;getPath()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#getPath()">getPath</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> </dl> </li> </ul> <a name="read()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>read</h4> <pre>public&nbsp;int&nbsp;read() throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>read</code>&nbsp;in class&nbsp;<code>java.io.InputStream</code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="readBytes(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readBytes</h4> <pre>public&nbsp;java.nio.ByteBuffer&nbsp;readBytes(int&nbsp;length) throws java.io.IOException</pre> <div class="block">Does the same thing as <code>readFully</code> do but without copying data (thread safe)</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html#readBytes(int)">readBytes</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/FileDataInput.html" title="interface in org.apache.cassandra.io.util">FileDataInput</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>length</code> - length of the bytes to read</dd> <dt><span class="strong">Returns:</span></dt><dd>buffer with portion of file content</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - on any fail of I/O operation</dd></dl> </li> </ul> <a name="readFully(byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readFully</h4> <pre>public final&nbsp;void&nbsp;readFully(byte[]&nbsp;bytes) throws java.io.IOException</pre> <div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readFully(byte[])">AbstractDataInput</a></code></strong></div> <div class="block">Reads bytes from this file into <code>buffer</code>. Blocks until <code>buffer.length</code> number of bytes have been read, the end of the file is reached or an exception is thrown.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>readFully</code>&nbsp;in interface&nbsp;<code>java.io.DataInput</code></dd> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readFully(byte[])">readFully</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the buffer to read bytes into.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.EOFException</code> - if the end of this file is detected.</dd> <dd><code>java.io.IOException</code> - if this file is closed or another I/O error occurs.</dd></dl> </li> </ul> <a name="readFully(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readFully</h4> <pre>public final&nbsp;void&nbsp;readFully(byte[]&nbsp;buffer, int&nbsp;offset, int&nbsp;count) throws java.io.IOException</pre> <div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readFully(byte[],%20int,%20int)">AbstractDataInput</a></code></strong></div> <div class="block">Read bytes from this file into <code>buffer</code> starting at offset <code>offset</code>. This method blocks until <code>count</code> number of bytes have been read.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>readFully</code>&nbsp;in interface&nbsp;<code>java.io.DataInput</code></dd> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html#readFully(byte[],%20int,%20int)">readFully</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/cassandra/io/util/AbstractDataInput.html" title="class in org.apache.cassandra.io.util">AbstractDataInput</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - the buffer to read bytes into.</dd><dd><code>offset</code> - the initial position in <code>buffer</code> to store the bytes read from this file.</dd><dd><code>count</code> - the maximum number of bytes to store in <code>buffer</code>.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.EOFException</code> - if the end of this file is detected.</dd> <dd><code>java.io.IOException</code> - if this file is closed or another I/O error occurs.</dd></dl> </li> </ul> <a name="skipBytes(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>skipBytes</h4> <pre>public&nbsp;int&nbsp;skipBytes(int&nbsp;n) throws java.io.IOException</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>skipBytes</code>&nbsp;in interface&nbsp;<code>java.io.DataInput</code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="toString()"> <!-- --> </a> <ul class="blockListLast"> <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> </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/MappedFileDataInput.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/io/util/LengthAvailableInputStream.html" title="class in org.apache.cassandra.io.util"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../../org/apache/cassandra/io/util/Memory.html" title="class in org.apache.cassandra.io.util"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/cassandra/io/util/MappedFileDataInput.html" target="_top">Frames</a></li> <li><a href="MappedFileDataInput.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>Nested&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>