source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/update/TransactionLog.html @ 7588

Revision 7588, 29.3 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
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_24) on Mon Jun 25 15:26:25 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8TransactionLog (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="TransactionLog (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TransactionLog.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../org/apache/solr/update/SolrIndexWriter.html" title="class in org.apache.solr.update"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/update/TransactionLog.LogCodec.html" title="class in org.apache.solr.update"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/update/TransactionLog.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="TransactionLog.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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">
91org.apache.solr.update</FONT>
92<BR>
93Class TransactionLog</H2>
94<PRE>
95<A HREF="http://download.oracle.com/javase/6/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>org.apache.solr.update.TransactionLog</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>TransactionLog</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
101</PRE>
102
103<P>
104Log Format: List{Operation, Version, ...}
105  ADD, VERSION, DOC
106  DELETE, VERSION, ID_BYTES
107  DELETE_BY_QUERY, VERSION, String
108
109  TODO: keep two files, one for [operation, version, id] and the other for the actual
110  document data.  That way we could throw away document log files more readily
111  while retaining the smaller operation log files longer (and we can retrieve
112  the stored fields from the latest documents from the index).
113
114  This would require keeping all source fields stored of course.
115
116  This would also allow to not log document data for requests with commit=true
117  in them (since we know that if the request succeeds, all docs will be committed)
118<P>
119
120<P>
121<HR>
122
123<P>
124<!-- ======== NESTED CLASS SUMMARY ======== -->
125
126<A NAME="nested_class_summary"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130<B>Nested Class Summary</B></FONT></TH>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134<CODE>&nbsp;class</CODE></FONT></TD>
135<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.LogCodec.html" title="class in org.apache.solr.update">TransactionLog.LogCodec</A></B></CODE>
136
137<BR>
138&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142<CODE>&nbsp;class</CODE></FONT></TD>
143<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.LogReader.html" title="class in org.apache.solr.update">TransactionLog.LogReader</A></B></CODE>
144
145<BR>
146&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
147</TR>
148<TR BGCOLOR="white" CLASS="TableRowColor">
149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150<CODE>&nbsp;class</CODE></FONT></TD>
151<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.ReverseReader.html" title="class in org.apache.solr.update">TransactionLog.ReverseReader</A></B></CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
155</TR>
156</TABLE>
157&nbsp;<!-- =========== FIELD SUMMARY =========== -->
158
159<A NAME="field_summary"><!-- --></A>
160<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
163<B>Field Summary</B></FONT></TH>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
168<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#END_MESSAGE">END_MESSAGE</A></B></CODE>
169
170<BR>
171&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>static&nbsp;org.slf4j.Logger</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#log">log</A></B></CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180</TR>
181</TABLE>
182&nbsp;
183<!-- ========== METHOD SUMMARY =========== -->
184
185<A NAME="method_summary"><!-- --></A>
186<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
187<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
188<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
189<B>Method Summary</B></FONT></TH>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>&nbsp;void</CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#decref()">decref</A></B>()</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>&nbsp;boolean</CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#endsWithCommit()">endsWithCommit</A></B>()</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>&nbsp;void</CODE></FONT></TD>
210<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#finish(org.apache.solr.update.UpdateLog.SyncLevel)">finish</A></B>(<A HREF="../../../../org/apache/solr/update/UpdateLog.SyncLevel.html" title="enum in org.apache.solr.update">UpdateLog.SyncLevel</A>&nbsp;syncLevel)</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;void</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#forceClose()">forceClose</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;<A HREF="../../../../org/apache/solr/update/TransactionLog.LogReader.html" title="class in org.apache.solr.update">TransactionLog.LogReader</A></CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#getReader(long)">getReader</A></B>(long&nbsp;startingPos)</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a reader that can be used while a log is still in use.</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;<A HREF="../../../../org/apache/solr/update/TransactionLog.ReverseReader.html" title="class in org.apache.solr.update">TransactionLog.ReverseReader</A></CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#getReverseReader()">getReverseReader</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a single threaded reverse reader</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;void</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#incref()">incref</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#lookup(long)">lookup</A></B>(long&nbsp;pos)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>&nbsp;int</CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#numRecords()">numRecords</A></B>()</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of records in the log (currently includes the header and an optional commit).</TD>
262</TR>
263<TR BGCOLOR="white" CLASS="TableRowColor">
264<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265<CODE>&nbsp;long</CODE></FONT></TD>
266<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#position()">position</A></B>()</CODE>
267
268<BR>
269&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the current position in the log file</TD>
270</TR>
271<TR BGCOLOR="white" CLASS="TableRowColor">
272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273<CODE>&nbsp;void</CODE></FONT></TD>
274<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#rollback(long)">rollback</A></B>(long&nbsp;pos)</CODE>
275
276<BR>
277&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>&nbsp;long</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#snapshot()">snapshot</A></B>()</CODE>
283
284<BR>
285&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;takes a snapshot of the current position and number of records
286 for later possible rollback, and returns the position</TD>
287</TR>
288<TR BGCOLOR="white" CLASS="TableRowColor">
289<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
291<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#toString()">toString</A></B>()</CODE>
292
293<BR>
294&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
295</TR>
296<TR BGCOLOR="white" CLASS="TableRowColor">
297<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298<CODE>&nbsp;boolean</CODE></FONT></TD>
299<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#try_incref()">try_incref</A></B>()</CODE>
300
301<BR>
302&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
303</TR>
304<TR BGCOLOR="white" CLASS="TableRowColor">
305<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306<CODE>&nbsp;long</CODE></FONT></TD>
307<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#write(org.apache.solr.update.AddUpdateCommand, int)">write</A></B>(<A HREF="../../../../org/apache/solr/update/AddUpdateCommand.html" title="class in org.apache.solr.update">AddUpdateCommand</A>&nbsp;cmd,
308      int&nbsp;flags)</CODE>
309
310<BR>
311&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
312</TR>
313<TR BGCOLOR="white" CLASS="TableRowColor">
314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315<CODE>&nbsp;long</CODE></FONT></TD>
316<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#writeCommit(org.apache.solr.update.CommitUpdateCommand, int)">writeCommit</A></B>(<A HREF="../../../../org/apache/solr/update/CommitUpdateCommand.html" title="class in org.apache.solr.update">CommitUpdateCommand</A>&nbsp;cmd,
317            int&nbsp;flags)</CODE>
318
319<BR>
320&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
321</TR>
322<TR BGCOLOR="white" CLASS="TableRowColor">
323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324<CODE>&nbsp;long</CODE></FONT></TD>
325<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#writeData(java.lang.Object)">writeData</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
326
327<BR>
328&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
329</TR>
330<TR BGCOLOR="white" CLASS="TableRowColor">
331<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
332<CODE>&nbsp;long</CODE></FONT></TD>
333<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#writeDelete(org.apache.solr.update.DeleteUpdateCommand, int)">writeDelete</A></B>(<A HREF="../../../../org/apache/solr/update/DeleteUpdateCommand.html" title="class in org.apache.solr.update">DeleteUpdateCommand</A>&nbsp;cmd,
334            int&nbsp;flags)</CODE>
335
336<BR>
337&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
338</TR>
339<TR BGCOLOR="white" CLASS="TableRowColor">
340<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
341<CODE>&nbsp;long</CODE></FONT></TD>
342<TD><CODE><B><A HREF="../../../../org/apache/solr/update/TransactionLog.html#writeDeleteByQuery(org.apache.solr.update.DeleteUpdateCommand, int)">writeDeleteByQuery</A></B>(<A HREF="../../../../org/apache/solr/update/DeleteUpdateCommand.html" title="class in org.apache.solr.update">DeleteUpdateCommand</A>&nbsp;cmd,
343                   int&nbsp;flags)</CODE>
344
345<BR>
346&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
347</TR>
348</TABLE>
349&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
350<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
351<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
352<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
353</TR>
354<TR BGCOLOR="white" CLASS="TableRowColor">
355<TD><CODE><A HREF="http://download.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
356</TR>
357</TABLE>
358&nbsp;
359<P>
360
361<!-- ============ FIELD DETAIL =========== -->
362
363<A NAME="field_detail"><!-- --></A>
364<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
365<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
366<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
367<B>Field Detail</B></FONT></TH>
368</TR>
369</TABLE>
370
371<A NAME="log"><!-- --></A><H3>
372log</H3>
373<PRE>
374public static org.slf4j.Logger <B>log</B></PRE>
375<DL>
376<DL>
377</DL>
378</DL>
379<HR>
380
381<A NAME="END_MESSAGE"><!-- --></A><H3>
382END_MESSAGE</H3>
383<PRE>
384public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>END_MESSAGE</B></PRE>
385<DL>
386<DL>
387<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.update.TransactionLog.END_MESSAGE">Constant Field Values</A></DL>
388</DL>
389
390<!-- ============ METHOD DETAIL ========== -->
391
392<A NAME="method_detail"><!-- --></A>
393<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
394<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
395<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
396<B>Method Detail</B></FONT></TH>
397</TR>
398</TABLE>
399
400<A NAME="numRecords()"><!-- --></A><H3>
401numRecords</H3>
402<PRE>
403public int <B>numRecords</B>()</PRE>
404<DL>
405<DD>Returns the number of records in the log (currently includes the header and an optional commit).
406 Note: currently returns 0 for reopened existing log files.
407<P>
408<DD><DL>
409</DL>
410</DD>
411</DL>
412<HR>
413
414<A NAME="endsWithCommit()"><!-- --></A><H3>
415endsWithCommit</H3>
416<PRE>
417public boolean <B>endsWithCommit</B>()
418                       throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
419<DL>
420<DD><DL>
421
422<DT><B>Throws:</B>
423<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
424</DD>
425</DL>
426<HR>
427
428<A NAME="snapshot()"><!-- --></A><H3>
429snapshot</H3>
430<PRE>
431public long <B>snapshot</B>()</PRE>
432<DL>
433<DD>takes a snapshot of the current position and number of records
434 for later possible rollback, and returns the position
435<P>
436<DD><DL>
437</DL>
438</DD>
439</DL>
440<HR>
441
442<A NAME="rollback(long)"><!-- --></A><H3>
443rollback</H3>
444<PRE>
445public void <B>rollback</B>(long&nbsp;pos)
446              throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
447<DL>
448<DD><DL>
449
450<DT><B>Throws:</B>
451<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
452</DD>
453</DL>
454<HR>
455
456<A NAME="writeData(java.lang.Object)"><!-- --></A><H3>
457writeData</H3>
458<PRE>
459public long <B>writeData</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
460<DL>
461<DD><DL>
462</DL>
463</DD>
464</DL>
465<HR>
466
467<A NAME="write(org.apache.solr.update.AddUpdateCommand, int)"><!-- --></A><H3>
468write</H3>
469<PRE>
470public long <B>write</B>(<A HREF="../../../../org/apache/solr/update/AddUpdateCommand.html" title="class in org.apache.solr.update">AddUpdateCommand</A>&nbsp;cmd,
471                  int&nbsp;flags)</PRE>
472<DL>
473<DD><DL>
474</DL>
475</DD>
476</DL>
477<HR>
478
479<A NAME="writeDelete(org.apache.solr.update.DeleteUpdateCommand, int)"><!-- --></A><H3>
480writeDelete</H3>
481<PRE>
482public long <B>writeDelete</B>(<A HREF="../../../../org/apache/solr/update/DeleteUpdateCommand.html" title="class in org.apache.solr.update">DeleteUpdateCommand</A>&nbsp;cmd,
483                        int&nbsp;flags)</PRE>
484<DL>
485<DD><DL>
486</DL>
487</DD>
488</DL>
489<HR>
490
491<A NAME="writeDeleteByQuery(org.apache.solr.update.DeleteUpdateCommand, int)"><!-- --></A><H3>
492writeDeleteByQuery</H3>
493<PRE>
494public long <B>writeDeleteByQuery</B>(<A HREF="../../../../org/apache/solr/update/DeleteUpdateCommand.html" title="class in org.apache.solr.update">DeleteUpdateCommand</A>&nbsp;cmd,
495                               int&nbsp;flags)</PRE>
496<DL>
497<DD><DL>
498</DL>
499</DD>
500</DL>
501<HR>
502
503<A NAME="writeCommit(org.apache.solr.update.CommitUpdateCommand, int)"><!-- --></A><H3>
504writeCommit</H3>
505<PRE>
506public long <B>writeCommit</B>(<A HREF="../../../../org/apache/solr/update/CommitUpdateCommand.html" title="class in org.apache.solr.update">CommitUpdateCommand</A>&nbsp;cmd,
507                        int&nbsp;flags)</PRE>
508<DL>
509<DD><DL>
510</DL>
511</DD>
512</DL>
513<HR>
514
515<A NAME="lookup(long)"><!-- --></A><H3>
516lookup</H3>
517<PRE>
518public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>lookup</B>(long&nbsp;pos)</PRE>
519<DL>
520<DD><DL>
521</DL>
522</DD>
523</DL>
524<HR>
525
526<A NAME="incref()"><!-- --></A><H3>
527incref</H3>
528<PRE>
529public void <B>incref</B>()</PRE>
530<DL>
531<DD><DL>
532</DL>
533</DD>
534</DL>
535<HR>
536
537<A NAME="try_incref()"><!-- --></A><H3>
538try_incref</H3>
539<PRE>
540public boolean <B>try_incref</B>()</PRE>
541<DL>
542<DD><DL>
543</DL>
544</DD>
545</DL>
546<HR>
547
548<A NAME="decref()"><!-- --></A><H3>
549decref</H3>
550<PRE>
551public void <B>decref</B>()</PRE>
552<DL>
553<DD><DL>
554</DL>
555</DD>
556</DL>
557<HR>
558
559<A NAME="position()"><!-- --></A><H3>
560position</H3>
561<PRE>
562public long <B>position</B>()</PRE>
563<DL>
564<DD>returns the current position in the log file
565<P>
566<DD><DL>
567</DL>
568</DD>
569</DL>
570<HR>
571
572<A NAME="finish(org.apache.solr.update.UpdateLog.SyncLevel)"><!-- --></A><H3>
573finish</H3>
574<PRE>
575public void <B>finish</B>(<A HREF="../../../../org/apache/solr/update/UpdateLog.SyncLevel.html" title="enum in org.apache.solr.update">UpdateLog.SyncLevel</A>&nbsp;syncLevel)</PRE>
576<DL>
577<DD><DL>
578</DL>
579</DD>
580</DL>
581<HR>
582
583<A NAME="forceClose()"><!-- --></A><H3>
584forceClose</H3>
585<PRE>
586public void <B>forceClose</B>()</PRE>
587<DL>
588<DD><DL>
589</DL>
590</DD>
591</DL>
592<HR>
593
594<A NAME="toString()"><!-- --></A><H3>
595toString</H3>
596<PRE>
597public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
598<DL>
599<DD><DL>
600<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
601</DD>
602<DD><DL>
603</DL>
604</DD>
605</DL>
606<HR>
607
608<A NAME="getReader(long)"><!-- --></A><H3>
609getReader</H3>
610<PRE>
611public <A HREF="../../../../org/apache/solr/update/TransactionLog.LogReader.html" title="class in org.apache.solr.update">TransactionLog.LogReader</A> <B>getReader</B>(long&nbsp;startingPos)</PRE>
612<DL>
613<DD>Returns a reader that can be used while a log is still in use.
614 Currently only *one* LogReader may be outstanding, and that log may only
615 be used from a single thread.
616<P>
617<DD><DL>
618</DL>
619</DD>
620</DL>
621<HR>
622
623<A NAME="getReverseReader()"><!-- --></A><H3>
624getReverseReader</H3>
625<PRE>
626public <A HREF="../../../../org/apache/solr/update/TransactionLog.ReverseReader.html" title="class in org.apache.solr.update">TransactionLog.ReverseReader</A> <B>getReverseReader</B>()
627                                              throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
628<DL>
629<DD>Returns a single threaded reverse reader
630<P>
631<DD><DL>
632
633<DT><B>Throws:</B>
634<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
635</DD>
636</DL>
637<!-- ========= END OF CLASS DATA ========= -->
638<HR>
639
640
641<!-- ======= START OF BOTTOM NAVBAR ====== -->
642<A NAME="navbar_bottom"><!-- --></A>
643<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
644<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
645<TR>
646<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
647<A NAME="navbar_bottom_firstrow"><!-- --></A>
648<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
649  <TR ALIGN="center" VALIGN="top">
650  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
651  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
652  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
653  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TransactionLog.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
654  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
655  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
656  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
657  </TR>
658</TABLE>
659</TD>
660<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
661</EM>
662</TD>
663</TR>
664
665<TR>
666<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
667&nbsp;<A HREF="../../../../org/apache/solr/update/SolrIndexWriter.html" title="class in org.apache.solr.update"><B>PREV CLASS</B></A>&nbsp;
668&nbsp;<A HREF="../../../../org/apache/solr/update/TransactionLog.LogCodec.html" title="class in org.apache.solr.update"><B>NEXT CLASS</B></A></FONT></TD>
669<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
670  <A HREF="../../../../index.html?org/apache/solr/update/TransactionLog.html" target="_top"><B>FRAMES</B></A>  &nbsp;
671&nbsp;<A HREF="TransactionLog.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
672&nbsp;<SCRIPT type="text/javascript">
673  <!--
674  if(window==top) {
675    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
676  }
677  //-->
678</SCRIPT>
679<NOSCRIPT>
680  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
681</NOSCRIPT>
682
683
684</FONT></TD>
685</TR>
686<TR>
687<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
688  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
689<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
690DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
691</TR>
692</TABLE>
693<A NAME="skip-navbar_bottom"></A>
694<!-- ======== END OF BOTTOM NAVBAR ======= -->
695
696<HR>
697
698          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
699          <script src='../../../../prettify.js' type='text/javascript'></script>
700          <script type='text/javascript'>
701            (function(){
702              var oldonload = window.onload;
703              if (typeof oldonload != 'function') {
704                window.onload = prettyPrint;
705              } else {
706                window.onload = function() {
707                  oldonload();
708                  prettyPrint();
709                }
710              }
711            })();
712          </script>
713       
714</BODY>
715</HTML>
Note: See TracBrowser for help on using the repository browser.