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:47 EDT 2010 --> 6<TITLE> 7KeyRange (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="KeyRange (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/KeyRange.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/JoinCursor.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 59 <A HREF="../../../com/sleepycat/db/Lock.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/KeyRange.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="KeyRange.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="#methods_inherited_from_class_java.lang.Object">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> | METHOD</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 KeyRange</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.KeyRange</B> 97</PRE> 98<HR> 99<DL> 100<DT><PRE>public class <B>KeyRange</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> 104An object that returns status from the <A HREF="../../../com/sleepycat/db/Database.html#getKeyRange(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry)"><CODE>Database.getKeyRange</CODE></A> method. 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> double</CODE></FONT></TD> 122<TD><CODE><B><A HREF="../../../com/sleepycat/db/KeyRange.html#equal">equal</A></B></CODE> 123 124<BR> 125 Zero if there is no matching key, and non-zero otherwise.</TD> 126</TR> 127<TR BGCOLOR="white" CLASS="TableRowColor"> 128<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 129<CODE> double</CODE></FONT></TD> 130<TD><CODE><B><A HREF="../../../com/sleepycat/db/KeyRange.html#greater">greater</A></B></CODE> 131 132<BR> 133 A value between 0 and 1, the proportion of keys greater than the 134 specified key.</TD> 135</TR> 136<TR BGCOLOR="white" CLASS="TableRowColor"> 137<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 138<CODE> double</CODE></FONT></TD> 139<TD><CODE><B><A HREF="../../../com/sleepycat/db/KeyRange.html#less">less</A></B></CODE> 140 141<BR> 142 A value between 0 and 1, the proportion of keys less than the specified 143 key.</TD> 144</TR> 145</TABLE> 146 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="../../../com/sleepycat/db/KeyRange.html#KeyRange()">KeyRange</A></B>()</CODE> 157 158<BR> 159 </TD> 160</TR> 161</TABLE> 162 163<!-- ========== METHOD SUMMARY =========== --> 164 165<A NAME="method_summary"><!-- --></A> 166<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 167<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 168<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 169<B>Method Summary</B></FONT></TH> 170</TR> 171</TABLE> 172 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 173<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 174<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 175<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> 176</TR> 177<TR BGCOLOR="white" CLASS="TableRowColor"> 178<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> 179</TR> 180</TABLE> 181 182<P> 183 184<!-- ============ FIELD DETAIL =========== --> 185 186<A NAME="field_detail"><!-- --></A> 187<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 188<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 189<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 190<B>Field Detail</B></FONT></TH> 191</TR> 192</TABLE> 193 194<A NAME="equal"><!-- --></A><H3> 195equal</H3> 196<PRE> 197public double <B>equal</B></PRE> 198<DL> 199<DD>Zero if there is no matching key, and non-zero otherwise. 200<P> 201<DL> 202</DL> 203</DL> 204<HR> 205 206<A NAME="greater"><!-- --></A><H3> 207greater</H3> 208<PRE> 209public double <B>greater</B></PRE> 210<DL> 211<DD>A value between 0 and 1, the proportion of keys greater than the 212 specified key. 213 <p> 214 For example, if the value is 0.05, 5% of the keys in the database 215 are greater than the specified key. 216<P> 217<DL> 218</DL> 219</DL> 220<HR> 221 222<A NAME="less"><!-- --></A><H3> 223less</H3> 224<PRE> 225public double <B>less</B></PRE> 226<DL> 227<DD>A value between 0 and 1, the proportion of keys less than the specified 228 key. 229 <p> 230 For example, if the value is 0.05, 5% of the keys in the database 231 are less than the specified key. 232<P> 233<DL> 234</DL> 235</DL> 236 237<!-- ========= CONSTRUCTOR DETAIL ======== --> 238 239<A NAME="constructor_detail"><!-- --></A> 240<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 241<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 242<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 243<B>Constructor Detail</B></FONT></TH> 244</TR> 245</TABLE> 246 247<A NAME="KeyRange()"><!-- --></A><H3> 248KeyRange</H3> 249<PRE> 250public <B>KeyRange</B>()</PRE> 251<DL> 252</DL> 253<!-- ========= END OF CLASS DATA ========= --> 254<HR> 255 256 257<!-- ======= START OF BOTTOM NAVBAR ====== --> 258<A NAME="navbar_bottom"><!-- --></A> 259<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 260<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 261<TR> 262<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 263<A NAME="navbar_bottom_firstrow"><!-- --></A> 264<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 265 <TR ALIGN="center" VALIGN="top"> 266 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 267 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 268 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 269 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/KeyRange.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 270 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 271 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 272 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 273 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 274 </TR> 275</TABLE> 276</TD> 277<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 278<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 279</TD> 280</TR> 281 282<TR> 283<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 284 <A HREF="../../../com/sleepycat/db/JoinCursor.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 285 <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 286<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 287 <A HREF="../../../index.html?com/sleepycat/db/KeyRange.html" target="_top"><B>FRAMES</B></A> 288 <A HREF="KeyRange.html" target="_top"><B>NO FRAMES</B></A> 289 <SCRIPT type="text/javascript"> 290 <!-- 291 if(window==top) { 292 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 293 } 294 //--> 295</SCRIPT> 296<NOSCRIPT> 297 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 298</NOSCRIPT> 299 300 301</FONT></TD> 302</TR> 303<TR> 304<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 305 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD> 306<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 307DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD> 308</TR> 309</TABLE> 310<A NAME="skip-navbar_bottom"></A> 311<!-- ======== END OF BOTTOM NAVBAR ======= --> 312 313<HR> 314<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 315</BODY> 316</HTML> 317