⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 btree.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 associated pointer for it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTree.html#setRootNode(net.jxta.impl.xindice.core.filer.BTree.BTreeNode)">setRootNode</A></B>(net.jxta.impl.xindice.core.filer.BTree.BTreeNode&nbsp;rootNode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setRootNode resets the file's root to the provided BTreeNode's page number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTree.html#setRootNode(net.jxta.impl.xindice.core.filer.BTree.BTreeRootInfo, net.jxta.impl.xindice.core.filer.BTree.BTreeNode)">setRootNode</A></B>(<A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTree.BTreeRootInfo.html" title="class in net.jxta.impl.xindice.core.filer">BTree.BTreeRootInfo</A>&nbsp;root,            net.jxta.impl.xindice.core.filer.BTree.BTreeNode&nbsp;newRoot)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setRootNode resets the root for the specified root object to the provided BTreeNode's page number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTree.html#setSync(boolean)">setSync</A></B>(boolean&nbsp;sync)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Setting this option forces all system buffers with the underlying device if sync is set writes return after all modified data and attributes of the DB have been written to the device. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.impl.xindice.core.filer.Paged"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.impl.xindice.core.filer.<A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html" title="class in net.jxta.impl.xindice.core.filer">Paged</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#checkOpened()">checkOpened</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#close()">close</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#deleteArrayInt(int[], int)">deleteArrayInt</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#deleteArrayLong(long[], int)">deleteArrayLong</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#deleteArrayShort(short[], int)">deleteArrayShort</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#deleteArrayValue(net.jxta.impl.xindice.core.data.Value[], int)">deleteArrayValue</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#drop()">drop</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#exists()">exists</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#flush()">flush</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getDescriptor()">getDescriptor</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getFile()">getFile</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getFileHeader()">getFileHeader</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getFreePage()">getFreePage</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getPage(long)">getPage</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#getPage(java.lang.Long)">getPage</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#insertArrayInt(int[], int, int)">insertArrayInt</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#insertArrayLong(long[], long, int)">insertArrayLong</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#insertArrayShort(short[], short, int)">insertArrayShort</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#insertArrayValue(net.jxta.impl.xindice.core.data.Value[], net.jxta.impl.xindice.core.data.Value, int)">insertArrayValue</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#isOpened()">isOpened</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#putDescriptor(java.io.RandomAccessFile)">putDescriptor</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#readValue(long)">readValue</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#readValue(net.jxta.impl.xindice.core.filer.Paged.Page)">readValue</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#setFile(java.io.File)">setFile</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#unlinkPages(long)">unlinkPages</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#unlinkPages(net.jxta.impl.xindice.core.filer.Paged.Page)">unlinkPages</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#writeValue(long, net.jxta.impl.xindice.core.data.Value)">writeValue</A>, <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#writeValue(net.jxta.impl.xindice.core.filer.Paged.Page, net.jxta.impl.xindice.core.data.Value)">writeValue</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="LEAF"><!-- --></A><H3>LEAF</H3><PRE>protected static final byte <B>LEAF</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#net.jxta.impl.xindice.core.filer.BTree.LEAF">Constant Field Values</A></DL></DL><HR><A NAME="BRANCH"><!-- --></A><H3>BRANCH</H3><PRE>protected static final byte <B>BRANCH</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#net.jxta.impl.xindice.core.filer.BTree.BRANCH">Constant Field Values</A></DL></DL><HR><A NAME="STREAM"><!-- --></A><H3>STREAM</H3><PRE>protected static final byte <B>STREAM</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#net.jxta.impl.xindice.core.filer.BTree.STREAM">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BTree()"><!-- --></A><H3>BTree</H3><PRE>public <B>BTree</B>()</PRE><DL></DL><HR><A NAME="BTree(java.io.File)"><!-- --></A><H3>BTree</H3><PRE>public <B>BTree</B>(java.io.File&nbsp;file)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setSync(boolean)"><!-- --></A><H3>setSync</H3><PRE>public void <B>setSync</B>(boolean&nbsp;sync)</PRE><DL><DD>Setting this option forces all system buffers with the underlying device if sync is set writes return after all modified data and attributes of the DB have been written to the device. by default sync is true.<P><DD><DL></DL></DD></DL><HR><A NAME="open()"><!-- --></A><H3>open</H3><PRE>public boolean <B>open</B>()             throws <A HREF="../../../../../../net/jxta/impl/xindice/core/DBException.html" title="class in net.jxta.impl.xindice.core">DBException</A></PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#open()">open</A></CODE> in class <CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html" title="class in net.jxta.impl.xindice.core.filer">Paged</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/DBException.html" title="class in net.jxta.impl.xindice.core">DBException</A></CODE></DL></DD></DL><HR><A NAME="create()"><!-- --></A><H3>create</H3><PRE>public boolean <B>create</B>()               throws <A HREF="../../../../../../net/jxta/impl/xindice/core/DBException.html" title="class in net.jxta.impl.xindice.core">DBException</A></PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html#create()">create</A></CODE> in class <CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/Paged.html" title="class in net.jxta.impl.xindice.core.filer">Paged</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/DBException.html" title="class in net.jxta.impl.xindice.core">DBException</A></CODE></DL></DD></DL><HR><A NAME="addValue(net.jxta.impl.xindice.core.data.Value, long)"><!-- --></A><H3>addValue</H3><PRE>public long <B>addValue</B>(<A HREF="../../../../../../net/jxta/impl/xindice/core/data/Value.html" title="class in net.jxta.impl.xindice.core.data">Value</A>&nbsp;value,                     long&nbsp;pointer)              throws java.io.IOException,                     <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTreeException.html" title="class in net.jxta.impl.xindice.core.filer">BTreeException</A></PRE><DL><DD>addValue adds a Value to the BTree and associates a pointer with it.  The pointer can be used for referencing any type of data, it just so happens that Xindice uses it for referencing pages of associated data in the BTree file or other files.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The Value to add<DD><CODE>pointer</CODE> - The pointer to associate with it<DT><B>Returns:</B><DD>The previous value for the pointer (or -1)<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTreeException.html" title="class in net.jxta.impl.xindice.core.filer">BTreeException</A></CODE></DL></DD></DL><HR><A NAME="addValue(net.jxta.impl.xindice.core.filer.BTree.BTreeRootInfo, net.jxta.impl.xindice.core.data.Value, long)"><!-- --></A><H3>addValue</H3><PRE>public long <B>addValue</B>(<A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTree.BTreeRootInfo.html" title="class in net.jxta.impl.xindice.core.filer">BTree.BTreeRootInfo</A>&nbsp;root,                     <A HREF="../../../../../../net/jxta/impl/xindice/core/data/Value.html" title="class in net.jxta.impl.xindice.core.data">Value</A>&nbsp;value,                     long&nbsp;pointer)              throws java.io.IOException,                     <A HREF="../../../../../../net/jxta/impl/xindice/core/filer/BTreeException.html" title="class in net.jxta.impl.xindice.core.filer">BTreeException</A></PRE><DL><DD>addValue adds a Value to the BTree and associates a pointer with it.  The pointer can be used for referencing any type of data, it just so happens that Xindice uses it for referencing pages of associated data in the BTree file or other files.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - The BTree's root information (for nested trees)<DD><CODE>value</CODE> - The Value to add<DD><CODE>pointer</CODE> - The pointer to associate with it<DT><B>Returns:</B><DD>The previous value for the pointer (or -1)<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -