source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/handler/dataimport/SolrWriter.html @ 7588

Revision 7588, 27.8 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:26 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8SolrWriter (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="SolrWriter (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/SolrWriter.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/handler/dataimport/SolrEntityProcessor.html" title="class in org.apache.solr.handler.dataimport"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../org/apache/solr/handler/dataimport/SortedMapBackedCache.html" title="class in org.apache.solr.handler.dataimport"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../index.html?org/apache/solr/handler/dataimport/SolrWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="SolrWriter.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;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&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;<A HREF="#constructor_detail">CONSTR</A>&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.handler.dataimport</FONT>
92<BR>
93Class SolrWriter</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 "><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html" title="class in org.apache.solr.handler.dataimport">org.apache.solr.handler.dataimport.DIHWriterBase</A>
97      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.handler.dataimport.SolrWriter</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>SolrWriter</B><DT>extends <A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html" title="class in org.apache.solr.handler.dataimport">DIHWriterBase</A><DT>implements <A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></DL>
105</PRE>
106
107<P>
108<p> Writes documents to SOLR. </p>
109 <p/>
110 <b>This API is experimental and may change in the future.</b>
111<P>
112
113<P>
114<DL>
115<DT><B>Since:</B></DT>
116  <DD>solr 1.3</DD>
117</DL>
118<HR>
119
120<P>
121<!-- =========== FIELD SUMMARY =========== -->
122
123<A NAME="field_summary"><!-- --></A>
124<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127<B>Field Summary</B></FONT></TH>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131<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>
132<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#LAST_INDEX_KEY">LAST_INDEX_KEY</A></B></CODE>
133
134<BR>
135&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
136</TR>
137</TABLE>
138&nbsp;<A NAME="fields_inherited_from_class_org.apache.solr.handler.dataimport.DIHWriterBase"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
141<TH ALIGN="left"><B>Fields inherited from class org.apache.solr.handler.dataimport.<A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html" title="class in org.apache.solr.handler.dataimport">DIHWriterBase</A></B></TH>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html#deltaKeys">deltaKeys</A>, <A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html#keyFieldName">keyFieldName</A></CODE></TD>
145</TR>
146</TABLE>
147&nbsp;
148<!-- ======== CONSTRUCTOR SUMMARY ======== -->
149
150<A NAME="constructor_summary"><!-- --></A>
151<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
154<B>Constructor Summary</B></FONT></TH>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#SolrWriter(org.apache.solr.update.processor.UpdateRequestProcessor, org.apache.solr.request.SolrQueryRequest)">SolrWriter</A></B>(<A HREF="../../../../../org/apache/solr/update/processor/UpdateRequestProcessor.html" title="class in org.apache.solr.update.processor">UpdateRequestProcessor</A>&nbsp;processor,
158           <A HREF="../../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A>&nbsp;req)</CODE>
159
160<BR>
161&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
162</TR>
163</TABLE>
164&nbsp;
165<!-- ========== METHOD SUMMARY =========== -->
166
167<A NAME="method_summary"><!-- --></A>
168<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
169<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
170<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
171<B>Method Summary</B></FONT></TH>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>&nbsp;void</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#close()">close</A></B>()</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
180  Release resources used by this writer.</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;void</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#commit(boolean)">commit</A></B>(boolean&nbsp;optimize)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
189  If this writer supports transactions or commit points, then commit any changes,
190  optionally optimizing the data for read/write performance</TD>
191</TR>
192<TR BGCOLOR="white" CLASS="TableRowColor">
193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194<CODE>&nbsp;void</CODE></FONT></TD>
195<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#deleteByQuery(java.lang.String)">deleteByQuery</A></B>(<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>&nbsp;query)</CODE>
196
197<BR>
198&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
199  Delete from the writer's underlying data store based the passed-in writer-specific query.</TD>
200</TR>
201<TR BGCOLOR="white" CLASS="TableRowColor">
202<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203<CODE>&nbsp;void</CODE></FONT></TD>
204<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#deleteDoc(java.lang.Object)">deleteDoc</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;id)</CODE>
205
206<BR>
207&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
208  Delete from the writer's underlying data store based on the passed-in Primary Key</TD>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212<CODE>&nbsp;void</CODE></FONT></TD>
213<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#doDeleteAll()">doDeleteAll</A></B>()</CODE>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
217  Delete everything from the writer's underlying data store</TD>
218</TR>
219<TR BGCOLOR="white" CLASS="TableRowColor">
220<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221<CODE>&nbsp;void</CODE></FONT></TD>
222<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#init(org.apache.solr.handler.dataimport.Context)">init</A></B>(<A HREF="../../../../../org/apache/solr/handler/dataimport/Context.html" title="class in org.apache.solr.handler.dataimport">Context</A>&nbsp;context)</CODE>
223
224<BR>
225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
226  Provide context information for this writer.</TD>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230<CODE>&nbsp;void</CODE></FONT></TD>
231<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#rollback()">rollback</A></B>()</CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
235  If this writer supports transactions or commit points, then roll back any uncommitted changes.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;boolean</CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../../org/apache/solr/handler/dataimport/SolrWriter.html#upload(org.apache.solr.common.SolrInputDocument)">upload</A></B>(<A HREF="../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;d)</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
244  Add a document to this writer's underlying data store.</TD>
245</TR>
246</TABLE>
247&nbsp;<A NAME="methods_inherited_from_class_org.apache.solr.handler.dataimport.DIHWriterBase"><!-- --></A>
248<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
250<TH ALIGN="left"><B>Methods inherited from class org.apache.solr.handler.dataimport.<A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html" title="class in org.apache.solr.handler.dataimport">DIHWriterBase</A></B></TH>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriterBase.html#setDeltaKeys(java.util.Set)">setDeltaKeys</A></CODE></TD>
254</TR>
255</TABLE>
256&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
259<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>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<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#toString()" title="class or interface in java.lang">toString</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>
263</TR>
264</TABLE>
265&nbsp;<A NAME="methods_inherited_from_class_org.apache.solr.handler.dataimport.DIHWriter"><!-- --></A>
266<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
267<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
268<TH ALIGN="left"><B>Methods inherited from interface org.apache.solr.handler.dataimport.<A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></B></TH>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#setDeltaKeys(java.util.Set)">setDeltaKeys</A></CODE></TD>
272</TR>
273</TABLE>
274&nbsp;
275<P>
276
277<!-- ============ FIELD DETAIL =========== -->
278
279<A NAME="field_detail"><!-- --></A>
280<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
281<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
282<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
283<B>Field Detail</B></FONT></TH>
284</TR>
285</TABLE>
286
287<A NAME="LAST_INDEX_KEY"><!-- --></A><H3>
288LAST_INDEX_KEY</H3>
289<PRE>
290public 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>LAST_INDEX_KEY</B></PRE>
291<DL>
292<DL>
293<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.solr.handler.dataimport.SolrWriter.LAST_INDEX_KEY">Constant Field Values</A></DL>
294</DL>
295
296<!-- ========= CONSTRUCTOR DETAIL ======== -->
297
298<A NAME="constructor_detail"><!-- --></A>
299<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
300<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
301<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
302<B>Constructor Detail</B></FONT></TH>
303</TR>
304</TABLE>
305
306<A NAME="SolrWriter(org.apache.solr.update.processor.UpdateRequestProcessor, org.apache.solr.request.SolrQueryRequest)"><!-- --></A><H3>
307SolrWriter</H3>
308<PRE>
309public <B>SolrWriter</B>(<A HREF="../../../../../org/apache/solr/update/processor/UpdateRequestProcessor.html" title="class in org.apache.solr.update.processor">UpdateRequestProcessor</A>&nbsp;processor,
310                  <A HREF="../../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A>&nbsp;req)</PRE>
311<DL>
312</DL>
313
314<!-- ============ METHOD DETAIL ========== -->
315
316<A NAME="method_detail"><!-- --></A>
317<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
318<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
319<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
320<B>Method Detail</B></FONT></TH>
321</TR>
322</TABLE>
323
324<A NAME="close()"><!-- --></A><H3>
325close</H3>
326<PRE>
327public void <B>close</B>()</PRE>
328<DL>
329<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#close()">DIHWriter</A></CODE></B></DD>
330<DD><p>
331  Release resources used by this writer.  After calling close, reads & updates will throw exceptions.
332 </p>
333<P>
334<DD><DL>
335<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
336</DD>
337<DD><DL>
338</DL>
339</DD>
340</DL>
341<HR>
342
343<A NAME="upload(org.apache.solr.common.SolrInputDocument)"><!-- --></A><H3>
344upload</H3>
345<PRE>
346public boolean <B>upload</B>(<A HREF="../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;d)</PRE>
347<DL>
348<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#upload(org.apache.solr.common.SolrInputDocument)">DIHWriter</A></CODE></B></DD>
349<DD><p>
350  Add a document to this writer's underlying data store.
351 </p>
352<P>
353<DD><DL>
354<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#upload(org.apache.solr.common.SolrInputDocument)">upload</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
355</DD>
356<DD><DL>
357
358<DT><B>Returns:</B><DD>true on success, false on failure</DL>
359</DD>
360</DL>
361<HR>
362
363<A NAME="deleteDoc(java.lang.Object)"><!-- --></A><H3>
364deleteDoc</H3>
365<PRE>
366public void <B>deleteDoc</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;id)</PRE>
367<DL>
368<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#deleteDoc(java.lang.Object)">DIHWriter</A></CODE></B></DD>
369<DD><p>
370  Delete from the writer's underlying data store based on the passed-in Primary Key
371 </p>
372<P>
373<DD><DL>
374<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#deleteDoc(java.lang.Object)">deleteDoc</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
375</DD>
376<DD><DL>
377</DL>
378</DD>
379</DL>
380<HR>
381
382<A NAME="deleteByQuery(java.lang.String)"><!-- --></A><H3>
383deleteByQuery</H3>
384<PRE>
385public void <B>deleteByQuery</B>(<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>&nbsp;query)</PRE>
386<DL>
387<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#deleteByQuery(java.lang.String)">DIHWriter</A></CODE></B></DD>
388<DD><p>
389  Delete from the writer's underlying data store based the passed-in writer-specific query. (Optional Operation)
390 </p>
391<P>
392<DD><DL>
393<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#deleteByQuery(java.lang.String)">deleteByQuery</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
394</DD>
395<DD><DL>
396</DL>
397</DD>
398</DL>
399<HR>
400
401<A NAME="commit(boolean)"><!-- --></A><H3>
402commit</H3>
403<PRE>
404public void <B>commit</B>(boolean&nbsp;optimize)</PRE>
405<DL>
406<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#commit(boolean)">DIHWriter</A></CODE></B></DD>
407<DD><p>
408  If this writer supports transactions or commit points, then commit any changes,
409  optionally optimizing the data for read/write performance
410 </p>
411<P>
412<DD><DL>
413<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#commit(boolean)">commit</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
414</DD>
415<DD><DL>
416</DL>
417</DD>
418</DL>
419<HR>
420
421<A NAME="rollback()"><!-- --></A><H3>
422rollback</H3>
423<PRE>
424public void <B>rollback</B>()</PRE>
425<DL>
426<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#rollback()">DIHWriter</A></CODE></B></DD>
427<DD><p>
428  If this writer supports transactions or commit points, then roll back any uncommitted changes.
429 </p>
430<P>
431<DD><DL>
432<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#rollback()">rollback</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
433</DD>
434<DD><DL>
435</DL>
436</DD>
437</DL>
438<HR>
439
440<A NAME="doDeleteAll()"><!-- --></A><H3>
441doDeleteAll</H3>
442<PRE>
443public void <B>doDeleteAll</B>()</PRE>
444<DL>
445<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#doDeleteAll()">DIHWriter</A></CODE></B></DD>
446<DD><p>
447  Delete everything from the writer's underlying data store
448 </p>
449<P>
450<DD><DL>
451<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#doDeleteAll()">doDeleteAll</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
452</DD>
453<DD><DL>
454</DL>
455</DD>
456</DL>
457<HR>
458
459<A NAME="init(org.apache.solr.handler.dataimport.Context)"><!-- --></A><H3>
460init</H3>
461<PRE>
462public void <B>init</B>(<A HREF="../../../../../org/apache/solr/handler/dataimport/Context.html" title="class in org.apache.solr.handler.dataimport">Context</A>&nbsp;context)</PRE>
463<DL>
464<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#init(org.apache.solr.handler.dataimport.Context)">DIHWriter</A></CODE></B></DD>
465<DD><p>
466  Provide context information for this writer.  init() should be called before using the writer.
467 </p>
468<P>
469<DD><DL>
470<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html#init(org.apache.solr.handler.dataimport.Context)">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/solr/handler/dataimport/DIHWriter.html" title="interface in org.apache.solr.handler.dataimport">DIHWriter</A></CODE></DL>
471</DD>
472<DD><DL>
473</DL>
474</DD>
475</DL>
476<!-- ========= END OF CLASS DATA ========= -->
477<HR>
478
479
480<!-- ======= START OF BOTTOM NAVBAR ====== -->
481<A NAME="navbar_bottom"><!-- --></A>
482<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
483<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
484<TR>
485<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
486<A NAME="navbar_bottom_firstrow"><!-- --></A>
487<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
488  <TR ALIGN="center" VALIGN="top">
489  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
490  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
491  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
492  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
496  </TR>
497</TABLE>
498</TD>
499<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
500</EM>
501</TD>
502</TR>
503
504<TR>
505<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
506&nbsp;<A HREF="../../../../../org/apache/solr/handler/dataimport/SolrEntityProcessor.html" title="class in org.apache.solr.handler.dataimport"><B>PREV CLASS</B></A>&nbsp;
507&nbsp;<A HREF="../../../../../org/apache/solr/handler/dataimport/SortedMapBackedCache.html" title="class in org.apache.solr.handler.dataimport"><B>NEXT CLASS</B></A></FONT></TD>
508<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
509  <A HREF="../../../../../index.html?org/apache/solr/handler/dataimport/SolrWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
510&nbsp;<A HREF="SolrWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
511&nbsp;<SCRIPT type="text/javascript">
512  <!--
513  if(window==top) {
514    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
515  }
516  //-->
517</SCRIPT>
518<NOSCRIPT>
519  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
520</NOSCRIPT>
521
522
523</FONT></TD>
524</TR>
525<TR>
526<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
527  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
528<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
529DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
530</TR>
531</TABLE>
532<A NAME="skip-navbar_bottom"></A>
533<!-- ======== END OF BOTTOM NAVBAR ======= -->
534
535<HR>
536
537          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
538          <script src='../../../../../prettify.js' type='text/javascript'></script>
539          <script type='text/javascript'>
540            (function(){
541              var oldonload = window.onload;
542              if (typeof oldonload != 'function') {
543                window.onload = prettyPrint;
544              } else {
545                window.onload = function() {
546                  oldonload();
547                  prettyPrint();
548                }
549              }
550            })();
551          </script>
552       
553</BODY>
554</HTML>
Note: See TracBrowser for help on using the repository browser.