1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_03) on Mon Apr 12 16:25:47 EDT 2010 --> 6<TITLE> 7LogSequenceNumber (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="date" CONTENT="2010-04-12"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="LogSequenceNumber (Oracle - Berkeley DB Java API)"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LogSequenceNumber.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 48 </TR> 49</TABLE> 50</TD> 51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 52<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 53</TD> 54</TR> 55 56<TR> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A> 59 <A HREF="../../../com/sleepycat/db/LogStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../index.html?com/sleepycat/db/LogSequenceNumber.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="LogSequenceNumber.html" target="_top"><B>NO FRAMES</B></A> 63 <SCRIPT type="text/javascript"> 64 <!-- 65 if(window==top) { 66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 67 } 68 //--> 69</SCRIPT> 70<NOSCRIPT> 71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 72</NOSCRIPT> 73 74 75</FONT></TD> 76</TR> 77<TR> 78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 79 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 82</TR> 83</TABLE> 84<A NAME="skip-navbar_top"></A> 85<!-- ========= END OF TOP NAVBAR ========= --> 86 87<HR> 88<!-- ======== START OF CLASS DATA ======== --> 89<H2> 90<FONT SIZE="-1"> 91com.sleepycat.db</FONT> 92<BR> 93Class LogSequenceNumber</H2> 94<PRE> 95<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.LogSequenceNumber</B> 97</PRE> 98<HR> 99<DL> 100<DT><PRE>public class <B>LogSequenceNumber</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> 101</PRE> 102 103<P> 104The LogSequenceNumber object is a <em>log sequence number</em> which 105specifies a unique location in a log file. A LogSequenceNumber consists 106of two unsigned 32-bit integers -- one specifies the log file number, 107and the other specifies the offset in the log file. 108<P> 109 110<P> 111<HR> 112 113<P> 114 115<!-- ======== CONSTRUCTOR SUMMARY ======== --> 116 117<A NAME="constructor_summary"><!-- --></A> 118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 119<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 120<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 121<B>Constructor Summary</B></FONT></TH> 122</TR> 123<TR BGCOLOR="white" CLASS="TableRowColor"> 124<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogSequenceNumber.html#LogSequenceNumber()">LogSequenceNumber</A></B>()</CODE> 125 126<BR> 127 Construct an uninitialized LogSequenceNumber.</TD> 128</TR> 129<TR BGCOLOR="white" CLASS="TableRowColor"> 130<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogSequenceNumber.html#LogSequenceNumber(int, int)">LogSequenceNumber</A></B>(int file, 131 int offset)</CODE> 132 133<BR> 134 Construct a LogSequenceNumber with the specified file and offset.</TD> 135</TR> 136</TABLE> 137 138<!-- ========== METHOD SUMMARY =========== --> 139 140<A NAME="method_summary"><!-- --></A> 141<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 142<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 143<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 144<B>Method Summary</B></FONT></TH> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 148<CODE>static int</CODE></FONT></TD> 149<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogSequenceNumber.html#compare(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.LogSequenceNumber)">compare</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn1, 150 <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn2)</CODE> 151 152<BR> 153 Compare two LogSequenceNumber objects.</TD> 154</TR> 155<TR BGCOLOR="white" CLASS="TableRowColor"> 156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 157<CODE> int</CODE></FONT></TD> 158<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogSequenceNumber.html#getFile()">getFile</A></B>()</CODE> 159 160<BR> 161 Return the file number component of the LogSequenceNumber.</TD> 162</TR> 163<TR BGCOLOR="white" CLASS="TableRowColor"> 164<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 165<CODE> int</CODE></FONT></TD> 166<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogSequenceNumber.html#getOffset()">getOffset</A></B>()</CODE> 167 168<BR> 169 Return the file offset component of the LogSequenceNumber.</TD> 170</TR> 171</TABLE> 172 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 173<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 174<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 175<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 176</TR> 177<TR BGCOLOR="white" CLASS="TableRowColor"> 178<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 179</TR> 180</TABLE> 181 182<P> 183 184<!-- ========= CONSTRUCTOR DETAIL ======== --> 185 186<A NAME="constructor_detail"><!-- --></A> 187<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 188<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 189<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 190<B>Constructor Detail</B></FONT></TH> 191</TR> 192</TABLE> 193 194<A NAME="LogSequenceNumber(int, int)"><!-- --></A><H3> 195LogSequenceNumber</H3> 196<PRE> 197public <B>LogSequenceNumber</B>(int file, 198 int offset)</PRE> 199<DL> 200<DD>Construct a LogSequenceNumber with the specified file and offset. 201 <p> 202<P> 203<DL> 204<DT><B>Parameters:</B><DD><CODE>file</CODE> - The log file number. 205 <p><DD><CODE>offset</CODE> - The log file offset.</DL> 206</DL> 207<HR> 208 209<A NAME="LogSequenceNumber()"><!-- --></A><H3> 210LogSequenceNumber</H3> 211<PRE> 212public <B>LogSequenceNumber</B>()</PRE> 213<DL> 214<DD>Construct an uninitialized LogSequenceNumber. 215<P> 216</DL> 217 218<!-- ============ METHOD DETAIL ========== --> 219 220<A NAME="method_detail"><!-- --></A> 221<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 222<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 223<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 224<B>Method Detail</B></FONT></TH> 225</TR> 226</TABLE> 227 228<A NAME="getFile()"><!-- --></A><H3> 229getFile</H3> 230<PRE> 231public int <B>getFile</B>()</PRE> 232<DL> 233<DD>Return the file number component of the LogSequenceNumber. 234 <p> 235<P> 236<DD><DL> 237 238<DT><B>Returns:</B><DD>The file number component of the LogSequenceNumber.</DL> 239</DD> 240</DL> 241<HR> 242 243<A NAME="getOffset()"><!-- --></A><H3> 244getOffset</H3> 245<PRE> 246public int <B>getOffset</B>()</PRE> 247<DL> 248<DD>Return the file offset component of the LogSequenceNumber. 249 <p> 250<P> 251<DD><DL> 252 253<DT><B>Returns:</B><DD>The file offset component of the LogSequenceNumber.</DL> 254</DD> 255</DL> 256<HR> 257 258<A NAME="compare(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.LogSequenceNumber)"><!-- --></A><H3> 259compare</H3> 260<PRE> 261public static int <B>compare</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn1, 262 <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn2)</PRE> 263<DL> 264<DD>Compare two LogSequenceNumber objects. 265 <p> 266 This method returns 0 if the two LogSequenceNumber objects are 267 equal, 1 if lsn0 is greater than lsn1, and -1 if lsn0 is less than 268 lsn1. 269 <p> 270<P> 271<DD><DL> 272<DT><B>Parameters:</B><DD><CODE>lsn1</CODE> - The first LogSequenceNumber object to be compared. 273 <p><DD><CODE>lsn2</CODE> - The second LogSequenceNumber object to be compared. 274 <p> 275<DT><B>Returns:</B><DD>0 if the two LogSequenceNumber objects are equal, 1 if lsn1 is 276 greater than lsn2, and -1 if lsn1 is less than lsn2.</DL> 277</DD> 278</DL> 279<!-- ========= END OF CLASS DATA ========= --> 280<HR> 281 282 283<!-- ======= START OF BOTTOM NAVBAR ====== --> 284<A NAME="navbar_bottom"><!-- --></A> 285<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 286<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 287<TR> 288<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 289<A NAME="navbar_bottom_firstrow"><!-- --></A> 290<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 291 <TR ALIGN="center" VALIGN="top"> 292 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 293 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 294 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 295 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LogSequenceNumber.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 296 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 297 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 298 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 299 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 300 </TR> 301</TABLE> 302</TD> 303<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 304<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 305</TD> 306</TR> 307 308<TR> 309<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 310 <A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A> 311 <A HREF="../../../com/sleepycat/db/LogStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 312<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 313 <A HREF="../../../index.html?com/sleepycat/db/LogSequenceNumber.html" target="_top"><B>FRAMES</B></A> 314 <A HREF="LogSequenceNumber.html" target="_top"><B>NO FRAMES</B></A> 315 <SCRIPT type="text/javascript"> 316 <!-- 317 if(window==top) { 318 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 319 } 320 //--> 321</SCRIPT> 322<NOSCRIPT> 323 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 324</NOSCRIPT> 325 326 327</FONT></TD> 328</TR> 329<TR> 330<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 331 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 332<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 333DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 334</TR> 335</TABLE> 336<A NAME="skip-navbar_bottom"></A> 337<!-- ======== END OF BOTTOM NAVBAR ======= --> 338 339<HR> 340<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 341</BODY> 342</HTML> 343