source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/conf/Configuration.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: 86.1 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:49 UTC 2009 -->
6<TITLE>
7Configuration (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="Configuration (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/Configuration.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/conf/Configurable.html" title="interface in org.apache.hadoop.conf"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/conf/Configuration.IntegerRanges.html" title="class in org.apache.hadoop.conf"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/conf/Configuration.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="Configuration.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">
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.conf</FONT>
92<BR>
93Class Configuration</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.conf.Configuration</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A>&lt;<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>,<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>&gt;&gt;, <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DD>
100</DL>
101<DL>
102<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A></DD>
103</DL>
104<HR>
105<DL>
106<DT><PRE>public class <B>Configuration</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><DT>implements <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A>&lt;<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>,<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>&gt;&gt;, <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DL>
107</PRE>
108
109<P>
110Provides access to configuration parameters.
111
112 <h4 id="Resources">Resources</h4>
113
114 <p>Configurations are specified by resources. A resource contains a set of
115 name/value pairs as XML data. Each resource is named by either a
116 <code>String</code> or by a <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>. If named by a <code>String</code>,
117 then the classpath is examined for a file with that name.  If named by a
118 <code>Path</code>, then the local filesystem is examined directly, without
119 referring to the classpath.
120
121 <p>Unless explicitly turned off, Hadoop by default specifies two
122 resources, loaded in-order from the classpath: <ol>
123 <li><tt><a href="../../../../../core-default.html">core-default.xml</a>
124 </tt>: Read-only defaults for hadoop.</li>
125 <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
126 installation.</li>
127 </ol>
128 Applications may add additional resources, which are loaded
129 subsequent to these resources in the order they are added.
130 
131 <h4 id="FinalParams">Final Parameters</h4>
132
133 <p>Configuration parameters may be declared <i>final</i>.
134 Once a resource declares a value final, no subsequently-loaded
135 resource can alter that value. 
136 For example, one might define a final parameter with:
137 <tt><pre>
138  &lt;property&gt;
139    &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
140    &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
141    <b>&lt;final&gt;true&lt;/final&gt;</b>
142  &lt;/property&gt;</pre></tt>
143
144 Administrators typically define parameters as final in
145 <tt>core-site.xml</tt> for values that user applications may not alter.
146
147 <h4 id="VariableExpansion">Variable Expansion</h4>
148
149 <p>Value strings are first processed for <i>variable expansion</i>. The
150 available properties are:<ol>
151 <li>Other properties defined in this Configuration; and, if a name is
152 undefined here,</li>
153 <li>Properties in <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/System.html?is-external=true#getProperties()" title="class or interface in java.lang"><CODE>System.getProperties()</CODE></A>.</li>
154 </ol>
155
156 <p>For example, if a configuration resource contains the following property
157 definitions:
158 <tt><pre>
159  &lt;property&gt;
160    &lt;name&gt;basedir&lt;/name&gt;
161    &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
162  &lt;/property&gt;
163 
164  &lt;property&gt;
165    &lt;name&gt;tempdir&lt;/name&gt;
166    &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
167  &lt;/property&gt;</pre></tt>
168
169 When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
170 will be resolved to another property in this Configuration, while
171 <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
172 of the System property with that name.
173<P>
174
175<P>
176<HR>
177
178<P>
179<!-- ======== NESTED CLASS SUMMARY ======== -->
180
181<A NAME="nested_class_summary"><!-- --></A>
182<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
183<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
184<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
185<B>Nested Class Summary</B></FONT></TH>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>static&nbsp;class</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.IntegerRanges.html" title="class in org.apache.hadoop.conf">Configuration.IntegerRanges</A></B></CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A class that represents a set of positive integer ranges.</TD>
194</TR>
195</TABLE>
196&nbsp;
197<!-- ======== CONSTRUCTOR SUMMARY ======== -->
198
199<A NAME="constructor_summary"><!-- --></A>
200<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
201<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
202<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
203<B>Constructor Summary</B></FONT></TH>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#Configuration()">Configuration</A></B>()</CODE>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A new configuration.</TD>
210</TR>
211<TR BGCOLOR="white" CLASS="TableRowColor">
212<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#Configuration(boolean)">Configuration</A></B>(boolean&nbsp;loadDefaults)</CODE>
213
214<BR>
215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A new configuration where the behavior of reading from the default
216 resources can be turned off.</TD>
217</TR>
218<TR BGCOLOR="white" CLASS="TableRowColor">
219<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#Configuration(org.apache.hadoop.conf.Configuration)">Configuration</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;other)</CODE>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A new configuration with the same settings cloned from another.</TD>
223</TR>
224</TABLE>
225&nbsp;
226<!-- ========== METHOD SUMMARY =========== -->
227
228<A NAME="method_summary"><!-- --></A>
229<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
230<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
231<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
232<B>Method Summary</B></FONT></TH>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
236<CODE>static&nbsp;void</CODE></FONT></TD>
237<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#addDefaultResource(java.lang.String)">addDefaultResource</A></B>(<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;name)</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a default resource.</TD>
241</TR>
242<TR BGCOLOR="white" CLASS="TableRowColor">
243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244<CODE>&nbsp;void</CODE></FONT></TD>
245<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#addResource(java.io.InputStream)">addResource</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;in)</CODE>
246
247<BR>
248&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a configuration resource.</TD>
249</TR>
250<TR BGCOLOR="white" CLASS="TableRowColor">
251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
252<CODE>&nbsp;void</CODE></FONT></TD>
253<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#addResource(org.apache.hadoop.fs.Path)">addResource</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;file)</CODE>
254
255<BR>
256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a configuration resource.</TD>
257</TR>
258<TR BGCOLOR="white" CLASS="TableRowColor">
259<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260<CODE>&nbsp;void</CODE></FONT></TD>
261<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#addResource(java.lang.String)">addResource</A></B>(<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;name)</CODE>
262
263<BR>
264&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a configuration resource.</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/hadoop/conf/Configuration.html#addResource(java.net.URL)">addResource</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A>&nbsp;url)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a configuration resource.</TD>
273</TR>
274<TR BGCOLOR="white" CLASS="TableRowColor">
275<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
276<CODE>&nbsp;void</CODE></FONT></TD>
277<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#clear()">clear</A></B>()</CODE>
278
279<BR>
280&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears all keys from the configuration.</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE>&nbsp;<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></CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#get(java.lang.String)">get</A></B>(<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;name)</CODE>
286
287<BR>
288&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property, <code>null</code> if
289 no such property exists.</TD>
290</TR>
291<TR BGCOLOR="white" CLASS="TableRowColor">
292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293<CODE>&nbsp;<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></CODE></FONT></TD>
294<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#get(java.lang.String, java.lang.String)">get</A></B>(<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;name,
295    <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;defaultValue)</CODE>
296
297<BR>
298&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property.</TD>
299</TR>
300<TR BGCOLOR="white" CLASS="TableRowColor">
301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302<CODE>&nbsp;boolean</CODE></FONT></TD>
303<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getBoolean(java.lang.String, boolean)">getBoolean</A></B>(<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;name,
304           boolean&nbsp;defaultValue)</CODE>
305
306<BR>
307&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as a <code>boolean</code>.</TD>
308</TR>
309<TR BGCOLOR="white" CLASS="TableRowColor">
310<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
311<CODE>&nbsp;<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;?&gt;</CODE></FONT></TD>
312<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getClass(java.lang.String, java.lang.Class)">getClass</A></B>(<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;name,
313         <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;?&gt;&nbsp;defaultValue)</CODE>
314
315<BR>
316&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as a <code>Class</code>.</TD>
317</TR>
318<TR BGCOLOR="white" CLASS="TableRowColor">
319<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320<CODE>
321<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
322<TR ALIGN="right" VALIGN="">
323<TD NOWRAP><FONT SIZE="-1">
324<CODE>&lt;U&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;? extends U&gt;</CODE></FONT></TD>
325</TR>
326</TABLE>
327</CODE></FONT></TD>
328<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getClass(java.lang.String, java.lang.Class, java.lang.Class)">getClass</A></B>(<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;name,
329         <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;? extends U&gt;&nbsp;defaultValue,
330         <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;U&gt;&nbsp;xface)</CODE>
331
332<BR>
333&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as a <code>Class</code>
334 implementing the interface specified by <code>xface</code>.</TD>
335</TR>
336<TR BGCOLOR="white" CLASS="TableRowColor">
337<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338<CODE>&nbsp;<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;?&gt;</CODE></FONT></TD>
339<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getClassByName(java.lang.String)">getClassByName</A></B>(<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;name)</CODE>
340
341<BR>
342&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load a class by name.</TD>
343</TR>
344<TR BGCOLOR="white" CLASS="TableRowColor">
345<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346<CODE>&nbsp;<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;?&gt;[]</CODE></FONT></TD>
347<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getClasses(java.lang.String, java.lang.Class...)">getClasses</A></B>(<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;name,
348           <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;?&gt;...&nbsp;defaultValue)</CODE>
349
350<BR>
351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property
352 as an array of <code>Class</code>.</TD>
353</TR>
354<TR BGCOLOR="white" CLASS="TableRowColor">
355<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
356<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A></CODE></FONT></TD>
357<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getClassLoader()">getClassLoader</A></B>()</CODE>
358
359<BR>
360&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> for this job.</TD>
361</TR>
362<TR BGCOLOR="white" CLASS="TableRowColor">
363<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
364<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
365<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getConfResourceAsInputStream(java.lang.String)">getConfResourceAsInputStream</A></B>(<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;name)</CODE>
366
367<BR>
368&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an input stream attached to the configuration resource with the
369 given <code>name</code>.</TD>
370</TR>
371<TR BGCOLOR="white" CLASS="TableRowColor">
372<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
373<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A></CODE></FONT></TD>
374<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getConfResourceAsReader(java.lang.String)">getConfResourceAsReader</A></B>(<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;name)</CODE>
375
376<BR>
377&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><CODE>Reader</CODE></A> attached to the configuration resource with the
378 given <code>name</code>.</TD>
379</TR>
380<TR BGCOLOR="white" CLASS="TableRowColor">
381<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
382<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
383<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getFile(java.lang.String, java.lang.String)">getFile</A></B>(<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;dirsProp,
384        <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;path)</CODE>
385
386<BR>
387&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a local file name under a directory named in <i>dirsProp</i> with
388 the given <i>path</i>.</TD>
389</TR>
390<TR BGCOLOR="white" CLASS="TableRowColor">
391<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
392<CODE>&nbsp;float</CODE></FONT></TD>
393<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getFloat(java.lang.String, float)">getFloat</A></B>(<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;name,
394         float&nbsp;defaultValue)</CODE>
395
396<BR>
397&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as a <code>float</code>.</TD>
398</TR>
399<TR BGCOLOR="white" CLASS="TableRowColor">
400<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
401<CODE>&nbsp;int</CODE></FONT></TD>
402<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getInt(java.lang.String, int)">getInt</A></B>(<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;name,
403       int&nbsp;defaultValue)</CODE>
404
405<BR>
406&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as an <code>int</code>.</TD>
407</TR>
408<TR BGCOLOR="white" CLASS="TableRowColor">
409<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
410<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
411<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getLocalPath(java.lang.String, java.lang.String)">getLocalPath</A></B>(<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;dirsProp,
412             <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;path)</CODE>
413
414<BR>
415&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a local file under a directory named by <i>dirsProp</i> with
416 the given <i>path</i>.</TD>
417</TR>
418<TR BGCOLOR="white" CLASS="TableRowColor">
419<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
420<CODE>&nbsp;long</CODE></FONT></TD>
421<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getLong(java.lang.String, long)">getLong</A></B>(<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;name,
422        long&nbsp;defaultValue)</CODE>
423
424<BR>
425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property as a <code>long</code>.</TD>
426</TR>
427<TR BGCOLOR="white" CLASS="TableRowColor">
428<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
429<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/conf/Configuration.IntegerRanges.html" title="class in org.apache.hadoop.conf">Configuration.IntegerRanges</A></CODE></FONT></TD>
430<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getRange(java.lang.String, java.lang.String)">getRange</A></B>(<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;name,
431         <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;defaultValue)</CODE>
432
433<BR>
434&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the given attribute as a set of integer ranges</TD>
435</TR>
436<TR BGCOLOR="white" CLASS="TableRowColor">
437<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
438<CODE>&nbsp;<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></CODE></FONT></TD>
439<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getRaw(java.lang.String)">getRaw</A></B>(<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;name)</CODE>
440
441<BR>
442&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of the <code>name</code> property, without doing
443 <a href="#VariableExpansion">variable expansion</a>.</TD>
444</TR>
445<TR BGCOLOR="white" CLASS="TableRowColor">
446<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A></CODE></FONT></TD>
448<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getResource(java.lang.String)">getResource</A></B>(<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;name)</CODE>
449
450<BR>
451&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net"><CODE>URL</CODE></A> for the named resource.</TD>
452</TR>
453<TR BGCOLOR="white" CLASS="TableRowColor">
454<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<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>&gt;</CODE></FONT></TD>
456<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getStringCollection(java.lang.String)">getStringCollection</A></B>(<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;name)</CODE>
457
458<BR>
459&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the comma delimited values of the <code>name</code> property as
460 a collection of <code>String</code>s.</TD>
461</TR>
462<TR BGCOLOR="white" CLASS="TableRowColor">
463<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464<CODE>&nbsp;<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>[]</CODE></FONT></TD>
465<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getStrings(java.lang.String)">getStrings</A></B>(<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;name)</CODE>
466
467<BR>
468&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the comma delimited values of the <code>name</code> property as
469 an array of <code>String</code>s.</TD>
470</TR>
471<TR BGCOLOR="white" CLASS="TableRowColor">
472<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
473<CODE>&nbsp;<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>[]</CODE></FONT></TD>
474<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getStrings(java.lang.String, java.lang.String...)">getStrings</A></B>(<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;name,
475           <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;defaultValue)</CODE>
476
477<BR>
478&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the comma delimited values of the <code>name</code> property as
479 an array of <code>String</code>s.</TD>
480</TR>
481<TR BGCOLOR="white" CLASS="TableRowColor">
482<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
483<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A>&lt;<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>,<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>&gt;&gt;</CODE></FONT></TD>
484<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#iterator()">iterator</A></B>()</CODE>
485
486<BR>
487&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A> to go through the list of <code>String</code> 
488 key-value pairs in the configuration.</TD>
489</TR>
490<TR BGCOLOR="white" CLASS="TableRowColor">
491<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
492<CODE>static&nbsp;void</CODE></FONT></TD>
493<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#main(java.lang.String[])">main</A></B>(<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;args)</CODE>
494
495<BR>
496&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For debugging.</TD>
497</TR>
498<TR BGCOLOR="white" CLASS="TableRowColor">
499<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
500<CODE>&nbsp;void</CODE></FONT></TD>
501<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#readFields(java.io.DataInput)">readFields</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)</CODE>
502
503<BR>
504&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deserialize the fields of this object from <code>in</code>.</TD>
505</TR>
506<TR BGCOLOR="white" CLASS="TableRowColor">
507<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
508<CODE>&nbsp;void</CODE></FONT></TD>
509<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#reloadConfiguration()">reloadConfiguration</A></B>()</CODE>
510
511<BR>
512&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reload configuration from previously added resources.</TD>
513</TR>
514<TR BGCOLOR="white" CLASS="TableRowColor">
515<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
516<CODE>&nbsp;void</CODE></FONT></TD>
517<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#set(java.lang.String, java.lang.String)">set</A></B>(<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;name,
518    <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;value)</CODE>
519
520<BR>
521&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the <code>value</code> of the <code>name</code> property.</TD>
522</TR>
523<TR BGCOLOR="white" CLASS="TableRowColor">
524<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
525<CODE>&nbsp;void</CODE></FONT></TD>
526<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setBoolean(java.lang.String, boolean)">setBoolean</A></B>(<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;name,
527           boolean&nbsp;value)</CODE>
528
529<BR>
530&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of the <code>name</code> property to a <code>boolean</code>.</TD>
531</TR>
532<TR BGCOLOR="white" CLASS="TableRowColor">
533<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
534<CODE>&nbsp;void</CODE></FONT></TD>
535<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setBooleanIfUnset(java.lang.String, boolean)">setBooleanIfUnset</A></B>(<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;name,
536                  boolean&nbsp;value)</CODE>
537
538<BR>
539&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the given property, if it is currently unset.</TD>
540</TR>
541<TR BGCOLOR="white" CLASS="TableRowColor">
542<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
543<CODE>&nbsp;void</CODE></FONT></TD>
544<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setClass(java.lang.String, java.lang.Class, java.lang.Class)">setClass</A></B>(<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;name,
545         <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;?&gt;&nbsp;theClass,
546         <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;?&gt;&nbsp;xface)</CODE>
547
548<BR>
549&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of the <code>name</code> property to the name of a
550 <code>theClass</code> implementing the given interface <code>xface</code>.</TD>
551</TR>
552<TR BGCOLOR="white" CLASS="TableRowColor">
553<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
554<CODE>&nbsp;void</CODE></FONT></TD>
555<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setClassLoader(java.lang.ClassLoader)">setClassLoader</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)</CODE>
556
557<BR>
558&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the class loader that will be used to load the various objects.</TD>
559</TR>
560<TR BGCOLOR="white" CLASS="TableRowColor">
561<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
562<CODE>&nbsp;void</CODE></FONT></TD>
563<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setFloat(java.lang.String, float)">setFloat</A></B>(<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;name,
564         float&nbsp;value)</CODE>
565
566<BR>
567&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of the <code>name</code> property to a <code>float</code>.</TD>
568</TR>
569<TR BGCOLOR="white" CLASS="TableRowColor">
570<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
571<CODE>&nbsp;void</CODE></FONT></TD>
572<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setIfUnset(java.lang.String, java.lang.String)">setIfUnset</A></B>(<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;name,
573           <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;value)</CODE>
574
575<BR>
576&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a property if it is currently unset.</TD>
577</TR>
578<TR BGCOLOR="white" CLASS="TableRowColor">
579<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
580<CODE>&nbsp;void</CODE></FONT></TD>
581<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setInt(java.lang.String, int)">setInt</A></B>(<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;name,
582       int&nbsp;value)</CODE>
583
584<BR>
585&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of the <code>name</code> property to an <code>int</code>.</TD>
586</TR>
587<TR BGCOLOR="white" CLASS="TableRowColor">
588<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
589<CODE>&nbsp;void</CODE></FONT></TD>
590<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setLong(java.lang.String, long)">setLong</A></B>(<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;name,
591        long&nbsp;value)</CODE>
592
593<BR>
594&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of the <code>name</code> property to a <code>long</code>.</TD>
595</TR>
596<TR BGCOLOR="white" CLASS="TableRowColor">
597<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
598<CODE>&nbsp;void</CODE></FONT></TD>
599<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setQuietMode(boolean)">setQuietMode</A></B>(boolean&nbsp;quietmode)</CODE>
600
601<BR>
602&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the quietness-mode.</TD>
603</TR>
604<TR BGCOLOR="white" CLASS="TableRowColor">
605<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
606<CODE>&nbsp;void</CODE></FONT></TD>
607<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#setStrings(java.lang.String, java.lang.String...)">setStrings</A></B>(<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;name,
608           <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;values)</CODE>
609
610<BR>
611&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the array of string values for the <code>name</code> property as
612 as comma delimited values.</TD>
613</TR>
614<TR BGCOLOR="white" CLASS="TableRowColor">
615<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
616<CODE>&nbsp;int</CODE></FONT></TD>
617<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#size()">size</A></B>()</CODE>
618
619<BR>
620&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of keys in the configuration.</TD>
621</TR>
622<TR BGCOLOR="white" CLASS="TableRowColor">
623<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
624<CODE>&nbsp;<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></CODE></FONT></TD>
625<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#toString()">toString</A></B>()</CODE>
626
627<BR>
628&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
629</TR>
630<TR BGCOLOR="white" CLASS="TableRowColor">
631<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
632<CODE>&nbsp;void</CODE></FONT></TD>
633<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#write(java.io.DataOutput)">write</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)</CODE>
634
635<BR>
636&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serialize the fields of this object to <code>out</code>.</TD>
637</TR>
638<TR BGCOLOR="white" CLASS="TableRowColor">
639<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
640<CODE>&nbsp;void</CODE></FONT></TD>
641<TD><CODE><B><A HREF="../../../../org/apache/hadoop/conf/Configuration.html#writeXml(java.io.OutputStream)">writeXml</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE>
642
643<BR>
644&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write out the non-default properties in this configuration to the give
645 <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><CODE>OutputStream</CODE></A>.</TD>
646</TR>
647</TABLE>
648&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
649<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
650<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
651<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>
652</TR>
653<TR BGCOLOR="white" CLASS="TableRowColor">
654<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#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>
655</TR>
656</TABLE>
657&nbsp;
658<P>
659
660<!-- ========= CONSTRUCTOR DETAIL ======== -->
661
662<A NAME="constructor_detail"><!-- --></A>
663<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
664<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
665<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
666<B>Constructor Detail</B></FONT></TH>
667</TR>
668</TABLE>
669
670<A NAME="Configuration()"><!-- --></A><H3>
671Configuration</H3>
672<PRE>
673public <B>Configuration</B>()</PRE>
674<DL>
675<DD>A new configuration.
676<P>
677</DL>
678<HR>
679
680<A NAME="Configuration(boolean)"><!-- --></A><H3>
681Configuration</H3>
682<PRE>
683public <B>Configuration</B>(boolean&nbsp;loadDefaults)</PRE>
684<DL>
685<DD>A new configuration where the behavior of reading from the default
686 resources can be turned off.
687 
688 If the parameter <code>loadDefaults</code> is false, the new instance
689 will not load resources from the default files.
690<P>
691<DL>
692<DT><B>Parameters:</B><DD><CODE>loadDefaults</CODE> - specifies whether to load from the default files</DL>
693</DL>
694<HR>
695
696<A NAME="Configuration(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
697Configuration</H3>
698<PRE>
699public <B>Configuration</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;other)</PRE>
700<DL>
701<DD>A new configuration with the same settings cloned from another.
702<P>
703<DL>
704<DT><B>Parameters:</B><DD><CODE>other</CODE> - the configuration from which to clone settings.</DL>
705</DL>
706
707<!-- ============ METHOD DETAIL ========== -->
708
709<A NAME="method_detail"><!-- --></A>
710<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
711<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
712<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
713<B>Method Detail</B></FONT></TH>
714</TR>
715</TABLE>
716
717<A NAME="addDefaultResource(java.lang.String)"><!-- --></A><H3>
718addDefaultResource</H3>
719<PRE>
720public static void <B>addDefaultResource</B>(<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;name)</PRE>
721<DL>
722<DD>Add a default resource. Resources are loaded in the order of the resources
723 added.
724<P>
725<DD><DL>
726</DL>
727</DD>
728<DD><DL>
729<DT><B>Parameters:</B><DD><CODE>name</CODE> - file name. File should be present in the classpath.</DL>
730</DD>
731</DL>
732<HR>
733
734<A NAME="addResource(java.lang.String)"><!-- --></A><H3>
735addResource</H3>
736<PRE>
737public void <B>addResource</B>(<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;name)</PRE>
738<DL>
739<DD>Add a configuration resource.
740 
741 The properties of this resource will override properties of previously
742 added resources, unless they were marked <a href="#Final">final</a>.
743<P>
744<DD><DL>
745</DL>
746</DD>
747<DD><DL>
748<DT><B>Parameters:</B><DD><CODE>name</CODE> - resource to be added, the classpath is examined for a file
749             with that name.</DL>
750</DD>
751</DL>
752<HR>
753
754<A NAME="addResource(java.net.URL)"><!-- --></A><H3>
755addResource</H3>
756<PRE>
757public void <B>addResource</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A>&nbsp;url)</PRE>
758<DL>
759<DD>Add a configuration resource.
760 
761 The properties of this resource will override properties of previously
762 added resources, unless they were marked <a href="#Final">final</a>.
763<P>
764<DD><DL>
765</DL>
766</DD>
767<DD><DL>
768<DT><B>Parameters:</B><DD><CODE>url</CODE> - url of the resource to be added, the local filesystem is
769            examined directly to find the resource, without referring to
770            the classpath.</DL>
771</DD>
772</DL>
773<HR>
774
775<A NAME="addResource(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
776addResource</H3>
777<PRE>
778public void <B>addResource</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;file)</PRE>
779<DL>
780<DD>Add a configuration resource.
781 
782 The properties of this resource will override properties of previously
783 added resources, unless they were marked <a href="#Final">final</a>.
784<P>
785<DD><DL>
786</DL>
787</DD>
788<DD><DL>
789<DT><B>Parameters:</B><DD><CODE>file</CODE> - file-path of resource to be added, the local filesystem is
790             examined directly to find the resource, without referring to
791             the classpath.</DL>
792</DD>
793</DL>
794<HR>
795
796<A NAME="addResource(java.io.InputStream)"><!-- --></A><H3>
797addResource</H3>
798<PRE>
799public void <B>addResource</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;in)</PRE>
800<DL>
801<DD>Add a configuration resource.
802 
803 The properties of this resource will override properties of previously
804 added resources, unless they were marked <a href="#Final">final</a>.
805<P>
806<DD><DL>
807</DL>
808</DD>
809<DD><DL>
810<DT><B>Parameters:</B><DD><CODE>in</CODE> - InputStream to deserialize the object from.</DL>
811</DD>
812</DL>
813<HR>
814
815<A NAME="reloadConfiguration()"><!-- --></A><H3>
816reloadConfiguration</H3>
817<PRE>
818public void <B>reloadConfiguration</B>()</PRE>
819<DL>
820<DD>Reload configuration from previously added resources.
821
822 This method will clear all the configuration read from the added
823 resources, and final parameters. This will make the resources to
824 be read again before accessing the values. Values that are added
825 via set methods will overlay values read from the resources.
826<P>
827<DD><DL>
828</DL>
829</DD>
830<DD><DL>
831</DL>
832</DD>
833</DL>
834<HR>
835
836<A NAME="get(java.lang.String)"><!-- --></A><H3>
837get</H3>
838<PRE>
839public <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> <B>get</B>(<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;name)</PRE>
840<DL>
841<DD>Get the value of the <code>name</code> property, <code>null</code> if
842 no such property exists.
843 
844 Values are processed for <a href="#VariableExpansion">variable expansion</a> 
845 before being returned.
846<P>
847<DD><DL>
848</DL>
849</DD>
850<DD><DL>
851<DT><B>Parameters:</B><DD><CODE>name</CODE> - the property name.
852<DT><B>Returns:</B><DD>the value of the <code>name</code> property,
853         or null if no such property exists.</DL>
854</DD>
855</DL>
856<HR>
857
858<A NAME="getRaw(java.lang.String)"><!-- --></A><H3>
859getRaw</H3>
860<PRE>
861public <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> <B>getRaw</B>(<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;name)</PRE>
862<DL>
863<DD>Get the value of the <code>name</code> property, without doing
864 <a href="#VariableExpansion">variable expansion</a>.
865<P>
866<DD><DL>
867</DL>
868</DD>
869<DD><DL>
870<DT><B>Parameters:</B><DD><CODE>name</CODE> - the property name.
871<DT><B>Returns:</B><DD>the value of the <code>name</code> property,
872         or null if no such property exists.</DL>
873</DD>
874</DL>
875<HR>
876
877<A NAME="set(java.lang.String, java.lang.String)"><!-- --></A><H3>
878set</H3>
879<PRE>
880public void <B>set</B>(<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;name,
881                <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;value)</PRE>
882<DL>
883<DD>Set the <code>value</code> of the <code>name</code> property.
884<P>
885<DD><DL>
886</DL>
887</DD>
888<DD><DL>
889<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>value</CODE> - property value.</DL>
890</DD>
891</DL>
892<HR>
893
894<A NAME="setIfUnset(java.lang.String, java.lang.String)"><!-- --></A><H3>
895setIfUnset</H3>
896<PRE>
897public void <B>setIfUnset</B>(<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;name,
898                       <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;value)</PRE>
899<DL>
900<DD>Sets a property if it is currently unset.
901<P>
902<DD><DL>
903</DL>
904</DD>
905<DD><DL>
906<DT><B>Parameters:</B><DD><CODE>name</CODE> - the property name<DD><CODE>value</CODE> - the new value</DL>
907</DD>
908</DL>
909<HR>
910
911<A NAME="get(java.lang.String, java.lang.String)"><!-- --></A><H3>
912get</H3>
913<PRE>
914public <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> <B>get</B>(<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;name,
915                  <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;defaultValue)</PRE>
916<DL>
917<DD>Get the value of the <code>name</code> property. If no such property
918 exists, then <code>defaultValue</code> is returned.
919<P>
920<DD><DL>
921</DL>
922</DD>
923<DD><DL>
924<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - default value.
925<DT><B>Returns:</B><DD>property value, or <code>defaultValue</code> if the property
926         doesn't exist.</DL>
927</DD>
928</DL>
929<HR>
930
931<A NAME="getInt(java.lang.String, int)"><!-- --></A><H3>
932getInt</H3>
933<PRE>
934public int <B>getInt</B>(<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;name,
935                  int&nbsp;defaultValue)</PRE>
936<DL>
937<DD>Get the value of the <code>name</code> property as an <code>int</code>.
938   
939 If no such property exists, or if the specified value is not a valid
940 <code>int</code>, then <code>defaultValue</code> is returned.
941<P>
942<DD><DL>
943</DL>
944</DD>
945<DD><DL>
946<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - default value.
947<DT><B>Returns:</B><DD>property value as an <code>int</code>,
948         or <code>defaultValue</code>.</DL>
949</DD>
950</DL>
951<HR>
952
953<A NAME="setInt(java.lang.String, int)"><!-- --></A><H3>
954setInt</H3>
955<PRE>
956public void <B>setInt</B>(<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;name,
957                   int&nbsp;value)</PRE>
958<DL>
959<DD>Set the value of the <code>name</code> property to an <code>int</code>.
960<P>
961<DD><DL>
962</DL>
963</DD>
964<DD><DL>
965<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>value</CODE> - <code>int</code> value of the property.</DL>
966</DD>
967</DL>
968<HR>
969
970<A NAME="getLong(java.lang.String, long)"><!-- --></A><H3>
971getLong</H3>
972<PRE>
973public long <B>getLong</B>(<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;name,
974                    long&nbsp;defaultValue)</PRE>
975<DL>
976<DD>Get the value of the <code>name</code> property as a <code>long</code>
977 If no such property is specified, or if the specified value is not a valid
978 <code>long</code>, then <code>defaultValue</code> is returned.
979<P>
980<DD><DL>
981</DL>
982</DD>
983<DD><DL>
984<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - default value.
985<DT><B>Returns:</B><DD>property value as a <code>long</code>,
986         or <code>defaultValue</code>.</DL>
987</DD>
988</DL>
989<HR>
990
991<A NAME="setLong(java.lang.String, long)"><!-- --></A><H3>
992setLong</H3>
993<PRE>
994public void <B>setLong</B>(<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;name,
995                    long&nbsp;value)</PRE>
996<DL>
997<DD>Set the value of the <code>name</code> property to a <code>long</code>.
998<P>
999<DD><DL>
1000</DL>
1001</DD>
1002<DD><DL>
1003<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>value</CODE> - <code>long</code> value of the property.</DL>
1004</DD>
1005</DL>
1006<HR>
1007
1008<A NAME="getFloat(java.lang.String, float)"><!-- --></A><H3>
1009getFloat</H3>
1010<PRE>
1011public float <B>getFloat</B>(<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;name,
1012                      float&nbsp;defaultValue)</PRE>
1013<DL>
1014<DD>Get the value of the <code>name</code> property as a <code>float</code>
1015 If no such property is specified, or if the specified value is not a valid
1016 <code>float</code>, then <code>defaultValue</code> is returned.
1017<P>
1018<DD><DL>
1019</DL>
1020</DD>
1021<DD><DL>
1022<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - default value.
1023<DT><B>Returns:</B><DD>property value as a <code>float</code>,
1024         or <code>defaultValue</code>.</DL>
1025</DD>
1026</DL>
1027<HR>
1028
1029<A NAME="setFloat(java.lang.String, float)"><!-- --></A><H3>
1030setFloat</H3>
1031<PRE>
1032public void <B>setFloat</B>(<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;name,
1033                     float&nbsp;value)</PRE>
1034<DL>
1035<DD>Set the value of the <code>name</code> property to a <code>float</code>.
1036<P>
1037<DD><DL>
1038</DL>
1039</DD>
1040<DD><DL>
1041<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>value</CODE> - property value.</DL>
1042</DD>
1043</DL>
1044<HR>
1045
1046<A NAME="getBoolean(java.lang.String, boolean)"><!-- --></A><H3>
1047getBoolean</H3>
1048<PRE>
1049public boolean <B>getBoolean</B>(<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;name,
1050                          boolean&nbsp;defaultValue)</PRE>
1051<DL>
1052<DD>Get the value of the <code>name</code> property as a <code>boolean</code>
1053 If no such property is specified, or if the specified value is not a valid
1054 <code>boolean</code>, then <code>defaultValue</code> is returned.
1055<P>
1056<DD><DL>
1057</DL>
1058</DD>
1059<DD><DL>
1060<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - default value.
1061<DT><B>Returns:</B><DD>property value as a <code>boolean</code>,
1062         or <code>defaultValue</code>.</DL>
1063</DD>
1064</DL>
1065<HR>
1066
1067<A NAME="setBoolean(java.lang.String, boolean)"><!-- --></A><H3>
1068setBoolean</H3>
1069<PRE>
1070public void <B>setBoolean</B>(<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;name,
1071                       boolean&nbsp;value)</PRE>
1072<DL>
1073<DD>Set the value of the <code>name</code> property to a <code>boolean</code>.
1074<P>
1075<DD><DL>
1076</DL>
1077</DD>
1078<DD><DL>
1079<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>value</CODE> - <code>boolean</code> value of the property.</DL>
1080</DD>
1081</DL>
1082<HR>
1083
1084<A NAME="setBooleanIfUnset(java.lang.String, boolean)"><!-- --></A><H3>
1085setBooleanIfUnset</H3>
1086<PRE>
1087public void <B>setBooleanIfUnset</B>(<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;name,
1088                              boolean&nbsp;value)</PRE>
1089<DL>
1090<DD>Set the given property, if it is currently unset.
1091<P>
1092<DD><DL>
1093</DL>
1094</DD>
1095<DD><DL>
1096<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name<DD><CODE>value</CODE> - new value</DL>
1097</DD>
1098</DL>
1099<HR>
1100
1101<A NAME="getRange(java.lang.String, java.lang.String)"><!-- --></A><H3>
1102getRange</H3>
1103<PRE>
1104public <A HREF="../../../../org/apache/hadoop/conf/Configuration.IntegerRanges.html" title="class in org.apache.hadoop.conf">Configuration.IntegerRanges</A> <B>getRange</B>(<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;name,
1105                                            <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;defaultValue)</PRE>
1106<DL>
1107<DD>Parse the given attribute as a set of integer ranges
1108<P>
1109<DD><DL>
1110</DL>
1111</DD>
1112<DD><DL>
1113<DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DD><CODE>defaultValue</CODE> - the default value if it is not set
1114<DT><B>Returns:</B><DD>a new set of ranges from the configured value</DL>
1115</DD>
1116</DL>
1117<HR>
1118
1119<A NAME="getStringCollection(java.lang.String)"><!-- --></A><H3>
1120getStringCollection</H3>
1121<PRE>
1122public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<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>&gt; <B>getStringCollection</B>(<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;name)</PRE>
1123<DL>
1124<DD>Get the comma delimited values of the <code>name</code> property as
1125 a collection of <code>String</code>s. 
1126 If no such property is specified then empty collection is returned.
1127 <p>
1128 This is an optimized version of <A HREF="../../../../org/apache/hadoop/conf/Configuration.html#getStrings(java.lang.String)"><CODE>getStrings(String)</CODE></A>
1129<P>
1130<DD><DL>
1131</DL>
1132</DD>
1133<DD><DL>
1134<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.
1135<DT><B>Returns:</B><DD>property value as a collection of <code>String</code>s.</DL>
1136</DD>
1137</DL>
1138<HR>
1139
1140<A NAME="getStrings(java.lang.String)"><!-- --></A><H3>
1141getStrings</H3>
1142<PRE>
1143public <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>[] <B>getStrings</B>(<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;name)</PRE>
1144<DL>
1145<DD>Get the comma delimited values of the <code>name</code> property as
1146 an array of <code>String</code>s. 
1147 If no such property is specified then <code>null</code> is returned.
1148<P>
1149<DD><DL>
1150</DL>
1151</DD>
1152<DD><DL>
1153<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.
1154<DT><B>Returns:</B><DD>property value as an array of <code>String</code>s,
1155         or <code>null</code>.</DL>
1156</DD>
1157</DL>
1158<HR>
1159
1160<A NAME="getStrings(java.lang.String, java.lang.String...)"><!-- --></A><H3>
1161getStrings</H3>
1162<PRE>
1163public <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>[] <B>getStrings</B>(<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;name,
1164                           <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;defaultValue)</PRE>
1165<DL>
1166<DD>Get the comma delimited values of the <code>name</code> property as
1167 an array of <code>String</code>s. 
1168 If no such property is specified then default value is returned.
1169<P>
1170<DD><DL>
1171</DL>
1172</DD>
1173<DD><DL>
1174<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>defaultValue</CODE> - The default value
1175<DT><B>Returns:</B><DD>property value as an array of <code>String</code>s,
1176         or default value.</DL>
1177</DD>
1178</DL>
1179<HR>
1180
1181<A NAME="setStrings(java.lang.String, java.lang.String...)"><!-- --></A><H3>
1182setStrings</H3>
1183<PRE>
1184public void <B>setStrings</B>(<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;name,
1185                       <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;values)</PRE>
1186<DL>
1187<DD>Set the array of string values for the <code>name</code> property as
1188 as comma delimited values.
1189<P>
1190<DD><DL>
1191</DL>
1192</DD>
1193<DD><DL>
1194<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>values</CODE> - The values</DL>
1195</DD>
1196</DL>
1197<HR>
1198
1199<A NAME="getClassByName(java.lang.String)"><!-- --></A><H3>
1200getClassByName</H3>
1201<PRE>
1202public <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;?&gt; <B>getClassByName</B>(<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;name)
1203                        throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></PRE>
1204<DL>
1205<DD>Load a class by name.
1206<P>
1207<DD><DL>
1208</DL>
1209</DD>
1210<DD><DL>
1211<DT><B>Parameters:</B><DD><CODE>name</CODE> - the class name.
1212<DT><B>Returns:</B><DD>the class object.
1213<DT><B>Throws:</B>
1214<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></CODE> - if the class is not found.</DL>
1215</DD>
1216</DL>
1217<HR>
1218
1219<A NAME="getClasses(java.lang.String, java.lang.Class...)"><!-- --></A><H3>
1220getClasses</H3>
1221<PRE>
1222public <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;?&gt;[] <B>getClasses</B>(<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;name,
1223                             <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;?&gt;...&nbsp;defaultValue)</PRE>
1224<DL>
1225<DD>Get the value of the <code>name</code> property
1226 as an array of <code>Class</code>.
1227 The value of the property specifies a list of comma separated class names. 
1228 If no such property is specified, then <code>defaultValue</code> is
1229 returned.
1230<P>
1231<DD><DL>
1232</DL>
1233</DD>
1234<DD><DL>
1235<DT><B>Parameters:</B><DD><CODE>name</CODE> - the property name.<DD><CODE>defaultValue</CODE> - default value.
1236<DT><B>Returns:</B><DD>property value as a <code>Class[]</code>,
1237         or <code>defaultValue</code>.</DL>
1238</DD>
1239</DL>
1240<HR>
1241
1242<A NAME="getClass(java.lang.String, java.lang.Class)"><!-- --></A><H3>
1243getClass</H3>
1244<PRE>
1245public <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;?&gt; <B>getClass</B>(<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;name,
1246                         <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;?&gt;&nbsp;defaultValue)</PRE>
1247<DL>
1248<DD>Get the value of the <code>name</code> property as a <code>Class</code>
1249 If no such property is specified, then <code>defaultValue</code> is
1250 returned.
1251<P>
1252<DD><DL>
1253</DL>
1254</DD>
1255<DD><DL>
1256<DT><B>Parameters:</B><DD><CODE>name</CODE> - the class name.<DD><CODE>defaultValue</CODE> - default value.
1257<DT><B>Returns:</B><DD>property value as a <code>Class</code>,
1258         or <code>defaultValue</code>.</DL>
1259</DD>
1260</DL>
1261<HR>
1262
1263<A NAME="getClass(java.lang.String, java.lang.Class, java.lang.Class)"><!-- --></A><H3>
1264getClass</H3>
1265<PRE>
1266public &lt;U&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;? extends U&gt; <B>getClass</B>(<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;name,
1267                                       <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;? extends U&gt;&nbsp;defaultValue,
1268                                       <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;U&gt;&nbsp;xface)</PRE>
1269<DL>
1270<DD>Get the value of the <code>name</code> property as a <code>Class</code>
1271 implementing the interface specified by <code>xface</code>.
1272   
1273 If no such property is specified, then <code>defaultValue</code> is
1274 returned.
1275 
1276 An exception is thrown if the returned class does not implement the named
1277 interface.
1278<P>
1279<DD><DL>
1280</DL>
1281</DD>
1282<DD><DL>
1283<DT><B>Parameters:</B><DD><CODE>name</CODE> - the class name.<DD><CODE>defaultValue</CODE> - default value.<DD><CODE>xface</CODE> - the interface implemented by the named class.
1284<DT><B>Returns:</B><DD>property value as a <code>Class</code>,
1285         or <code>defaultValue</code>.</DL>
1286</DD>
1287</DL>
1288<HR>
1289
1290<A NAME="setClass(java.lang.String, java.lang.Class, java.lang.Class)"><!-- --></A><H3>
1291setClass</H3>
1292<PRE>
1293public void <B>setClass</B>(<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;name,
1294                     <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;?&gt;&nbsp;theClass,
1295                     <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;?&gt;&nbsp;xface)</PRE>
1296<DL>
1297<DD>Set the value of the <code>name</code> property to the name of a
1298 <code>theClass</code> implementing the given interface <code>xface</code>.
1299 
1300 An exception is thrown if <code>theClass</code> does not implement the
1301 interface <code>xface</code>.
1302<P>
1303<DD><DL>
1304</DL>
1305</DD>
1306<DD><DL>
1307<DT><B>Parameters:</B><DD><CODE>name</CODE> - property name.<DD><CODE>theClass</CODE> - property value.<DD><CODE>xface</CODE> - the interface implemented by the named class.</DL>
1308</DD>
1309</DL>
1310<HR>
1311
1312<A NAME="getLocalPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
1313getLocalPath</H3>
1314<PRE>
1315public <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>getLocalPath</B>(<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;dirsProp,
1316                         <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;path)
1317                  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>
1318<DL>
1319<DD>Get a local file under a directory named by <i>dirsProp</i> with
1320 the given <i>path</i>.  If <i>dirsProp</i> contains multiple directories,
1321 then one is chosen based on <i>path</i>'s hash code.  If the selected
1322 directory does not exist, an attempt is made to create it.
1323<P>
1324<DD><DL>
1325</DL>
1326</DD>
1327<DD><DL>
1328<DT><B>Parameters:</B><DD><CODE>dirsProp</CODE> - directory in which to locate the file.<DD><CODE>path</CODE> - file-path.
1329<DT><B>Returns:</B><DD>local file under the directory with the given path.
1330<DT><B>Throws:</B>
1331<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>
1332</DD>
1333</DL>
1334<HR>
1335
1336<A NAME="getFile(java.lang.String, java.lang.String)"><!-- --></A><H3>
1337getFile</H3>
1338<PRE>
1339public <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getFile</B>(<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;dirsProp,
1340                    <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;path)
1341             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>
1342<DL>
1343<DD>Get a local file name under a directory named in <i>dirsProp</i> with
1344 the given <i>path</i>.  If <i>dirsProp</i> contains multiple directories,
1345 then one is chosen based on <i>path</i>'s hash code.  If the selected
1346 directory does not exist, an attempt is made to create it.
1347<P>
1348<DD><DL>
1349</DL>
1350</DD>
1351<DD><DL>
1352<DT><B>Parameters:</B><DD><CODE>dirsProp</CODE> - directory in which to locate the file.<DD><CODE>path</CODE> - file-path.
1353<DT><B>Returns:</B><DD>local file under the directory with the given path.
1354<DT><B>Throws:</B>
1355<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>
1356</DD>
1357</DL>
1358<HR>
1359
1360<A NAME="getResource(java.lang.String)"><!-- --></A><H3>
1361getResource</H3>
1362<PRE>
1363public <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> <B>getResource</B>(<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;name)</PRE>
1364<DL>
1365<DD>Get the <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net"><CODE>URL</CODE></A> for the named resource.
1366<P>
1367<DD><DL>
1368</DL>
1369</DD>
1370<DD><DL>
1371<DT><B>Parameters:</B><DD><CODE>name</CODE> - resource name.
1372<DT><B>Returns:</B><DD>the url for the named resource.</DL>
1373</DD>
1374</DL>
1375<HR>
1376
1377<A NAME="getConfResourceAsInputStream(java.lang.String)"><!-- --></A><H3>
1378getConfResourceAsInputStream</H3>
1379<PRE>
1380public <A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>getConfResourceAsInputStream</B>(<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;name)</PRE>
1381<DL>
1382<DD>Get an input stream attached to the configuration resource with the
1383 given <code>name</code>.
1384<P>
1385<DD><DL>
1386</DL>
1387</DD>
1388<DD><DL>
1389<DT><B>Parameters:</B><DD><CODE>name</CODE> - configuration resource name.
1390<DT><B>Returns:</B><DD>an input stream attached to the resource.</DL>
1391</DD>
1392</DL>
1393<HR>
1394
1395<A NAME="getConfResourceAsReader(java.lang.String)"><!-- --></A><H3>
1396getConfResourceAsReader</H3>
1397<PRE>
1398public <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> <B>getConfResourceAsReader</B>(<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;name)</PRE>
1399<DL>
1400<DD>Get a <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><CODE>Reader</CODE></A> attached to the configuration resource with the
1401 given <code>name</code>.
1402<P>
1403<DD><DL>
1404</DL>
1405</DD>
1406<DD><DL>
1407<DT><B>Parameters:</B><DD><CODE>name</CODE> - configuration resource name.
1408<DT><B>Returns:</B><DD>a reader attached to the resource.</DL>
1409</DD>
1410</DL>
1411<HR>
1412
1413<A NAME="size()"><!-- --></A><H3>
1414size</H3>
1415<PRE>
1416public int <B>size</B>()</PRE>
1417<DL>
1418<DD>Return the number of keys in the configuration.
1419<P>
1420<DD><DL>
1421</DL>
1422</DD>
1423<DD><DL>
1424
1425<DT><B>Returns:</B><DD>number of keys in the configuration.</DL>
1426</DD>
1427</DL>
1428<HR>
1429
1430<A NAME="clear()"><!-- --></A><H3>
1431clear</H3>
1432<PRE>
1433public void <B>clear</B>()</PRE>
1434<DL>
1435<DD>Clears all keys from the configuration.
1436<P>
1437<DD><DL>
1438</DL>
1439</DD>
1440<DD><DL>
1441</DL>
1442</DD>
1443</DL>
1444<HR>
1445
1446<A NAME="iterator()"><!-- --></A><H3>
1447iterator</H3>
1448<PRE>
1449public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A>&lt;<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>,<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>&gt;&gt; <B>iterator</B>()</PRE>
1450<DL>
1451<DD>Get an <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A> to go through the list of <code>String</code> 
1452 key-value pairs in the configuration.
1453<P>
1454<DD><DL>
1455<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#iterator()" title="class or interface in java.lang">iterator</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A>&lt;<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>,<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>&gt;&gt;</CODE></DL>
1456</DD>
1457<DD><DL>
1458
1459<DT><B>Returns:</B><DD>an iterator over the entries.</DL>
1460</DD>
1461</DL>
1462<HR>
1463
1464<A NAME="writeXml(java.io.OutputStream)"><!-- --></A><H3>
1465writeXml</H3>
1466<PRE>
1467public void <B>writeXml</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)
1468              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>
1469<DL>
1470<DD>Write out the non-default properties in this configuration to the give
1471 <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><CODE>OutputStream</CODE></A>.
1472<P>
1473<DD><DL>
1474</DL>
1475</DD>
1476<DD><DL>
1477<DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream to write to.
1478<DT><B>Throws:</B>
1479<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>
1480</DD>
1481</DL>
1482<HR>
1483
1484<A NAME="getClassLoader()"><!-- --></A><H3>
1485getClassLoader</H3>
1486<PRE>
1487public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A> <B>getClassLoader</B>()</PRE>
1488<DL>
1489<DD>Get the <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> for this job.
1490<P>
1491<DD><DL>
1492</DL>
1493</DD>
1494<DD><DL>
1495
1496<DT><B>Returns:</B><DD>the correct class loader.</DL>
1497</DD>
1498</DL>
1499<HR>
1500
1501<A NAME="setClassLoader(java.lang.ClassLoader)"><!-- --></A><H3>
1502setClassLoader</H3>
1503<PRE>
1504public void <B>setClassLoader</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)</PRE>
1505<DL>
1506<DD>Set the class loader that will be used to load the various objects.
1507<P>
1508<DD><DL>
1509</DL>
1510</DD>
1511<DD><DL>
1512<DT><B>Parameters:</B><DD><CODE>classLoader</CODE> - the new class loader.</DL>
1513</DD>
1514</DL>
1515<HR>
1516
1517<A NAME="toString()"><!-- --></A><H3>
1518toString</H3>
1519<PRE>
1520public <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> <B>toString</B>()</PRE>
1521<DL>
1522<DD><DL>
1523<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL>
1524</DD>
1525<DD><DL>
1526</DL>
1527</DD>
1528</DL>
1529<HR>
1530
1531<A NAME="setQuietMode(boolean)"><!-- --></A><H3>
1532setQuietMode</H3>
1533<PRE>
1534public void <B>setQuietMode</B>(boolean&nbsp;quietmode)</PRE>
1535<DL>
1536<DD>Set the quietness-mode.
1537 
1538 In the quiet-mode, error and informational messages might not be logged.
1539<P>
1540<DD><DL>
1541</DL>
1542</DD>
1543<DD><DL>
1544<DT><B>Parameters:</B><DD><CODE>quietmode</CODE> - <code>true</code> to set quiet-mode on, <code>false</code>
1545              to turn it off.</DL>
1546</DD>
1547</DL>
1548<HR>
1549
1550<A NAME="main(java.lang.String[])"><!-- --></A><H3>
1551main</H3>
1552<PRE>
1553public static void <B>main</B>(<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;args)
1554                 throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
1555<DL>
1556<DD>For debugging.  List non-default properties to the terminal and exit.
1557<P>
1558<DD><DL>
1559</DL>
1560</DD>
1561<DD><DL>
1562
1563<DT><B>Throws:</B>
1564<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL>
1565</DD>
1566</DL>
1567<HR>
1568
1569<A NAME="readFields(java.io.DataInput)"><!-- --></A><H3>
1570readFields</H3>
1571<PRE>
1572public void <B>readFields</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)
1573                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>
1574<DL>
1575<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">Writable</A></CODE></B></DD>
1576<DD>Deserialize the fields of this object from <code>in</code>
1577 
1578 <p>For efficiency, implementations should attempt to re-use storage in the
1579 existing object where possible.</p>
1580<P>
1581<DD><DL>
1582<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">readFields</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
1583</DD>
1584<DD><DL>
1585<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>DataInput</code> to deseriablize this object from.
1586<DT><B>Throws:</B>
1587<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>
1588</DD>
1589</DL>
1590<HR>
1591
1592<A NAME="write(java.io.DataOutput)"><!-- --></A><H3>
1593write</H3>
1594<PRE>
1595public void <B>write</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)
1596           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>
1597<DL>
1598<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">Writable</A></CODE></B></DD>
1599<DD>Serialize the fields of this object to <code>out</code>.
1600<P>
1601<DD><DL>
1602<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">write</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
1603</DD>
1604<DD><DL>
1605<DT><B>Parameters:</B><DD><CODE>out</CODE> - <code>DataOuput</code> to serialize this object into.
1606<DT><B>Throws:</B>
1607<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>
1608</DD>
1609</DL>
1610<!-- ========= END OF CLASS DATA ========= -->
1611<HR>
1612
1613
1614<!-- ======= START OF BOTTOM NAVBAR ====== -->
1615<A NAME="navbar_bottom"><!-- --></A>
1616<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1617<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1618<TR>
1619<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1620<A NAME="navbar_bottom_firstrow"><!-- --></A>
1621<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1622  <TR ALIGN="center" VALIGN="top">
1623  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1624  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1625  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1626  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Configuration.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1627  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1628  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1629  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1630  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1631  </TR>
1632</TABLE>
1633</TD>
1634<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1635</EM>
1636</TD>
1637</TR>
1638
1639<TR>
1640<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1641&nbsp;<A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf"><B>PREV CLASS</B></A>&nbsp;
1642&nbsp;<A HREF="../../../../org/apache/hadoop/conf/Configuration.IntegerRanges.html" title="class in org.apache.hadoop.conf"><B>NEXT CLASS</B></A></FONT></TD>
1643<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1644  <A HREF="../../../../index.html?org/apache/hadoop/conf/Configuration.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1645&nbsp;<A HREF="Configuration.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1646&nbsp;<SCRIPT type="text/javascript">
1647  <!--
1648  if(window==top) {
1649    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1650  }
1651  //-->
1652</SCRIPT>
1653<NOSCRIPT>
1654  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1655</NOSCRIPT>
1656
1657
1658</FONT></TD>
1659</TR>
1660<TR>
1661<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1662  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>
1663<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1664DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1665</TR>
1666</TABLE>
1667<A NAME="skip-navbar_bottom"></A>
1668<!-- ======== END OF BOTTOM NAVBAR ======= -->
1669
1670<HR>
1671Copyright &copy; 2009 The Apache Software Foundation
1672</BODY>
1673</HTML>
Note: See TracBrowser for help on using the repository browser.