source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/util/SolrPluginUtils.IdentityRegenerator.html @ 7588

Revision 7588, 16.7 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>
8SolrPluginUtils.IdentityRegenerator (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="SolrPluginUtils.IdentityRegenerator (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/SolrPluginUtils.IdentityRegenerator.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/util/SolrPluginUtils.DisjunctionMaxQueryParser.Alias.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/util/SuggestMissingFactories.html" title="class in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/util/SolrPluginUtils.IdentityRegenerator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="SolrPluginUtils.IdentityRegenerator.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;FIELD&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;FIELD&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.util</FONT>
92<BR>
93Class SolrPluginUtils.IdentityRegenerator</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.util.SolrPluginUtils.IdentityRegenerator</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/solr/search/CacheRegenerator.html" title="interface in org.apache.solr.search">CacheRegenerator</A></DD>
100</DL>
101<DL>
102<DT><B>Enclosing class:</B><DD><A HREF="../../../../org/apache/solr/util/SolrPluginUtils.html" title="class in org.apache.solr.util">SolrPluginUtils</A></DD>
103</DL>
104<HR>
105<DL>
106<DT><PRE>public static class <B>SolrPluginUtils.IdentityRegenerator</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><DT>implements <A HREF="../../../../org/apache/solr/search/CacheRegenerator.html" title="interface in org.apache.solr.search">CacheRegenerator</A></DL>
107</PRE>
108
109<P>
110A CacheRegenerator that can be used whenever the items in the cache
111 are not dependant on the current searcher.
112
113 <p>
114 Flat out copies the oldKey=&gt;oldVal pair into the newCache
115 </p>
116<P>
117
118<P>
119<HR>
120
121<P>
122
123<!-- ======== CONSTRUCTOR SUMMARY ======== -->
124
125<A NAME="constructor_summary"><!-- --></A>
126<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129<B>Constructor Summary</B></FONT></TH>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD><CODE><B><A HREF="../../../../org/apache/solr/util/SolrPluginUtils.IdentityRegenerator.html#SolrPluginUtils.IdentityRegenerator()">SolrPluginUtils.IdentityRegenerator</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;
139<!-- ========== METHOD SUMMARY =========== -->
140
141<A NAME="method_summary"><!-- --></A>
142<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
145<B>Method Summary</B></FONT></TH>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149<CODE>&nbsp;boolean</CODE></FONT></TD>
150<TD><CODE><B><A HREF="../../../../org/apache/solr/util/SolrPluginUtils.IdentityRegenerator.html#regenerateItem(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrCache, org.apache.solr.search.SolrCache, java.lang.Object, java.lang.Object)">regenerateItem</A></B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;newSearcher,
151               <A HREF="../../../../org/apache/solr/search/SolrCache.html" title="interface in org.apache.solr.search">SolrCache</A>&nbsp;newCache,
152               <A HREF="../../../../org/apache/solr/search/SolrCache.html" title="interface in org.apache.solr.search">SolrCache</A>&nbsp;oldCache,
153               <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;oldKey,
154               <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;oldVal)</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regenerate an old cache item and insert it into <code>newCache</code></TD>
158</TR>
159</TABLE>
160&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
161<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
163<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>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<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>
167</TR>
168</TABLE>
169&nbsp;
170<P>
171
172<!-- ========= CONSTRUCTOR DETAIL ======== -->
173
174<A NAME="constructor_detail"><!-- --></A>
175<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
178<B>Constructor Detail</B></FONT></TH>
179</TR>
180</TABLE>
181
182<A NAME="SolrPluginUtils.IdentityRegenerator()"><!-- --></A><H3>
183SolrPluginUtils.IdentityRegenerator</H3>
184<PRE>
185public <B>SolrPluginUtils.IdentityRegenerator</B>()</PRE>
186<DL>
187</DL>
188
189<!-- ============ METHOD DETAIL ========== -->
190
191<A NAME="method_detail"><!-- --></A>
192<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
193<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
194<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
195<B>Method Detail</B></FONT></TH>
196</TR>
197</TABLE>
198
199<A NAME="regenerateItem(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrCache, org.apache.solr.search.SolrCache, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
200regenerateItem</H3>
201<PRE>
202public boolean <B>regenerateItem</B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;newSearcher,
203                              <A HREF="../../../../org/apache/solr/search/SolrCache.html" title="interface in org.apache.solr.search">SolrCache</A>&nbsp;newCache,
204                              <A HREF="../../../../org/apache/solr/search/SolrCache.html" title="interface in org.apache.solr.search">SolrCache</A>&nbsp;oldCache,
205                              <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;oldKey,
206                              <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;oldVal)
207                       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>
208<DL>
209<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/CacheRegenerator.html#regenerateItem(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrCache, org.apache.solr.search.SolrCache, java.lang.Object, java.lang.Object)">CacheRegenerator</A></CODE></B></DD>
210<DD>Regenerate an old cache item and insert it into <code>newCache</code>
211<P>
212<DD><DL>
213<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/CacheRegenerator.html#regenerateItem(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrCache, org.apache.solr.search.SolrCache, java.lang.Object, java.lang.Object)">regenerateItem</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/CacheRegenerator.html" title="interface in org.apache.solr.search">CacheRegenerator</A></CODE></DL>
214</DD>
215<DD><DL>
216<DT><B>Parameters:</B><DD><CODE>newSearcher</CODE> - the new searcher who's caches are being autowarmed<DD><CODE>newCache</CODE> - where regenerated cache items should be stored. the target of the autowarming<DD><CODE>oldCache</CODE> - the old cache being used as a source for autowarming<DD><CODE>oldKey</CODE> - the key of the old cache item to regenerate in the new cache<DD><CODE>oldVal</CODE> - the old value of the cache item
217<DT><B>Returns:</B><DD>true to continue with autowarming, false to stop
218<DT><B>Throws:</B>
219<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>
220</DD>
221</DL>
222<!-- ========= END OF CLASS DATA ========= -->
223<HR>
224
225
226<!-- ======= START OF BOTTOM NAVBAR ====== -->
227<A NAME="navbar_bottom"><!-- --></A>
228<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
229<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
230<TR>
231<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
232<A NAME="navbar_bottom_firstrow"><!-- --></A>
233<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
234  <TR ALIGN="center" VALIGN="top">
235  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
236  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
237  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
238  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrPluginUtils.IdentityRegenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
239  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
240  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
241  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
242  </TR>
243</TABLE>
244</TD>
245<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
246</EM>
247</TD>
248</TR>
249
250<TR>
251<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
252&nbsp;<A HREF="../../../../org/apache/solr/util/SolrPluginUtils.DisjunctionMaxQueryParser.Alias.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
253&nbsp;<A HREF="../../../../org/apache/solr/util/SuggestMissingFactories.html" title="class in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD>
254<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
255  <A HREF="../../../../index.html?org/apache/solr/util/SolrPluginUtils.IdentityRegenerator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
256&nbsp;<A HREF="SolrPluginUtils.IdentityRegenerator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
257&nbsp;<SCRIPT type="text/javascript">
258  <!--
259  if(window==top) {
260    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
261  }
262  //-->
263</SCRIPT>
264<NOSCRIPT>
265  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
266</NOSCRIPT>
267
268
269</FONT></TD>
270</TR>
271<TR>
272<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
273  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
274<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
275DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
276</TR>
277</TABLE>
278<A NAME="skip-navbar_bottom"></A>
279<!-- ======== END OF BOTTOM NAVBAR ======= -->
280
281<HR>
282
283          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
284          <script src='../../../../prettify.js' type='text/javascript'></script>
285          <script type='text/javascript'>
286            (function(){
287              var oldonload = window.onload;
288              if (typeof oldonload != 'function') {
289                window.onload = prettyPrint;
290              } else {
291                window.onload = function() {
292                  oldonload();
293                  prettyPrint();
294                }
295              }
296            })();
297          </script>
298       
299</BODY>
300</HTML>
Note: See TracBrowser for help on using the repository browser.