OSDN Git Service

5361ddd7f06af1dfc85c2460468907a139b997aa
[libre10/libre10.git] / solr-4.6.0 / docs / solr-core / org / apache / solr / util / ConcurrentLFUCache.html
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_30) on Tue Nov 19 11:16:55 CET 2013 -->
6 <META http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <TITLE>
8 ConcurrentLFUCache (Solr 4.6.0 API)
9 </TITLE>
10
11 <META NAME="date" CONTENT="2013-11-19">
12
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15 <SCRIPT type="text/javascript">
16 function windowTitle()
17 {
18     if (location.href.indexOf('is-external=true') == -1) {
19         parent.document.title="ConcurrentLFUCache (Solr 4.6.0 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/ConcurrentLFUCache.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/BoundedTreeSet.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="interface 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/ConcurrentLFUCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62 &nbsp;<A HREF="ConcurrentLFUCache.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;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">
81 DETAIL:&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">
91 org.apache.solr.util</FONT>
92 <BR>
93 Class ConcurrentLFUCache&lt;K,V&gt;</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.ConcurrentLFUCache&lt;K,V&gt;</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>ConcurrentLFUCache&lt;K,V&gt;</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>
104 A LFU cache implementation based upon ConcurrentHashMap.
105  <p/>
106  This is not a terribly efficient implementation.  The tricks used in the
107  LRU version were not directly usable, perhaps it might be possible to
108  rewrite them with LFU in mind.
109  <p/>
110  <b>This API is experimental and subject to change</b>
111 <P>
112
113 <P>
114 <DL>
115 <DT><B>Since:</B></DT>
116   <DD>solr 1.6</DD>
117 </DL>
118 <HR>
119
120 <P>
121 <!-- ======== NESTED CLASS SUMMARY ======== -->
122
123 <A NAME="nested_class_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>Nested Class 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;interface</CODE></FONT></TD>
132 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLFUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="type parameter in ConcurrentLFUCache.EvictionListener">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="type parameter in ConcurrentLFUCache.EvictionListener">V</A>&gt;</B></CODE>
133
134 <BR>
135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
136 </TR>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139 <CODE>static&nbsp;class</CODE></FONT></TD>
140 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLFUCache.Stats</A></B></CODE>
141
142 <BR>
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
144 </TR>
145 </TABLE>
146 &nbsp;
147 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
148
149 <A NAME="constructor_summary"><!-- --></A>
150 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153 <B>Constructor Summary</B></FONT></TH>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#ConcurrentLFUCache(int, int)">ConcurrentLFUCache</A></B>(int&nbsp;size,
157                    int&nbsp;lowerWatermark)</CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#ConcurrentLFUCache(int, int, int, int, boolean, boolean, org.apache.solr.util.ConcurrentLFUCache.EvictionListener, boolean)">ConcurrentLFUCache</A></B>(int&nbsp;upperWaterMark,
164                    int&nbsp;lowerWaterMark,
165                    int&nbsp;acceptableSize,
166                    int&nbsp;initialSize,
167                    boolean&nbsp;runCleanupThread,
168                    boolean&nbsp;runNewThreadForCleanup,
169                    <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLFUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;&nbsp;evictionListener,
170                    boolean&nbsp;timeDecay)</CODE>
171
172 <BR>
173 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
174 </TR>
175 </TABLE>
176 &nbsp;
177 <!-- ========== METHOD SUMMARY =========== -->
178
179 <A NAME="method_summary"><!-- --></A>
180 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
181 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
182 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
183 <B>Method Summary</B></FONT></TH>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>&nbsp;void</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#clear()">clear</A></B>()</CODE>
189
190 <BR>
191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
192 </TR>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195 <CODE>&nbsp;void</CODE></FONT></TD>
196 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#destroy()">destroy</A></B>()</CODE>
197
198 <BR>
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
200 </TR>
201 <TR BGCOLOR="white" CLASS="TableRowColor">
202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203 <CODE>protected &nbsp;void</CODE></FONT></TD>
204 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#finalize()">finalize</A></B>()</CODE>
205
206 <BR>
207 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
208 </TR>
209 <TR BGCOLOR="white" CLASS="TableRowColor">
210 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211 <CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A></CODE></FONT></TD>
212 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#get(K)">get</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key)</CODE>
213
214 <BR>
215 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
216 </TR>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;</CODE></FONT></TD>
220 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#getLeastUsedItems(int)">getLeastUsedItems</A></B>(int&nbsp;n)</CODE>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns 'n' number of least used entries present in this cache.</TD>
224 </TR>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,org.apache.solr.util.ConcurrentLFUCache.CacheEntry&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;&gt;</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#getMap()">getMap</A></B>()</CODE>
229
230 <BR>
231 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
232 </TR>
233 <TR BGCOLOR="white" CLASS="TableRowColor">
234 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;</CODE></FONT></TD>
236 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#getMostUsedItems(int)">getMostUsedItems</A></B>(int&nbsp;n)</CODE>
237
238 <BR>
239 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns 'n' number of most used entries present in this cache.</TD>
240 </TR>
241 <TR BGCOLOR="white" CLASS="TableRowColor">
242 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243 <CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLFUCache.Stats</A></CODE></FONT></TD>
244 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#getStats()">getStats</A></B>()</CODE>
245
246 <BR>
247 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
248 </TR>
249 <TR BGCOLOR="white" CLASS="TableRowColor">
250 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251 <CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A></CODE></FONT></TD>
252 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#put(K, V)">put</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key,
253     <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&nbsp;val)</CODE>
254
255 <BR>
256 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
257 </TR>
258 <TR BGCOLOR="white" CLASS="TableRowColor">
259 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260 <CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A></CODE></FONT></TD>
261 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#remove(K)">remove</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key)</CODE>
262
263 <BR>
264 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
265 </TR>
266 <TR BGCOLOR="white" CLASS="TableRowColor">
267 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268 <CODE>&nbsp;void</CODE></FONT></TD>
269 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#setAlive(boolean)">setAlive</A></B>(boolean&nbsp;live)</CODE>
270
271 <BR>
272 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
273 </TR>
274 <TR BGCOLOR="white" CLASS="TableRowColor">
275 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
276 <CODE>&nbsp;int</CODE></FONT></TD>
277 <TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html#size()">size</A></B>()</CODE>
278
279 <BR>
280 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
281 </TR>
282 </TABLE>
283 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
284 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
285 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
286 <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>
287 </TR>
288 <TR BGCOLOR="white" CLASS="TableRowColor">
289 <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#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>
290 </TR>
291 </TABLE>
292 &nbsp;
293 <P>
294
295 <!-- ========= CONSTRUCTOR DETAIL ======== -->
296
297 <A NAME="constructor_detail"><!-- --></A>
298 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
299 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
300 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
301 <B>Constructor Detail</B></FONT></TH>
302 </TR>
303 </TABLE>
304
305 <A NAME="ConcurrentLFUCache(int, int, int, int, boolean, boolean, org.apache.solr.util.ConcurrentLFUCache.EvictionListener, boolean)"><!-- --></A><H3>
306 ConcurrentLFUCache</H3>
307 <PRE>
308 public <B>ConcurrentLFUCache</B>(int&nbsp;upperWaterMark,
309                           int&nbsp;lowerWaterMark,
310                           int&nbsp;acceptableSize,
311                           int&nbsp;initialSize,
312                           boolean&nbsp;runCleanupThread,
313                           boolean&nbsp;runNewThreadForCleanup,
314                           <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLFUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;&nbsp;evictionListener,
315                           boolean&nbsp;timeDecay)</PRE>
316 <DL>
317 </DL>
318 <HR>
319
320 <A NAME="ConcurrentLFUCache(int, int)"><!-- --></A><H3>
321 ConcurrentLFUCache</H3>
322 <PRE>
323 public <B>ConcurrentLFUCache</B>(int&nbsp;size,
324                           int&nbsp;lowerWatermark)</PRE>
325 <DL>
326 </DL>
327
328 <!-- ============ METHOD DETAIL ========== -->
329
330 <A NAME="method_detail"><!-- --></A>
331 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
332 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
333 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
334 <B>Method Detail</B></FONT></TH>
335 </TR>
336 </TABLE>
337
338 <A NAME="setAlive(boolean)"><!-- --></A><H3>
339 setAlive</H3>
340 <PRE>
341 public void <B>setAlive</B>(boolean&nbsp;live)</PRE>
342 <DL>
343 <DD><DL>
344 </DL>
345 </DD>
346 </DL>
347 <HR>
348
349 <A NAME="get(java.lang.Object)"><!-- --></A><A NAME="get(K)"><!-- --></A><H3>
350 get</H3>
351 <PRE>
352 public <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A> <B>get</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key)</PRE>
353 <DL>
354 <DD><DL>
355 </DL>
356 </DD>
357 </DL>
358 <HR>
359
360 <A NAME="remove(java.lang.Object)"><!-- --></A><A NAME="remove(K)"><!-- --></A><H3>
361 remove</H3>
362 <PRE>
363 public <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A> <B>remove</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key)</PRE>
364 <DL>
365 <DD><DL>
366 </DL>
367 </DD>
368 </DL>
369 <HR>
370
371 <A NAME="put(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="put(K, V)"><!-- --></A><H3>
372 put</H3>
373 <PRE>
374 public <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A> <B>put</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>&nbsp;key,
375              <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&nbsp;val)</PRE>
376 <DL>
377 <DD><DL>
378 </DL>
379 </DD>
380 </DL>
381 <HR>
382
383 <A NAME="getLeastUsedItems(int)"><!-- --></A><H3>
384 getLeastUsedItems</H3>
385 <PRE>
386 public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt; <B>getLeastUsedItems</B>(int&nbsp;n)</PRE>
387 <DL>
388 <DD>Returns 'n' number of least used entries present in this cache.
389  <p/>
390  This uses a TreeSet to collect the 'n' least used items ordered by ascending hitcount
391  and returns a LinkedHashMap containing 'n' or less than 'n' entries.
392 <P>
393 <DD><DL>
394 <DT><B>Parameters:</B><DD><CODE>n</CODE> - the number of items needed
395 <DT><B>Returns:</B><DD>a LinkedHashMap containing 'n' or less than 'n' entries</DL>
396 </DD>
397 </DL>
398 <HR>
399
400 <A NAME="getMostUsedItems(int)"><!-- --></A><H3>
401 getMostUsedItems</H3>
402 <PRE>
403 public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt; <B>getMostUsedItems</B>(int&nbsp;n)</PRE>
404 <DL>
405 <DD>Returns 'n' number of most used entries present in this cache.
406  <p/>
407  This uses a TreeSet to collect the 'n' most used items ordered by descending hitcount
408  and returns a LinkedHashMap containing 'n' or less than 'n' entries.
409 <P>
410 <DD><DL>
411 <DT><B>Parameters:</B><DD><CODE>n</CODE> - the number of items needed
412 <DT><B>Returns:</B><DD>a LinkedHashMap containing 'n' or less than 'n' entries</DL>
413 </DD>
414 </DL>
415 <HR>
416
417 <A NAME="size()"><!-- --></A><H3>
418 size</H3>
419 <PRE>
420 public int <B>size</B>()</PRE>
421 <DL>
422 <DD><DL>
423 </DL>
424 </DD>
425 </DL>
426 <HR>
427
428 <A NAME="clear()"><!-- --></A><H3>
429 clear</H3>
430 <PRE>
431 public void <B>clear</B>()</PRE>
432 <DL>
433 <DD><DL>
434 </DL>
435 </DD>
436 </DL>
437 <HR>
438
439 <A NAME="getMap()"><!-- --></A><H3>
440 getMap</H3>
441 <PRE>
442 public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,org.apache.solr.util.ConcurrentLFUCache.CacheEntry&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.html" title="type parameter in ConcurrentLFUCache">V</A>&gt;&gt; <B>getMap</B>()</PRE>
443 <DL>
444 <DD><DL>
445 </DL>
446 </DD>
447 </DL>
448 <HR>
449
450 <A NAME="destroy()"><!-- --></A><H3>
451 destroy</H3>
452 <PRE>
453 public void <B>destroy</B>()</PRE>
454 <DL>
455 <DD><DL>
456 </DL>
457 </DD>
458 </DL>
459 <HR>
460
461 <A NAME="getStats()"><!-- --></A><H3>
462 getStats</H3>
463 <PRE>
464 public <A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLFUCache.Stats</A> <B>getStats</B>()</PRE>
465 <DL>
466 <DD><DL>
467 </DL>
468 </DD>
469 </DL>
470 <HR>
471
472 <A NAME="finalize()"><!-- --></A><H3>
473 finalize</H3>
474 <PRE>
475 protected void <B>finalize</B>()
476                  throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></PRE>
477 <DL>
478 <DD><DL>
479 <DT><B>Overrides:</B><DD><CODE><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></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>
480 </DD>
481 <DD><DL>
482
483 <DT><B>Throws:</B>
484 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></CODE></DL>
485 </DD>
486 </DL>
487 <!-- ========= END OF CLASS DATA ========= -->
488 <HR>
489
490
491 <!-- ======= START OF BOTTOM NAVBAR ====== -->
492 <A NAME="navbar_bottom"><!-- --></A>
493 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
494 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
495 <TR>
496 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
497 <A NAME="navbar_bottom_firstrow"><!-- --></A>
498 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
499   <TR ALIGN="center" VALIGN="top">
500   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
501   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
502   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
503   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConcurrentLFUCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
504   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
505   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
506   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
507   </TR>
508 </TABLE>
509 </TD>
510 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
511 </EM>
512 </TD>
513 </TR>
514
515 <TR>
516 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
517 &nbsp;<A HREF="../../../../org/apache/solr/util/BoundedTreeSet.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
518 &nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.EvictionListener.html" title="interface in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD>
519 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
520   <A HREF="../../../../index.html?org/apache/solr/util/ConcurrentLFUCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
521 &nbsp;<A HREF="ConcurrentLFUCache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
522 &nbsp;<SCRIPT type="text/javascript">
523   <!--
524   if(window==top) {
525     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
526   }
527   //-->
528 </SCRIPT>
529 <NOSCRIPT>
530   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
531 </NOSCRIPT>
532
533
534 </FONT></TD>
535 </TR>
536 <TR>
537 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
538   SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
539 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
540 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
541 </TR>
542 </TABLE>
543 <A NAME="skip-navbar_bottom"></A>
544 <!-- ======== END OF BOTTOM NAVBAR ======= -->
545
546 <HR>
547
548           <i>Copyright &copy; 2000-2013 Apache Software Foundation.  All Rights Reserved.</i>
549           <script src='../../../../prettify.js' type='text/javascript'></script>
550           <script type='text/javascript'>
551             (function(){
552               var oldonload = window.onload;
553               if (typeof oldonload != 'function') {
554                 window.onload = prettyPrint;
555               } else {
556                 window.onload = function() {
557                   oldonload();
558                   prettyPrint();
559                 }
560               }
561             })();
562           </script>
563         
564 </BODY>
565 </HTML>