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