source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/util/ReflectionUtils.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 22.6 KB
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_07) on Tue Sep 01 20:56:55 UTC 2009 -->
6<TITLE>
7ReflectionUtils (Hadoop 0.20.1 API)
8</TITLE>
9
10<META NAME="date" CONTENT="2009-09-01">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.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="ReflectionUtils (Hadoop 0.20.1 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>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ReflectionUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</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/hadoop/util/QuickSort.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/util/RunJar.html" title="class in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/util/ReflectionUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ReflectionUtils.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.hadoop.util</FONT>
92<BR>
93Class ReflectionUtils</H2>
94<PRE>
95<A HREF="http://java.sun.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.hadoop.util.ReflectionUtils</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>ReflectionUtils</B><DT>extends <A HREF="http://java.sun.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>
104General reflection utils
105<P>
106
107<P>
108<HR>
109
110<P>
111
112<!-- ======== CONSTRUCTOR SUMMARY ======== -->
113
114<A NAME="constructor_summary"><!-- --></A>
115<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118<B>Constructor Summary</B></FONT></TH>
119</TR>
120<TR BGCOLOR="white" CLASS="TableRowColor">
121<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#ReflectionUtils()">ReflectionUtils</A></B>()</CODE>
122
123<BR>
124&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
125</TR>
126</TABLE>
127&nbsp;
128<!-- ========== METHOD SUMMARY =========== -->
129
130<A NAME="method_summary"><!-- --></A>
131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
134<B>Method Summary</B></FONT></TH>
135</TR>
136<TR BGCOLOR="white" CLASS="TableRowColor">
137<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138<CODE>static&nbsp;void</CODE></FONT></TD>
139<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#cloneWritableInto(org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable)">cloneWritableInto</A></B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>&nbsp;dst,
140                  <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>&nbsp;src)</CODE>
141
142<BR>
143&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;</TD>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147<CODE>static
148<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
149<TR ALIGN="right" VALIGN="">
150<TD NOWRAP><FONT SIZE="-1">
151<CODE>&lt;T&gt; T</CODE></FONT></TD>
152</TR>
153</TABLE>
154</CODE></FONT></TD>
155<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#copy(org.apache.hadoop.conf.Configuration, T, T)">copy</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
156     T&nbsp;src,
157     T&nbsp;dst)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make a copy of the writable object using serialization to a buffer</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>static
165<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
166<TR ALIGN="right" VALIGN="">
167<TD NOWRAP><FONT SIZE="-1">
168<CODE>&lt;T&gt; <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;</CODE></FONT></TD>
169</TR>
170</TABLE>
171</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#getClass(T)">getClass</A></B>(T&nbsp;o)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the correctly-typed <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><CODE>Class</CODE></A> of the given object.</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>static&nbsp;void</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#logThreadInfo(org.apache.commons.logging.Log, java.lang.String, long)">logThreadInfo</A></B>(org.apache.commons.logging.Log&nbsp;log,
181              <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;title,
182              long&nbsp;minInterval)</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log the current thread stacks at INFO level.</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>static
190<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
191<TR ALIGN="right" VALIGN="">
192<TD NOWRAP><FONT SIZE="-1">
193<CODE>&lt;T&gt; T</CODE></FONT></TD>
194</TR>
195</TABLE>
196</CODE></FONT></TD>
197<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#newInstance(java.lang.Class, org.apache.hadoop.conf.Configuration)">newInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;theClass,
198            <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an object for the given class and initialize it from conf</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205<CODE>static&nbsp;void</CODE></FONT></TD>
206<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#printThreadInfo(java.io.PrintWriter, java.lang.String)">printThreadInfo</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A>&nbsp;stream,
207                <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;title)</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print all of the thread's information and stack traces.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>static&nbsp;void</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#setConf(java.lang.Object, org.apache.hadoop.conf.Configuration)">setConf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;theObject,
216        <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
217
218<BR>
219&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check and set 'configuration' if necessary.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>static&nbsp;void</CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/ReflectionUtils.html#setContentionTracing(boolean)">setContentionTracing</A></B>(boolean&nbsp;val)</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
228</TR>
229</TABLE>
230&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
231<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
232<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
233<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
234</TR>
235<TR BGCOLOR="white" CLASS="TableRowColor">
236<TD><CODE><A HREF="http://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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>
237</TR>
238</TABLE>
239&nbsp;
240<P>
241
242<!-- ========= CONSTRUCTOR DETAIL ======== -->
243
244<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
249</TR>
250</TABLE>
251
252<A NAME="ReflectionUtils()"><!-- --></A><H3>
253ReflectionUtils</H3>
254<PRE>
255public <B>ReflectionUtils</B>()</PRE>
256<DL>
257</DL>
258
259<!-- ============ METHOD DETAIL ========== -->
260
261<A NAME="method_detail"><!-- --></A>
262<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
264<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
265<B>Method Detail</B></FONT></TH>
266</TR>
267</TABLE>
268
269<A NAME="setConf(java.lang.Object, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
270setConf</H3>
271<PRE>
272public static void <B>setConf</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;theObject,
273                           <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</PRE>
274<DL>
275<DD>Check and set 'configuration' if necessary.
276<P>
277<DD><DL>
278<DT><B>Parameters:</B><DD><CODE>theObject</CODE> - object for which to set configuration<DD><CODE>conf</CODE> - Configuration</DL>
279</DD>
280</DL>
281<HR>
282
283<A NAME="newInstance(java.lang.Class, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
284newInstance</H3>
285<PRE>
286public static &lt;T&gt; T <B>newInstance</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;theClass,
287                                <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</PRE>
288<DL>
289<DD>Create an object for the given class and initialize it from conf
290<P>
291<DD><DL>
292<DT><B>Parameters:</B><DD><CODE>theClass</CODE> - class of which an object is created<DD><CODE>conf</CODE> - Configuration
293<DT><B>Returns:</B><DD>a new object</DL>
294</DD>
295</DL>
296<HR>
297
298<A NAME="setContentionTracing(boolean)"><!-- --></A><H3>
299setContentionTracing</H3>
300<PRE>
301public static void <B>setContentionTracing</B>(boolean&nbsp;val)</PRE>
302<DL>
303<DD><DL>
304</DL>
305</DD>
306</DL>
307<HR>
308
309<A NAME="printThreadInfo(java.io.PrintWriter, java.lang.String)"><!-- --></A><H3>
310printThreadInfo</H3>
311<PRE>
312public static void <B>printThreadInfo</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A>&nbsp;stream,
313                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;title)</PRE>
314<DL>
315<DD>Print all of the thread's information and stack traces.
316<P>
317<DD><DL>
318<DT><B>Parameters:</B><DD><CODE>stream</CODE> - the stream to<DD><CODE>title</CODE> - a string title for the stack trace</DL>
319</DD>
320</DL>
321<HR>
322
323<A NAME="logThreadInfo(org.apache.commons.logging.Log, java.lang.String, long)"><!-- --></A><H3>
324logThreadInfo</H3>
325<PRE>
326public static void <B>logThreadInfo</B>(org.apache.commons.logging.Log&nbsp;log,
327                                 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;title,
328                                 long&nbsp;minInterval)</PRE>
329<DL>
330<DD>Log the current thread stacks at INFO level.
331<P>
332<DD><DL>
333<DT><B>Parameters:</B><DD><CODE>log</CODE> - the logger that logs the stack trace<DD><CODE>title</CODE> - a descriptive title for the call stacks<DD><CODE>minInterval</CODE> - the minimum time from the last</DL>
334</DD>
335</DL>
336<HR>
337
338<A NAME="getClass(java.lang.Object)"><!-- --></A><A NAME="getClass(T)"><!-- --></A><H3>
339getClass</H3>
340<PRE>
341public static &lt;T&gt; <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt; <B>getClass</B>(T&nbsp;o)</PRE>
342<DL>
343<DD>Return the correctly-typed <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><CODE>Class</CODE></A> of the given object.
344<P>
345<DD><DL>
346<DT><B>Parameters:</B><DD><CODE>o</CODE> - object whose correctly-typed <code>Class</code> is to be obtained
347<DT><B>Returns:</B><DD>the correctly typed <code>Class</code> of the given object.</DL>
348</DD>
349</DL>
350<HR>
351
352<A NAME="copy(org.apache.hadoop.conf.Configuration,java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="copy(org.apache.hadoop.conf.Configuration, T, T)"><!-- --></A><H3>
353copy</H3>
354<PRE>
355public static &lt;T&gt; T <B>copy</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
356                         T&nbsp;src,
357                         T&nbsp;dst)
358              throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
359<DL>
360<DD>Make a copy of the writable object using serialization to a buffer
361<P>
362<DD><DL>
363<DT><B>Parameters:</B><DD><CODE>dst</CODE> - the object to copy from<DD><CODE>src</CODE> - the object to copy into, which is destroyed
364<DT><B>Throws:</B>
365<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
366</DD>
367</DL>
368<HR>
369
370<A NAME="cloneWritableInto(org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable)"><!-- --></A><H3>
371cloneWritableInto</H3>
372<PRE>
373<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
374</FONT>public static void <B>cloneWritableInto</B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>&nbsp;dst,
375                                                <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>&nbsp;src)
376                              throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
377<DL>
378<DD><B>Deprecated.</B>&nbsp;
379<P>
380<DD><DL>
381
382<DT><B>Throws:</B>
383<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
384</DD>
385</DL>
386<!-- ========= END OF CLASS DATA ========= -->
387<HR>
388
389
390<!-- ======= START OF BOTTOM NAVBAR ====== -->
391<A NAME="navbar_bottom"><!-- --></A>
392<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
393<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
394<TR>
395<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
396<A NAME="navbar_bottom_firstrow"><!-- --></A>
397<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
398  <TR ALIGN="center" VALIGN="top">
399  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
400  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
401  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
402  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ReflectionUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
403  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
404  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
405  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
406  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
407  </TR>
408</TABLE>
409</TD>
410<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
411</EM>
412</TD>
413</TR>
414
415<TR>
416<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
417&nbsp;<A HREF="../../../../org/apache/hadoop/util/QuickSort.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A>&nbsp;
418&nbsp;<A HREF="../../../../org/apache/hadoop/util/RunJar.html" title="class in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD>
419<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
420  <A HREF="../../../../index.html?org/apache/hadoop/util/ReflectionUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
421&nbsp;<A HREF="ReflectionUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
422&nbsp;<SCRIPT type="text/javascript">
423  <!--
424  if(window==top) {
425    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
426  }
427  //-->
428</SCRIPT>
429<NOSCRIPT>
430  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
431</NOSCRIPT>
432
433
434</FONT></TD>
435</TR>
436<TR>
437<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
438  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
439<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
440DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
441</TR>
442</TABLE>
443<A NAME="skip-navbar_bottom"></A>
444<!-- ======== END OF BOTTOM NAVBAR ======= -->
445
446<HR>
447Copyright &copy; 2009 The Apache Software Foundation
448</BODY>
449</HTML>
Note: See TracBrowser for help on using the repository browser.