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

📄 readnode.html

📁 本程序是由JAVA实现的R-树新建、结点增加、删除功能。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
public int <B>getElementIndex</B>(long&nbsp;ptr)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></B></DD>
<DD>returns index of the element with the pointer passed in the parameter
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#getElementIndex(long)">getElementIndex</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>returns NOT_DEFINED if ptr is not found</DL>
</DD>
</DL>
<HR>

<A NAME="modifyElement(int, rtree.Element)"><!-- --></A><H3>
modifyElement</H3>
<PRE>
public void <B>modifyElement</B>(int&nbsp;index,                          <A HREF="../rtree/Element.html" title="class in rtree">Element</A>&nbsp;elmt)                   throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A>,                          java.io.IOException,                          <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>Used to overwrite the old Element with the new one.     It modifies the element in the disk as well as in the local variables.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#modifyElement(int, rtree.Element)">modifyElement</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></CODE><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="modifyElement(int, long)"><!-- --></A><H3>
modifyElement</H3>
<PRE>
public void <B>modifyElement</B>(int&nbsp;index,                          long&nbsp;pointer)                   throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A>,                          java.io.IOException,                          <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>Overloaded
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#modifyElement(int, long)">modifyElement</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></CODE><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="modifyElement(int, rtree.Rect)"><!-- --></A><H3>
modifyElement</H3>
<PRE>
public void <B>modifyElement</B>(int&nbsp;index,                          <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A>&nbsp;rect)                   throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A>,                          java.io.IOException,                          <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>Overloaded
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#modifyElement(int, rtree.Rect)">modifyElement</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></CODE><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getNodeMBR()"><!-- --></A><H3>
getNodeMBR</H3>
<PRE>
public <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> <B>getNodeMBR</B>()                throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></PRE>
<DL>
<DD>This function runs a loop on the elements to calculate the total MBR.     Therefore in case if you already have loop that runs through each of the entries,     then it is better to calculate MBR in that loop without calling this method.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#getNodeMBR()">getNodeMBR</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></CODE> - When there are no elements in the node.</DL>
</DD>
</DL>
<HR>

<A NAME="setParent(long)"><!-- --></A><H3>
setParent</H3>
<PRE>
public void <B>setParent</B>(long&nbsp;prnt)               throws java.io.IOException,                      <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>No error echecking at all.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#setParent(long)">setParent</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getTotalElements()"><!-- --></A><H3>
getTotalElements</H3>
<PRE>
public int <B>getTotalElements</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#getTotalElements()">getTotalElements</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getAllElements()"><!-- --></A><H3>
getAllElements</H3>
<PRE>
public <A HREF="../rtree/Element.html" title="class in rtree">Element</A>[] <B>getAllElements</B>()</PRE>
<DL>
<DD>Although it returns all the elements but the total elements will not be equal to the length of     the returned array.Therefore <br><b>Never Use <code>.length</code> field With the Returned Array     </b>. Instead use <code>getTotalElements()</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#getAllElements()">getAllElements</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>An element Array.</DL>
</DD>
</DL>
<HR>

<A NAME="getElement(int)"><!-- --></A><H3>
getElement</H3>
<PRE>
<A HREF="../rtree/Element.html" title="class in rtree">Element</A> <B>getElement</B>(int&nbsp;index)             throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#getElement(int)">getElement</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="deleteNode()"><!-- --></A><H3>
deleteNode</H3>
<PRE>
public void <B>deleteNode</B>()                throws <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>Adds the node to the free stack.     Be very careful with this method because once called, this node may be     given to any new node even when you have not destroyed its object.     If the node is the only node then it updates the file header as well.     </br><i><b>Once called, there is no turning back!</b></i>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#deleteNode()">deleteNode</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="sweepSort()"><!-- --></A><H3>
sweepSort</H3>
<PRE>
void <B>sweepSort</B>()</PRE>
<DL>
<DD>This method is added to sort the elements in this node to help sweepline algorithm.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#sweepSort()">sweepSort</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
public boolean <B>flush</B>()              throws <A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></PRE>
<DL>
<DD>This is a new methos that will help the phylosophy where one should write to tbe cache only when     required.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#flush()">flush</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if needed write and written or false (not dirty).<DT><B>Throws:</B><DD><CODE><A HREF="../rtree/NodeWriteException.html" title="class in rtree">NodeWriteException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setDirty(boolean)"><!-- --></A><H3>
setDirty</H3>
<PRE>
void <B>setDirty</B>(boolean&nbsp;val)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#setDirty(boolean)">setDirty</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isDirty()"><!-- --></A><H3>
isDirty</H3>
<PRE>
public boolean <B>isDirty</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../rtree/Node.html#isDirty()">isDirty</A></CODE> in class <CODE><A HREF="../rtree/Node.html" title="class in rtree">Node</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ReadNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../rtree/Point.html" title="class in rtree"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../rtree/Rect.html" title="class in rtree"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ReadNode.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_rtree.Node">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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