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.5.0) on Thu May 15 17:17:32 EDT 2008 --> 6<TITLE> 7SortedFloatBinding (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.sleepycat.bind.tuple.SortedFloatBinding class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="/style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="SortedFloatBinding (Oracle - Berkeley DB Java API)"; 18} 19</SCRIPT> 20<NOSCRIPT> 21</NOSCRIPT> 22 23</HEAD> 24 25<BODY BGCOLOR="white" onload="windowTitle();"> 26 27 28<!-- ========= START OF TOP NAVBAR ======= --> 29<A NAME="navbar_top"><!-- --></A> 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32<TR> 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34<A NAME="navbar_top_firstrow"><!-- --></A> 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36 <TR ALIGN="center" VALIGN="top"> 37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SortedFloatBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 45 </TR> 46</TABLE> 47</TD> 48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 50</TD> 51</TR> 52 53<TR> 54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 55 <A HREF="/com/sleepycat/bind/tuple/SortedDoubleBinding.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A> 56 <A HREF="/com/sleepycat/bind/tuple/StringBinding.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="/index.html?com/sleepycat/bind/tuple/SortedFloatBinding.html" target="_top"><B>FRAMES</B></A> 59 <A HREF="SortedFloatBinding.html" target="_top"><B>NO FRAMES</B></A> 60 <SCRIPT type="text/javascript"> 61 <!-- 62 if(window==top) { 63 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 64 } 65 //--> 66</SCRIPT> 67<NOSCRIPT> 68 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 69</NOSCRIPT> 70 71 72</FONT></TD> 73</TR> 74<TR> 75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 79</TR> 80</TABLE> 81<A NAME="skip-navbar_top"></A> 82<!-- ========= END OF TOP NAVBAR ========= --> 83 84<HR> 85<!-- ======== START OF CLASS DATA ======== --> 86<H2> 87<FONT SIZE="-1"> 88com.sleepycat.bind.tuple</FONT> 89<BR> 90Class SortedFloatBinding</H2> 91<PRE> 92<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> 93 <IMG SRC="/resources/inherit.gif" ALT="extended by "><A HREF="/com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">com.sleepycat.bind.tuple.TupleBase</A> 94 <IMG SRC="/resources/inherit.gif" ALT="extended by "><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">com.sleepycat.bind.tuple.TupleBinding</A> 95 <IMG SRC="/resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bind.tuple.SortedFloatBinding</B> 96</PRE> 97<DL> 98<DT><B>All Implemented Interfaces:</B> <DD><A HREF="/com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A></DD> 99</DL> 100<HR> 101<DL> 102<DT><PRE>public class <B>SortedFloatBinding</B><DT>extends <A HREF="/com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A></DL> 103</PRE> 104 105<P> 106A concrete <code>TupleBinding</code> for a <code>Float</code> primitive 107 wrapper or a <code>float</code> primitive. 108 109 <p>This class produces byte array values that by default (without a custom 110 comparator) sort correctly, including sorting of negative values. 111 Therefore, this class should normally be used instead of <A HREF="/com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>FloatBinding</CODE></A> which does not by default support sorting of negative values. 112 Please note that:</p> 113 <ul> 114 <li>The byte array (stored) formats used by <A HREF="/com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>FloatBinding</CODE></A> and 115 <A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>SortedFloatBinding</CODE></A> are different and incompatible. They are not 116 interchangeable once data has been stored.</li> 117 <li>An instance of <A HREF="/com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>FloatBinding</CODE></A>, not <A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>SortedFloatBinding</CODE></A>, is 118 returned by <A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)"><CODE>TupleBinding.getPrimitiveBinding(java.lang.Class)</CODE></A> method. Therefore, to 119 use <A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>SortedFloatBinding</CODE></A>, <A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)"><CODE>TupleBinding.getPrimitiveBinding(java.lang.Class)</CODE></A> 120 should not be called.</li> 121 </ul> 122 123 <p>There are two ways to use this class:</p> 124 <ol> 125 <li>When using the <A HREF="/com/sleepycat/db/package-summary.html"><CODE>com.sleepycat.db</CODE></A> package directly, the static 126 methods in this class can be used to convert between primitive values and 127 <A HREF="/com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> objects.</li> 128 <li>When using the <A HREF="/com/sleepycat/collections/package-summary.html"><CODE>com.sleepycat.collections</CODE></A> package, an instance of 129 this class can be used with any stored collection.</li> 130 </ol> 131<P> 132 133<P> 134<HR> 135 136<P> 137 138<!-- ======== CONSTRUCTOR SUMMARY ======== --> 139 140<A NAME="constructor_summary"><!-- --></A> 141<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 142<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 143<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 144<B>Constructor Summary</B></FONT></TH> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#SortedFloatBinding()">SortedFloatBinding</A></B>()</CODE> 148 149<BR> 150 </TD> 151</TR> 152</TABLE> 153 154<!-- ========== METHOD SUMMARY =========== --> 155 156<A NAME="method_summary"><!-- --></A> 157<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 158<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 159<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 160<B>Method Summary</B></FONT></TH> 161</TR> 162<TR BGCOLOR="white" CLASS="TableRowColor"> 163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 164<CODE>static float</CODE></FONT></TD> 165<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#entryToFloat(com.sleepycat.db.DatabaseEntry)">entryToFloat</A></B>(<A HREF="/com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 166 167<BR> 168 Converts an entry buffer into a simple <code>float</code> value.</TD> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 172<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> 173<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">entryToObject</A></B>(<A HREF="/com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A> input)</CODE> 174 175<BR> 176 Constructs a key or data object from a <A HREF="/com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry.</TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE>static void</CODE></FONT></TD> 181<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#floatToEntry(float, com.sleepycat.db.DatabaseEntry)">floatToEntry</A></B>(float val, 182 <A HREF="/com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 183 184<BR> 185 Converts a simple <code>float</code> value into an entry buffer.</TD> 186</TR> 187<TR BGCOLOR="white" CLASS="TableRowColor"> 188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 189<CODE>protected <A HREF="/com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A></CODE></FONT></TD> 190<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#getTupleOutput(java.lang.Object)">getTupleOutput</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object)</CODE> 191 192<BR> 193 Returns an empty TupleOutput instance that will be used by the tuple 194 binding or key creator.</TD> 195</TR> 196<TR BGCOLOR="white" CLASS="TableRowColor"> 197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 198<CODE> void</CODE></FONT></TD> 199<TD><CODE><B><A HREF="/com/sleepycat/bind/tuple/SortedFloatBinding.html#objectToEntry(java.lang.Object, com.sleepycat.bind.tuple.TupleOutput)">objectToEntry</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object, 200 <A HREF="/com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A> output)</CODE> 201 202<BR> 203 Converts a key or data object to a tuple entry.</TD> 204</TR> 205</TABLE> 206 <A NAME="methods_inherited_from_class_com.sleepycat.bind.tuple.TupleBinding"><!-- --></A> 207<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 208<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 209<TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bind.tuple.<A HREF="/com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A></B></TH> 210</TR> 211<TR BGCOLOR="white" CLASS="TableRowColor"> 212<TD><CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)">getPrimitiveBinding</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(java.lang.Object, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></CODE></TD> 213</TR> 214</TABLE> 215 <A NAME="methods_inherited_from_class_com.sleepycat.bind.tuple.TupleBase"><!-- --></A> 216<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 217<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 218<TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bind.tuple.<A HREF="/com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A></B></TH> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD><CODE><A HREF="/com/sleepycat/bind/tuple/TupleBase.html#entryToInput(com.sleepycat.db.DatabaseEntry)">entryToInput</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#getTupleBufferSize()">getTupleBufferSize</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#inputToEntry(com.sleepycat.bind.tuple.TupleInput, com.sleepycat.db.DatabaseEntry)">inputToEntry</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#newOutput()">newOutput</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#newOutput(byte[])">newOutput</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#outputToEntry(com.sleepycat.bind.tuple.TupleOutput, com.sleepycat.db.DatabaseEntry)">outputToEntry</A>, <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)">setTupleBufferSize</A></CODE></TD> 222</TR> 223</TABLE> 224 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 225<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 226<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 227<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" title="class or interface in java.lang">Object</A></B></TH> 228</TR> 229<TR BGCOLOR="white" CLASS="TableRowColor"> 230<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#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#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#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#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#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#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#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#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#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#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#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 231</TR> 232</TABLE> 233 234<P> 235 236<!-- ========= CONSTRUCTOR DETAIL ======== --> 237 238<A NAME="constructor_detail"><!-- --></A> 239<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 240<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 241<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 242<B>Constructor Detail</B></FONT></TH> 243</TR> 244</TABLE> 245 246<A NAME="SortedFloatBinding()"><!-- --></A><H3> 247SortedFloatBinding</H3> 248<PRE> 249public <B>SortedFloatBinding</B>()</PRE> 250<DL> 251</DL> 252 253<!-- ============ METHOD DETAIL ========== --> 254 255<A NAME="method_detail"><!-- --></A> 256<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 257<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 258<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 259<B>Method Detail</B></FONT></TH> 260</TR> 261</TABLE> 262 263<A NAME="entryToObject(com.sleepycat.bind.tuple.TupleInput)"><!-- --></A><H3> 264entryToObject</H3> 265<PRE> 266public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>entryToObject</B>(<A HREF="/com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A> input)</PRE> 267<DL> 268<DD><B>Description copied from class: <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">TupleBinding</A></CODE></B></DD> 269<DD>Constructs a key or data object from a <A HREF="/com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry. 270<P> 271<DD><DL> 272<DT><B>Specified by:</B><DD><CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">entryToObject</A></CODE> in class <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A></CODE></DL> 273</DD> 274<DD><DL> 275<DT><B>Parameters:</B><DD><CODE>input</CODE> - is the tuple key or data entry. 276<DT><B>Returns:</B><DD>the key or data object constructed from the entry.</DL> 277</DD> 278</DL> 279<HR> 280 281<A NAME="objectToEntry(java.lang.Object, com.sleepycat.bind.tuple.TupleOutput)"><!-- --></A><H3> 282objectToEntry</H3> 283<PRE> 284public void <B>objectToEntry</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object, 285 <A HREF="/com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A> output)</PRE> 286<DL> 287<DD><B>Description copied from class: <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(java.lang.Object, com.sleepycat.bind.tuple.TupleOutput)">TupleBinding</A></CODE></B></DD> 288<DD>Converts a key or data object to a tuple entry. 289<P> 290<DD><DL> 291<DT><B>Specified by:</B><DD><CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(java.lang.Object, com.sleepycat.bind.tuple.TupleOutput)">objectToEntry</A></CODE> in class <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A></CODE></DL> 292</DD> 293<DD><DL> 294<DT><B>Parameters:</B><DD><CODE>object</CODE> - is the key or data object.<DD><CODE>output</CODE> - is the tuple entry to which the key or data should be 295 written.</DL> 296</DD> 297</DL> 298<HR> 299 300<A NAME="getTupleOutput(java.lang.Object)"><!-- --></A><H3> 301getTupleOutput</H3> 302<PRE> 303protected <A HREF="/com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A> <B>getTupleOutput</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object)</PRE> 304<DL> 305<DD><B>Description copied from class: <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBase.html#getTupleOutput(java.lang.Object)">TupleBase</A></CODE></B></DD> 306<DD>Returns an empty TupleOutput instance that will be used by the tuple 307 binding or key creator. 308 309 <p>The default implementation of this method creates a new TupleOutput 310 with an initial buffer size that can be changed using the <A HREF="/com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)"><CODE>TupleBase.setTupleBufferSize(int)</CODE></A> method.</p> 311 312 <p>This method may be overridden to return a TupleOutput instance. For 313 example, an instance per thread could be created and returned by this 314 method. If a TupleOutput instance is reused, be sure to call its 315 <A HREF="/com/sleepycat/util/FastOutputStream.html#reset()"><CODE>FastOutputStream.reset()</CODE></A> method before each 316 use.</p> 317<P> 318<DD><DL> 319<DT><B>Overrides:</B><DD><CODE><A HREF="/com/sleepycat/bind/tuple/TupleBase.html#getTupleOutput(java.lang.Object)">getTupleOutput</A></CODE> in class <CODE><A HREF="/com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A></CODE></DL> 320</DD> 321<DD><DL> 322<DT><B>Parameters:</B><DD><CODE>object</CODE> - is the object to be written to the tuple output, and may 323 be used by subclasses to determine the size of the output buffer. 324<DT><B>Returns:</B><DD>an empty TupleOutput instance.<DT><B>See Also:</B><DD><A HREF="/com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)"><CODE>TupleBase.setTupleBufferSize(int)</CODE></A></DL> 325</DD> 326</DL> 327<HR> 328 329<A NAME="entryToFloat(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 330entryToFloat</H3> 331<PRE> 332public static float <B>entryToFloat</B>(<A HREF="/com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 333<DL> 334<DD>Converts an entry buffer into a simple <code>float</code> value. 335<P> 336<DD><DL> 337<DT><B>Parameters:</B><DD><CODE>entry</CODE> - is the source entry buffer. 338<DT><B>Returns:</B><DD>the resulting value.</DL> 339</DD> 340</DL> 341<HR> 342 343<A NAME="floatToEntry(float, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 344floatToEntry</H3> 345<PRE> 346public static void <B>floatToEntry</B>(float val, 347 <A HREF="/com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 348<DL> 349<DD>Converts a simple <code>float</code> value into an entry buffer. 350<P> 351<DD><DL> 352<DT><B>Parameters:</B><DD><CODE>val</CODE> - is the source value.<DD><CODE>entry</CODE> - is the destination entry buffer.</DL> 353</DD> 354</DL> 355<!-- ========= END OF CLASS DATA ========= --> 356<HR> 357 358 359<!-- ======= START OF BOTTOM NAVBAR ====== --> 360<A NAME="navbar_bottom"><!-- --></A> 361<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 362<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 363<TR> 364<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 365<A NAME="navbar_bottom_firstrow"><!-- --></A> 366<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 367 <TR ALIGN="center" VALIGN="top"> 368 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 369 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 370 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 371 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SortedFloatBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 372 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 373 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 374 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 375 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 376 </TR> 377</TABLE> 378</TD> 379<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 380<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 381</TD> 382</TR> 383 384<TR> 385<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 386 <A HREF="/com/sleepycat/bind/tuple/SortedDoubleBinding.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A> 387 <A HREF="/com/sleepycat/bind/tuple/StringBinding.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD> 388<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 389 <A HREF="/index.html?com/sleepycat/bind/tuple/SortedFloatBinding.html" target="_top"><B>FRAMES</B></A> 390 <A HREF="SortedFloatBinding.html" target="_top"><B>NO FRAMES</B></A> 391 <SCRIPT type="text/javascript"> 392 <!-- 393 if(window==top) { 394 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 395 } 396 //--> 397</SCRIPT> 398<NOSCRIPT> 399 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 400</NOSCRIPT> 401 402 403</FONT></TD> 404</TR> 405<TR> 406<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 407 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 408<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 409DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 410</TR> 411</TABLE> 412<A NAME="skip-navbar_bottom"></A> 413<!-- ======== END OF BOTTOM NAVBAR ======= --> 414 415<HR> 416<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 417</BODY> 418</HTML> 419