| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
|
| 3 |
<HTML> |
| 4 |
<HEAD> |
| 5 |
|
| 6 |
<TITLE> |
| 7 |
LogCursor (Oracle - Berkeley DB Java API) |
| 8 |
</TITLE> |
| 9 |
|
| 10 |
<META NAME="date" CONTENT="2013-09-09"> |
| 11 |
|
| 12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> |
| 13 |
|
| 14 |
<SCRIPT type="text/javascript"> |
| 15 |
function windowTitle() |
| 16 |
{ |
| 17 |
if (location.href.indexOf('is-external=true') == -1) { |
| 18 |
parent.document.title="LogCursor (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 |
|
| 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/LogCursor.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 5.3.28</font></EM> |
| 53 |
</TD> |
| 54 |
</TR> |
| 55 |
|
| 56 |
<TR> |
| 57 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 58 |
<A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> |
| 59 |
<A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface 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/LogCursor.html" target="_top"><B>FRAMES</B></A> |
| 62 |
<A HREF="LogCursor.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 80 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 81 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 82 |
</TR> |
| 83 |
</TABLE> |
| 84 |
<A NAME="skip-navbar_top"></A> |
| 85 |
|
| 86 |
|
| 87 |
<HR> |
| 88 |
|
| 89 |
<H2> |
| 90 |
<FONT SIZE="-1"> |
| 91 |
com.sleepycat.db</FONT> |
| 92 |
<BR> |
| 93 |
Class LogCursor</H2> |
| 94 |
<PRE> |
| 95 |
<A HREF="http://download.oracle.com/javase/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.LogCursor</B> |
| 97 |
</PRE> |
| 98 |
<HR> |
| 99 |
<DL> |
| 100 |
<DT><PRE>public class <B>LogCursor</B><DT>extends <A HREF="http://download.oracle.com/javase/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> |
| 104 |
The LogCursor object is the handle for a cursor into the log files, |
| 105 |
supporting sequential access to the records stored in log files. |
| 106 |
<p> |
| 107 |
The handle is not free-threaded. Once the <A HREF="../../../com/sleepycat/db/LogCursor.html#close()"><CODE>LogCursor.close</CODE></A> |
| 108 |
method is called, the handle may not be accessed again, regardless of |
| 109 |
that method's success or failure. |
| 110 |
<P> |
| 111 |
|
| 112 |
<P> |
| 113 |
<HR> |
| 114 |
|
| 115 |
<P> |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
<A NAME="method_summary"></A> |
| 120 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 121 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 122 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 123 |
<B>Method Summary</B></FONT></TH> |
| 124 |
</TR> |
| 125 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 126 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 127 |
<CODE> void</CODE></FONT></TD> |
| 128 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#close()">close</A></B>()</CODE> |
| 129 |
|
| 130 |
<BR> |
| 131 |
Discard the log cursor.</TD> |
| 132 |
</TR> |
| 133 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 134 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 135 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 136 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getCurrent(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getCurrent</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 137 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 138 |
|
| 139 |
<BR> |
| 140 |
Return the LogSequenceNumber and log record to which the log cursor |
| 141 |
currently refers.</TD> |
| 142 |
</TR> |
| 143 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 144 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 145 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 146 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getFirst(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getFirst</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 147 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 148 |
|
| 149 |
<BR> |
| 150 |
Return the first LogSequenceNumber and log record.</TD> |
| 151 |
</TR> |
| 152 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 153 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 154 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 155 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getLast(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getLast</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 156 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 157 |
|
| 158 |
<BR> |
| 159 |
Return the last LogSequenceNumber and log record.</TD> |
| 160 |
</TR> |
| 161 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 162 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 163 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 164 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getNext(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getNext</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 165 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 166 |
|
| 167 |
<BR> |
| 168 |
Return the next LogSequenceNumber and log record.</TD> |
| 169 |
</TR> |
| 170 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 171 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 172 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 173 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getPrev(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getPrev</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 174 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 175 |
|
| 176 |
<BR> |
| 177 |
Return the previous LogSequenceNumber and log record.</TD> |
| 178 |
</TR> |
| 179 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 180 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 181 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 182 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#set(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">set</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 183 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 184 |
|
| 185 |
<BR> |
| 186 |
Return a specific log record.</TD> |
| 187 |
</TR> |
| 188 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 189 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 190 |
<CODE> int</CODE></FONT></TD> |
| 191 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#version()">version</A></B>()</CODE> |
| 192 |
|
| 193 |
<BR> |
| 194 |
Get the log file version.</TD> |
| 195 |
</TR> |
| 196 |
</TABLE> |
| 197 |
<A NAME="methods_inherited_from_class_java.lang.Object"></A> |
| 198 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 199 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 200 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| 201 |
</TR> |
| 202 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 203 |
<TD><CODE><A HREF="http://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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> |
| 204 |
</TR> |
| 205 |
</TABLE> |
| 206 |
|
| 207 |
<P> |
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
<A NAME="method_detail"></A> |
| 212 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 213 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 214 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| 215 |
<B>Method Detail</B></FONT></TH> |
| 216 |
</TR> |
| 217 |
</TABLE> |
| 218 |
|
| 219 |
<A NAME="close()"></A><H3> |
| 220 |
close</H3> |
| 221 |
<PRE> |
| 222 |
public void <B>close</B>() |
| 223 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 224 |
<DL> |
| 225 |
<DD>Discard the log cursor. After close() has been called, regardless of its |
| 226 |
return, the cursor handle may not be used again. |
| 227 |
<P> |
| 228 |
<DD><DL> |
| 229 |
|
| 230 |
<DT><B>Throws:</B> |
| 231 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL> |
| 232 |
</DD> |
| 233 |
</DL> |
| 234 |
<HR> |
| 235 |
|
| 236 |
<A NAME="getCurrent(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 237 |
getCurrent</H3> |
| 238 |
<PRE> |
| 239 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getCurrent</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 240 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 241 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 242 |
<DL> |
| 243 |
<DD>Return the LogSequenceNumber and log record to which the log cursor |
| 244 |
currently refers. |
| 245 |
<p> |
| 246 |
<P> |
| 247 |
<DD><DL> |
| 248 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. |
| 249 |
<p><DD><CODE>data</CODE> - The returned log record. The data field is set to the record |
| 250 |
retrieved, and the size field indicates the number of bytes in |
| 251 |
the record. |
| 252 |
<p> |
| 253 |
<DT><B>Returns:</B><DD>The status of the operation. |
| 254 |
<p> |
| 255 |
<p> |
| 256 |
<DT><B>Throws:</B> |
| 257 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 258 |
</DD> |
| 259 |
</DL> |
| 260 |
<HR> |
| 261 |
|
| 262 |
<A NAME="getNext(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 263 |
getNext</H3> |
| 264 |
<PRE> |
| 265 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getNext</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 266 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 267 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 268 |
<DL> |
| 269 |
<DD>Return the next LogSequenceNumber and log record. |
| 270 |
<p> |
| 271 |
The current log position is advanced to the next record in the log, |
| 272 |
and its LogSequenceNumber and data are returned. If the cursor has |
| 273 |
not been initialized, the first available log record in the log will |
| 274 |
be returned. |
| 275 |
<p> |
| 276 |
<P> |
| 277 |
<DD><DL> |
| 278 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. |
| 279 |
<p><DD><CODE>data</CODE> - The returned log record. |
| 280 |
<p> |
| 281 |
<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the last |
| 282 |
log record has already been returned or the log is empty. |
| 283 |
<p> |
| 284 |
<p> |
| 285 |
<DT><B>Throws:</B> |
| 286 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 287 |
</DD> |
| 288 |
</DL> |
| 289 |
<HR> |
| 290 |
|
| 291 |
<A NAME="getFirst(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 292 |
getFirst</H3> |
| 293 |
<PRE> |
| 294 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getFirst</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 295 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 296 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 297 |
<DL> |
| 298 |
<DD>Return the first LogSequenceNumber and log record. |
| 299 |
<p> |
| 300 |
The current log position is set to the first record in the log, |
| 301 |
and its LogSequenceNumber and data are returned. |
| 302 |
<p> |
| 303 |
<P> |
| 304 |
<DD><DL> |
| 305 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. |
| 306 |
<p><DD><CODE>data</CODE> - The returned log record. |
| 307 |
<p> |
| 308 |
<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the log |
| 309 |
is empty. |
| 310 |
<p> |
| 311 |
<p> |
| 312 |
<DT><B>Throws:</B> |
| 313 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 314 |
</DD> |
| 315 |
</DL> |
| 316 |
<HR> |
| 317 |
|
| 318 |
<A NAME="getLast(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 319 |
getLast</H3> |
| 320 |
<PRE> |
| 321 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getLast</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 322 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 323 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 324 |
<DL> |
| 325 |
<DD>Return the last LogSequenceNumber and log record. |
| 326 |
<p> |
| 327 |
The current log position is set to the last record in the log, |
| 328 |
and its LogSequenceNumber and data are returned. |
| 329 |
<p> |
| 330 |
<P> |
| 331 |
<DD><DL> |
| 332 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. |
| 333 |
<p><DD><CODE>data</CODE> - The returned log record. |
| 334 |
<p> |
| 335 |
<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the log |
| 336 |
is empty. |
| 337 |
<p> |
| 338 |
<p> |
| 339 |
<DT><B>Throws:</B> |
| 340 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 341 |
</DD> |
| 342 |
</DL> |
| 343 |
<HR> |
| 344 |
|
| 345 |
<A NAME="getPrev(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 346 |
getPrev</H3> |
| 347 |
<PRE> |
| 348 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getPrev</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 349 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 350 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 351 |
<DL> |
| 352 |
<DD>Return the previous LogSequenceNumber and log record. |
| 353 |
<p> |
| 354 |
The current log position is advanced to the previous record in the log, |
| 355 |
and its LogSequenceNumber and data are returned. If the cursor has |
| 356 |
not been initialized, the last available log record in the log will |
| 357 |
be returned. |
| 358 |
<p> |
| 359 |
<P> |
| 360 |
<DD><DL> |
| 361 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. |
| 362 |
<p><DD><CODE>data</CODE> - The returned log record. |
| 363 |
<p> |
| 364 |
<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the first |
| 365 |
log record has already been returned or the log is empty. |
| 366 |
<p> |
| 367 |
<p> |
| 368 |
<DT><B>Throws:</B> |
| 369 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 370 |
</DD> |
| 371 |
</DL> |
| 372 |
<HR> |
| 373 |
|
| 374 |
<A NAME="set(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 375 |
set</H3> |
| 376 |
<PRE> |
| 377 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>set</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, |
| 378 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 379 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 380 |
<DL> |
| 381 |
<DD>Return a specific log record. |
| 382 |
<p> |
| 383 |
The current log position is set to the specified record in the log, |
| 384 |
and its data is returned. |
| 385 |
<p> |
| 386 |
<P> |
| 387 |
<DD><DL> |
| 388 |
<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The specified LogSequenceNumber. |
| 389 |
<p><DD><CODE>data</CODE> - The returned log record. |
| 390 |
<p> |
| 391 |
<DT><B>Returns:</B><DD>The status of the operation. |
| 392 |
<p> |
| 393 |
<p> |
| 394 |
<DT><B>Throws:</B> |
| 395 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 396 |
</DD> |
| 397 |
</DL> |
| 398 |
<HR> |
| 399 |
|
| 400 |
<A NAME="version()"></A><H3> |
| 401 |
version</H3> |
| 402 |
<PRE> |
| 403 |
public int <B>version</B>() |
| 404 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 405 |
<DL> |
| 406 |
<DD>Get the log file version. |
| 407 |
<p> |
| 408 |
<P> |
| 409 |
<DD><DL> |
| 410 |
|
| 411 |
<DT><B>Returns:</B><DD>The log file version. |
| 412 |
<p> |
| 413 |
<p> |
| 414 |
<DT><B>Throws:</B> |
| 415 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 416 |
</DD> |
| 417 |
</DL> |
| 418 |
|
| 419 |
<HR> |
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
<A NAME="navbar_bottom"></A> |
| 424 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 425 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 426 |
<TR> |
| 427 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 428 |
<A NAME="navbar_bottom_firstrow"></A> |
| 429 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 430 |
<TR ALIGN="center" VALIGN="top"> |
| 431 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 432 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 433 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 434 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LogCursor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 435 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 436 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 437 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 438 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 439 |
</TR> |
| 440 |
</TABLE> |
| 441 |
</TD> |
| 442 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 443 |
<b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM> |
| 444 |
</TD> |
| 445 |
</TR> |
| 446 |
|
| 447 |
<TR> |
| 448 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 449 |
<A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> |
| 450 |
<A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> |
| 451 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 452 |
<A HREF="../../../index.html?com/sleepycat/db/LogCursor.html" target="_top"><B>FRAMES</B></A> |
| 453 |
<A HREF="LogCursor.html" target="_top"><B>NO FRAMES</B></A> |
| 454 |
<SCRIPT type="text/javascript"> |
| 455 |
<!-- |
| 456 |
if(window==top) { |
| 457 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 458 |
} |
| 459 |
//--> |
| 460 |
</SCRIPT> |
| 461 |
<NOSCRIPT> |
| 462 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 463 |
</NOSCRIPT> |
| 464 |
|
| 465 |
|
| 466 |
</FONT></TD> |
| 467 |
</TR> |
| 468 |
<TR> |
| 469 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 470 |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 471 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 472 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 473 |
</TR> |
| 474 |
</TABLE> |
| 475 |
<A NAME="skip-navbar_bottom"></A> |
| 476 |
|
| 477 |
|
| 478 |
<HR> |
| 479 |
<font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font> |
| 480 |
</BODY> |
| 481 |
</HTML> |