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_03) on Mon Apr 12 16:25:48 EDT 2010 --> 6<TITLE> 7StatsConfig (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="date" CONTENT="2010-04-12"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="StatsConfig (Oracle - Berkeley DB Java API)"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StatsConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 48 </TR> 49</TABLE> 50</TD> 51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 52<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 53</TD> 54</TR> 55 56<TR> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../com/sleepycat/db/SequenceStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 59 <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../index.html?com/sleepycat/db/StatsConfig.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="StatsConfig.html" target="_top"><B>NO FRAMES</B></A> 63 <SCRIPT type="text/javascript"> 64 <!-- 65 if(window==top) { 66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 67 } 68 //--> 69</SCRIPT> 70<NOSCRIPT> 71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 72</NOSCRIPT> 73 74 75</FONT></TD> 76</TR> 77<TR> 78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 79 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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"> 91com.sleepycat.db</FONT> 92<BR> 93Class StatsConfig</H2> 94<PRE> 95<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.StatsConfig</B> 97</PRE> 98<HR> 99<DL> 100<DT><PRE>public class <B>StatsConfig</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> 101</PRE> 102 103<P> 104Specifies the attributes of a statistics retrieval operation. 105<P> 106 107<P> 108<HR> 109 110<P> 111<!-- =========== FIELD SUMMARY =========== --> 112 113<A NAME="field_summary"><!-- --></A> 114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 117<B>Field Summary</B></FONT></TH> 118</TR> 119<TR BGCOLOR="white" CLASS="TableRowColor"> 120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 121<CODE>static <A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A></CODE></FONT></TD> 122<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#DEFAULT">DEFAULT</A></B></CODE> 123 124<BR> 125 </TD> 126</TR> 127</TABLE> 128 129<!-- ======== CONSTRUCTOR SUMMARY ======== --> 130 131<A NAME="constructor_summary"><!-- --></A> 132<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 133<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 134<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 135<B>Constructor Summary</B></FONT></TH> 136</TR> 137<TR BGCOLOR="white" CLASS="TableRowColor"> 138<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#StatsConfig()">StatsConfig</A></B>()</CODE> 139 140<BR> 141 An instance created using the default constructor is initialized 142 with the system's default settings.</TD> 143</TR> 144</TABLE> 145 146<!-- ========== METHOD SUMMARY =========== --> 147 148<A NAME="method_summary"><!-- --></A> 149<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 150<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 151<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 152<B>Method Summary</B></FONT></TH> 153</TR> 154<TR BGCOLOR="white" CLASS="TableRowColor"> 155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 156<CODE> boolean</CODE></FONT></TD> 157<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#getClear()">getClear</A></B>()</CODE> 158 159<BR> 160 Return if the statistics operation is configured to reset 161 statistics after they are returned.</TD> 162</TR> 163<TR BGCOLOR="white" CLASS="TableRowColor"> 164<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 165<CODE> boolean</CODE></FONT></TD> 166<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#getFast()">getFast</A></B>()</CODE> 167 168<BR> 169 Return if the statistics operation is configured to return only the 170 values which do not require expensive actions.</TD> 171</TR> 172<TR BGCOLOR="white" CLASS="TableRowColor"> 173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 174<CODE> void</CODE></FONT></TD> 175<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#setClear(boolean)">setClear</A></B>(boolean clear)</CODE> 176 177<BR> 178 Configure the statistics operation to reset statistics after they 179 are returned.</TD> 180</TR> 181<TR BGCOLOR="white" CLASS="TableRowColor"> 182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 183<CODE> void</CODE></FONT></TD> 184<TD><CODE><B><A HREF="../../../com/sleepycat/db/StatsConfig.html#setFast(boolean)">setFast</A></B>(boolean fast)</CODE> 185 186<BR> 187 Configure the statistics operation to return only the values which 188 do not incur some performance penalty.</TD> 189</TR> 190</TABLE> 191 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 192<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 193<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 194<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 195</TR> 196<TR BGCOLOR="white" CLASS="TableRowColor"> 197<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 198</TR> 199</TABLE> 200 201<P> 202 203<!-- ============ FIELD DETAIL =========== --> 204 205<A NAME="field_detail"><!-- --></A> 206<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 207<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 208<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 209<B>Field Detail</B></FONT></TH> 210</TR> 211</TABLE> 212 213<A NAME="DEFAULT"><!-- --></A><H3> 214DEFAULT</H3> 215<PRE> 216public static final <A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A> <B>DEFAULT</B></PRE> 217<DL> 218<DL> 219</DL> 220</DL> 221 222<!-- ========= CONSTRUCTOR DETAIL ======== --> 223 224<A NAME="constructor_detail"><!-- --></A> 225<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 226<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 227<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 228<B>Constructor Detail</B></FONT></TH> 229</TR> 230</TABLE> 231 232<A NAME="StatsConfig()"><!-- --></A><H3> 233StatsConfig</H3> 234<PRE> 235public <B>StatsConfig</B>()</PRE> 236<DL> 237<DD>An instance created using the default constructor is initialized 238 with the system's default settings. 239<P> 240</DL> 241 242<!-- ============ METHOD DETAIL ========== --> 243 244<A NAME="method_detail"><!-- --></A> 245<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 246<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 247<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 248<B>Method Detail</B></FONT></TH> 249</TR> 250</TABLE> 251 252<A NAME="setClear(boolean)"><!-- --></A><H3> 253setClear</H3> 254<PRE> 255public void <B>setClear</B>(boolean clear)</PRE> 256<DL> 257<DD>Configure the statistics operation to reset statistics after they 258 are returned. The default value is false. 259 <p> 260<P> 261<DD><DL> 262<DT><B>Parameters:</B><DD><CODE>clear</CODE> - If set to true, configure the statistics operation to reset 263 statistics after they are returned.</DL> 264</DD> 265</DL> 266<HR> 267 268<A NAME="getClear()"><!-- --></A><H3> 269getClear</H3> 270<PRE> 271public boolean <B>getClear</B>()</PRE> 272<DL> 273<DD>Return if the statistics operation is configured to reset 274 statistics after they are returned. 275 <p> 276<P> 277<DD><DL> 278 279<DT><B>Returns:</B><DD>If the statistics operation is configured to reset statistics after 280 they are returned.</DL> 281</DD> 282</DL> 283<HR> 284 285<A NAME="setFast(boolean)"><!-- --></A><H3> 286setFast</H3> 287<PRE> 288public void <B>setFast</B>(boolean fast)</PRE> 289<DL> 290<DD>Configure the statistics operation to return only the values which 291 do not incur some performance penalty. 292 <p> 293 The default value is false. 294 <p> 295 For example, skip stats that require a traversal of the database or 296 in-memory tree, or which lock down the lock table for a period of 297 time. 298 <p> 299 Among other things, this flag makes it possible for applications to 300 request key and record counts without incurring the performance 301 penalty of traversing the entire database. If the underlying 302 database is of type Recno, or of type Btree and the database was 303 configured to support retrieval by record number, the count of keys 304 will be exact. Otherwise, the count of keys will be the value saved 305 the last time the database was traversed, or 0 if no count of keys 306 has ever been made. If the underlying database is of type Recno, 307 the count of data items will be exact, otherwise, the count of data 308 items will be the value saved the last time the database was 309 traversed, or 0 if no count of data items has ever been done. 310 <p> 311<P> 312<DD><DL> 313<DT><B>Parameters:</B><DD><CODE>fast</CODE> - If set to true, configure the statistics operation to return only 314 the values which do not incur some performance penalty.</DL> 315</DD> 316</DL> 317<HR> 318 319<A NAME="getFast()"><!-- --></A><H3> 320getFast</H3> 321<PRE> 322public boolean <B>getFast</B>()</PRE> 323<DL> 324<DD>Return if the statistics operation is configured to return only the 325 values which do not require expensive actions. 326 <p> 327<P> 328<DD><DL> 329 330<DT><B>Returns:</B><DD>If the statistics operation is configured to return only the values 331 which do not require expensive actions.</DL> 332</DD> 333</DL> 334<!-- ========= END OF CLASS DATA ========= --> 335<HR> 336 337 338<!-- ======= START OF BOTTOM NAVBAR ====== --> 339<A NAME="navbar_bottom"><!-- --></A> 340<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 341<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 342<TR> 343<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 344<A NAME="navbar_bottom_firstrow"><!-- --></A> 345<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 346 <TR ALIGN="center" VALIGN="top"> 347 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 348 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 349 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 350 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StatsConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 351 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 352 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 353 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 354 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 355 </TR> 356</TABLE> 357</TD> 358<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 359<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 360</TD> 361</TR> 362 363<TR> 364<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 365 <A HREF="../../../com/sleepycat/db/SequenceStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 366 <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 367<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 368 <A HREF="../../../index.html?com/sleepycat/db/StatsConfig.html" target="_top"><B>FRAMES</B></A> 369 <A HREF="StatsConfig.html" target="_top"><B>NO FRAMES</B></A> 370 <SCRIPT type="text/javascript"> 371 <!-- 372 if(window==top) { 373 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 374 } 375 //--> 376</SCRIPT> 377<NOSCRIPT> 378 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 379</NOSCRIPT> 380 381 382</FONT></TD> 383</TR> 384<TR> 385<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 386 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 387<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 388DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 389</TR> 390</TABLE> 391<A NAME="skip-navbar_bottom"></A> 392<!-- ======== END OF BOTTOM NAVBAR ======= --> 393 394<HR> 395<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 396</BODY> 397</HTML> 398