source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/fs/FileSystem.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: 146.8 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:50 UTC 2009 -->
6<TITLE>
7FileSystem (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="FileSystem (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/FileSystem.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/fs/FileStatus.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/fs/FileSystem.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="FileSystem.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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.fs</FONT>
92<BR>
93Class FileSystem</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 "><A HREF="../../../../org/apache/hadoop/conf/Configured.html" title="class in org.apache.hadoop.conf">org.apache.hadoop.conf.Configured</A>
97      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.fs.FileSystem</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A>, <A HREF="../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></DD>
101</DL>
102<DL>
103<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/hadoop/fs/FilterFileSystem.html" title="class in org.apache.hadoop.fs">FilterFileSystem</A>, <A HREF="../../../../org/apache/hadoop/fs/ftp/FTPFileSystem.html" title="class in org.apache.hadoop.fs.ftp">FTPFileSystem</A>, <A HREF="../../../../org/apache/hadoop/fs/kfs/KosmosFileSystem.html" title="class in org.apache.hadoop.fs.kfs">KosmosFileSystem</A>, <A HREF="../../../../org/apache/hadoop/fs/s3native/NativeS3FileSystem.html" title="class in org.apache.hadoop.fs.s3native">NativeS3FileSystem</A>, <A HREF="../../../../org/apache/hadoop/fs/RawLocalFileSystem.html" title="class in org.apache.hadoop.fs">RawLocalFileSystem</A>, <A HREF="../../../../org/apache/hadoop/fs/s3/S3FileSystem.html" title="class in org.apache.hadoop.fs.s3">S3FileSystem</A></DD>
104</DL>
105<HR>
106<DL>
107<DT><PRE>public abstract class <B>FileSystem</B><DT>extends <A HREF="../../../../org/apache/hadoop/conf/Configured.html" title="class in org.apache.hadoop.conf">Configured</A><DT>implements <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A></DL>
108</PRE>
109
110<P>
111An abstract base class for a fairly generic filesystem.  It
112 may be implemented as a distributed filesystem, or as a "local"
113 one that reflects the locally-connected disk.  The local version
114 exists for small Hadoop instances and for testing.
115
116 <p>
117
118 All user code that may potentially use the Hadoop Distributed
119 File System should be written to use a FileSystem object.  The
120 Hadoop DFS is a multi-machine system that appears as a single
121 disk.  It's useful because of its fault tolerance and potentially
122 very large capacity.
123 
124 <p>
125 The local implementation is <A HREF="../../../../org/apache/hadoop/fs/LocalFileSystem.html" title="class in org.apache.hadoop.fs"><CODE>LocalFileSystem</CODE></A> and distributed
126 implementation is DistributedFileSystem.
127<P>
128
129<P>
130<HR>
131
132<P>
133<!-- ======== NESTED CLASS SUMMARY ======== -->
134
135<A NAME="nested_class_summary"><!-- --></A>
136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139<B>Nested Class Summary</B></FONT></TH>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143<CODE>static&nbsp;class</CODE></FONT></TD>
144<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A></B></CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
148</TR>
149</TABLE>
150&nbsp;<!-- =========== FIELD SUMMARY =========== -->
151
152<A NAME="field_summary"><!-- --></A>
153<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
154<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
155<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
156<B>Field Summary</B></FONT></TH>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160<CODE>static&nbsp;org.apache.commons.logging.Log</CODE></FONT></TD>
161<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#LOG">LOG</A></B></CODE>
162
163<BR>
164&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>protected &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A></CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#statistics">statistics</A></B></CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The statistics for this file system.</TD>
173</TR>
174</TABLE>
175&nbsp;
176<!-- ======== CONSTRUCTOR SUMMARY ======== -->
177
178<A NAME="constructor_summary"><!-- --></A>
179<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
182<B>Constructor Summary</B></FONT></TH>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>protected </CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#FileSystem()">FileSystem</A></B>()</CODE>
188
189<BR>
190&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
191</TR>
192</TABLE>
193&nbsp;
194<!-- ========== METHOD SUMMARY =========== -->
195
196<A NAME="method_summary"><!-- --></A>
197<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
200<B>Method Summary</B></FONT></TH>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
205<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#append(org.apache.hadoop.fs.Path)">append</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
206
207<BR>
208&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append to an existing file (optional operation).</TD>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
213<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#append(org.apache.hadoop.fs.Path, int)">append</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
214       int&nbsp;bufferSize)</CODE>
215
216<BR>
217&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append to an existing file (optional operation).</TD>
218</TR>
219<TR BGCOLOR="white" CLASS="TableRowColor">
220<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
222<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#append(org.apache.hadoop.fs.Path, int, org.apache.hadoop.util.Progressable)">append</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
223       int&nbsp;bufferSize,
224       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append to an existing file (optional operation).</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>protected &nbsp;void</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#checkPath(org.apache.hadoop.fs.Path)">checkPath</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check that a Path belongs to this FileSystem.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>static&nbsp;void</CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#clearStatistics()">clearStatistics</A></B>()</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247<CODE>&nbsp;void</CODE></FONT></TD>
248<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#close()">close</A></B>()</CODE>
249
250<BR>
251&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No more filesystem operations are needed.</TD>
252</TR>
253<TR BGCOLOR="white" CLASS="TableRowColor">
254<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255<CODE>static&nbsp;void</CODE></FONT></TD>
256<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#closeAll()">closeAll</A></B>()</CODE>
257
258<BR>
259&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close all cached filesystems.</TD>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263<CODE>&nbsp;void</CODE></FONT></TD>
264<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#completeLocalOutput(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">completeLocalOutput</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;fsOutputFile,
265                    <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;tmpLocalFile)</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when we're all done writing to the target.</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>&nbsp;void</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyFromLocalFile(boolean, boolean, org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)">copyFromLocalFile</A></B>(boolean&nbsp;delSrc,
274                  boolean&nbsp;overwrite,
275                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;srcs,
276                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src files are on the local disk.</TD>
280</TR>
281<TR BGCOLOR="white" CLASS="TableRowColor">
282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283<CODE>&nbsp;void</CODE></FONT></TD>
284<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyFromLocalFile(boolean, boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">copyFromLocalFile</A></B>(boolean&nbsp;delSrc,
285                  boolean&nbsp;overwrite,
286                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
287                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
288
289<BR>
290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is on the local disk.</TD>
291</TR>
292<TR BGCOLOR="white" CLASS="TableRowColor">
293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294<CODE>&nbsp;void</CODE></FONT></TD>
295<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyFromLocalFile(boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">copyFromLocalFile</A></B>(boolean&nbsp;delSrc,
296                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
297                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
298
299<BR>
300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is on the local disk.</TD>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304<CODE>&nbsp;void</CODE></FONT></TD>
305<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyFromLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">copyFromLocalFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
306                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
307
308<BR>
309&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is on the local disk.</TD>
310</TR>
311<TR BGCOLOR="white" CLASS="TableRowColor">
312<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313<CODE>&nbsp;void</CODE></FONT></TD>
314<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyToLocalFile(boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">copyToLocalFile</A></B>(boolean&nbsp;delSrc,
315                <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
316                <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
317
318<BR>
319&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is under FS, and the dst is on the local disk.</TD>
320</TR>
321<TR BGCOLOR="white" CLASS="TableRowColor">
322<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
323<CODE>&nbsp;void</CODE></FONT></TD>
324<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#copyToLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">copyToLocalFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
325                <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
326
327<BR>
328&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is under FS, and the dst is on the local disk.</TD>
329</TR>
330<TR BGCOLOR="white" CLASS="TableRowColor">
331<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
332<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
333<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&nbsp;fs,
334       <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;file,
335       <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</CODE>
336
337<BR>
338&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create a file with the provided permission
339 The permission of the file is set to be the provided permission as in
340 setPermission, not permission&~umask
341 
342 It is implemented using two RPCs.</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="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
347<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
348
349<BR>
350&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path.</TD>
351</TR>
352<TR BGCOLOR="white" CLASS="TableRowColor">
353<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
355<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
356       boolean&nbsp;overwrite)</CODE>
357
358<BR>
359&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path.</TD>
360</TR>
361<TR BGCOLOR="white" CLASS="TableRowColor">
362<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
363<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
364<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean, int)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
365       boolean&nbsp;overwrite,
366       int&nbsp;bufferSize)</CODE>
367
368<BR>
369&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path.</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="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
374<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean, int, org.apache.hadoop.util.Progressable)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
375       boolean&nbsp;overwrite,
376       int&nbsp;bufferSize,
377       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
378
379<BR>
380&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path with write-progress
381 reporting.</TD>
382</TR>
383<TR BGCOLOR="white" CLASS="TableRowColor">
384<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
385<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
386<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean, int, short, long)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
387       boolean&nbsp;overwrite,
388       int&nbsp;bufferSize,
389       short&nbsp;replication,
390       long&nbsp;blockSize)</CODE>
391
392<BR>
393&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path.</TD>
394</TR>
395<TR BGCOLOR="white" CLASS="TableRowColor">
396<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
397<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
398<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean, int, short, long, org.apache.hadoop.util.Progressable)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
399       boolean&nbsp;overwrite,
400       int&nbsp;bufferSize,
401       short&nbsp;replication,
402       long&nbsp;blockSize,
403       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
404
405<BR>
406&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path with write-progress
407 reporting.</TD>
408</TR>
409<TR BGCOLOR="white" CLASS="TableRowColor">
410<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
411<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
412<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission, boolean, int, short, long, org.apache.hadoop.util.Progressable)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
413       <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission,
414       boolean&nbsp;overwrite,
415       int&nbsp;bufferSize,
416       short&nbsp;replication,
417       long&nbsp;blockSize,
418       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
419
420<BR>
421&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path with write-progress
422 reporting.</TD>
423</TR>
424<TR BGCOLOR="white" CLASS="TableRowColor">
425<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
426<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
427<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, org.apache.hadoop.util.Progressable)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
428       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
429
430<BR>
431&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an FSDataOutputStream at the indicated Path with write-progress
432 reporting.</TD>
433</TR>
434<TR BGCOLOR="white" CLASS="TableRowColor">
435<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
436<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
437<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, short)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
438       short&nbsp;replication)</CODE>
439
440<BR>
441&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path.</TD>
442</TR>
443<TR BGCOLOR="white" CLASS="TableRowColor">
444<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
445<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A></CODE></FONT></TD>
446<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, short, org.apache.hadoop.util.Progressable)">create</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
447       short&nbsp;replication,
448       <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)</CODE>
449
450<BR>
451&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataOutputStream at the indicated Path with write-progress
452 reporting.</TD>
453</TR>
454<TR BGCOLOR="white" CLASS="TableRowColor">
455<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
456<CODE>&nbsp;boolean</CODE></FONT></TD>
457<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#createNewFile(org.apache.hadoop.fs.Path)">createNewFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
458
459<BR>
460&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the given Path as a brand-new zero-length file.</TD>
461</TR>
462<TR BGCOLOR="white" CLASS="TableRowColor">
463<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
465<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#delete(org.apache.hadoop.fs.Path)">delete</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
466
467<BR>
468&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use delete(Path, boolean) instead</I></TD>
469</TR>
470<TR BGCOLOR="white" CLASS="TableRowColor">
471<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
472<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
473<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#delete(org.apache.hadoop.fs.Path, boolean)">delete</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
474       boolean&nbsp;recursive)</CODE>
475
476<BR>
477&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete a file.</TD>
478</TR>
479<TR BGCOLOR="white" CLASS="TableRowColor">
480<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
481<CODE>&nbsp;boolean</CODE></FONT></TD>
482<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#deleteOnExit(org.apache.hadoop.fs.Path)">deleteOnExit</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
483
484<BR>
485&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mark a path to be deleted when FileSystem is closed.</TD>
486</TR>
487<TR BGCOLOR="white" CLASS="TableRowColor">
488<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
489<CODE>&nbsp;boolean</CODE></FONT></TD>
490<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#exists(org.apache.hadoop.fs.Path)">exists</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
491
492<BR>
493&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if exists.</TD>
494</TR>
495<TR BGCOLOR="white" CLASS="TableRowColor">
496<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
497<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A></CODE></FONT></TD>
498<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#get(org.apache.hadoop.conf.Configuration)">get</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
499
500<BR>
501&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the configured filesystem implementation.</TD>
502</TR>
503<TR BGCOLOR="white" CLASS="TableRowColor">
504<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
505<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A></CODE></FONT></TD>
506<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#get(java.net.URI, org.apache.hadoop.conf.Configuration)">get</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;uri,
507    <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
508
509<BR>
510&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the FileSystem for this URI's scheme and authority.</TD>
511</TR>
512<TR BGCOLOR="white" CLASS="TableRowColor">
513<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>&gt;</CODE></FONT></TD>
515<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getAllStatistics()">getAllStatistics</A></B>()</CODE>
516
517<BR>
518&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the FileSystem classes that have Statistics</TD>
519</TR>
520<TR BGCOLOR="white" CLASS="TableRowColor">
521<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
522<CODE>&nbsp;long</CODE></FONT></TD>
523<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getBlockSize(org.apache.hadoop.fs.Path)">getBlockSize</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
524
525<BR>
526&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I></TD>
527</TR>
528<TR BGCOLOR="white" CLASS="TableRowColor">
529<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
530<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/ContentSummary.html" title="class in org.apache.hadoop.fs">ContentSummary</A></CODE></FONT></TD>
531<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getContentSummary(org.apache.hadoop.fs.Path)">getContentSummary</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
532
533<BR>
534&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the <A HREF="../../../../org/apache/hadoop/fs/ContentSummary.html" title="class in org.apache.hadoop.fs"><CODE>ContentSummary</CODE></A> of a given <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>.</TD>
535</TR>
536<TR BGCOLOR="white" CLASS="TableRowColor">
537<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
538<CODE>&nbsp;long</CODE></FONT></TD>
539<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getDefaultBlockSize()">getDefaultBlockSize</A></B>()</CODE>
540
541<BR>
542&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of bytes that large input files should be optimally
543 be split into to minimize i/o time.</TD>
544</TR>
545<TR BGCOLOR="white" CLASS="TableRowColor">
546<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
547<CODE>&nbsp;short</CODE></FONT></TD>
548<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getDefaultReplication()">getDefaultReplication</A></B>()</CODE>
549
550<BR>
551&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the default replication.</TD>
552</TR>
553<TR BGCOLOR="white" CLASS="TableRowColor">
554<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
555<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A></CODE></FONT></TD>
556<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getDefaultUri(org.apache.hadoop.conf.Configuration)">getDefaultUri</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
557
558<BR>
559&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the default filesystem URI from a configuration.</TD>
560</TR>
561<TR BGCOLOR="white" CLASS="TableRowColor">
562<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
563<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/BlockLocation.html" title="class in org.apache.hadoop.fs">BlockLocation</A>[]</CODE></FONT></TD>
564<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getFileBlockLocations(org.apache.hadoop.fs.FileStatus, long, long)">getFileBlockLocations</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>&nbsp;file,
565                      long&nbsp;start,
566                      long&nbsp;len)</CODE>
567
568<BR>
569&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array containing hostnames, offset and size of
570 portions of the given file.</TD>
571</TR>
572<TR BGCOLOR="white" CLASS="TableRowColor">
573<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
574<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs">FileChecksum</A></CODE></FONT></TD>
575<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getFileChecksum(org.apache.hadoop.fs.Path)">getFileChecksum</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
576
577<BR>
578&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the checksum of a file.</TD>
579</TR>
580<TR BGCOLOR="white" CLASS="TableRowColor">
581<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
582<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A></CODE></FONT></TD>
583<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getFileStatus(org.apache.hadoop.fs.Path)">getFileStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
584
585<BR>
586&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a file status object that represents the path.</TD>
587</TR>
588<TR BGCOLOR="white" CLASS="TableRowColor">
589<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
590<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
591<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getHomeDirectory()">getHomeDirectory</A></B>()</CODE>
592
593<BR>
594&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current user's home directory in this filesystem.</TD>
595</TR>
596<TR BGCOLOR="white" CLASS="TableRowColor">
597<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
598<CODE>&nbsp;long</CODE></FONT></TD>
599<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getLength(org.apache.hadoop.fs.Path)">getLength</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
600
601<BR>
602&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I></TD>
603</TR>
604<TR BGCOLOR="white" CLASS="TableRowColor">
605<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
606<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/LocalFileSystem.html" title="class in org.apache.hadoop.fs">LocalFileSystem</A></CODE></FONT></TD>
607<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getLocal(org.apache.hadoop.conf.Configuration)">getLocal</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
608
609<BR>
610&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the local file syste</TD>
611</TR>
612<TR BGCOLOR="white" CLASS="TableRowColor">
613<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
614<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>
615<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getName()">getName</A></B>()</CODE>
616
617<BR>
618&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>call #getUri() instead.</I></TD>
619</TR>
620<TR BGCOLOR="white" CLASS="TableRowColor">
621<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
622<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A></CODE></FONT></TD>
623<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getNamed(java.lang.String, org.apache.hadoop.conf.Configuration)">getNamed</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,
624         <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
625
626<BR>
627&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>call #get(URI,Configuration) instead.</I></TD>
628</TR>
629<TR BGCOLOR="white" CLASS="TableRowColor">
630<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
631<CODE>&nbsp;short</CODE></FONT></TD>
632<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getReplication(org.apache.hadoop.fs.Path)">getReplication</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src)</CODE>
633
634<BR>
635&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I></TD>
636</TR>
637<TR BGCOLOR="white" CLASS="TableRowColor">
638<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
639<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>&gt;</CODE></FONT></TD>
640<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getStatistics()">getStatistics</A></B>()</CODE>
641
642<BR>
643&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getAllStatistics()"><CODE>getAllStatistics()</CODE></A> instead</I></TD>
644</TR>
645<TR BGCOLOR="white" CLASS="TableRowColor">
646<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
647<CODE>static&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A></CODE></FONT></TD>
648<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getStatistics(java.lang.String, java.lang.Class)">getStatistics</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;scheme,
649              <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 <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&gt;&nbsp;cls)</CODE>
650
651<BR>
652&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the statistics for a particular file system</TD>
653</TR>
654<TR BGCOLOR="white" CLASS="TableRowColor">
655<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
656<CODE>abstract &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A></CODE></FONT></TD>
657<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getUri()">getUri</A></B>()</CODE>
658
659<BR>
660&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a URI whose scheme and authority identify this FileSystem.</TD>
661</TR>
662<TR BGCOLOR="white" CLASS="TableRowColor">
663<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
664<CODE>&nbsp;long</CODE></FONT></TD>
665<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getUsed()">getUsed</A></B>()</CODE>
666
667<BR>
668&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the total size of all files in the filesystem.</TD>
669</TR>
670<TR BGCOLOR="white" CLASS="TableRowColor">
671<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
672<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
673<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getWorkingDirectory()">getWorkingDirectory</A></B>()</CODE>
674
675<BR>
676&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current working directory for the given file system</TD>
677</TR>
678<TR BGCOLOR="white" CLASS="TableRowColor">
679<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
680<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
681<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#globStatus(org.apache.hadoop.fs.Path)">globStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;pathPattern)</CODE>
682
683<BR>
684&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return all the files that match filePattern and are not checksum
685 files.</TD>
686</TR>
687<TR BGCOLOR="white" CLASS="TableRowColor">
688<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
689<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
690<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#globStatus(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.PathFilter)">globStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;pathPattern,
691           <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)</CODE>
692
693<BR>
694&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of FileStatus objects whose path names match pathPattern
695 and is accepted by the user-supplied path filter.</TD>
696</TR>
697<TR BGCOLOR="white" CLASS="TableRowColor">
698<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
699<CODE>&nbsp;void</CODE></FONT></TD>
700<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#initialize(java.net.URI, org.apache.hadoop.conf.Configuration)">initialize</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;name,
701           <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
702
703<BR>
704&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called after a new FileSystem instance is constructed.</TD>
705</TR>
706<TR BGCOLOR="white" CLASS="TableRowColor">
707<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
708<CODE>&nbsp;boolean</CODE></FONT></TD>
709<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#isDirectory(org.apache.hadoop.fs.Path)">isDirectory</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
710
711<BR>
712&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I></TD>
713</TR>
714<TR BGCOLOR="white" CLASS="TableRowColor">
715<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
716<CODE>&nbsp;boolean</CODE></FONT></TD>
717<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#isFile(org.apache.hadoop.fs.Path)">isFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
718
719<BR>
720&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True iff the named path is a regular file.</TD>
721</TR>
722<TR BGCOLOR="white" CLASS="TableRowColor">
723<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
724<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
725<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#listStatus(org.apache.hadoop.fs.Path)">listStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
726
727<BR>
728&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List the statuses of the files/directories in the given path if the path is
729 a directory.</TD>
730</TR>
731<TR BGCOLOR="white" CLASS="TableRowColor">
732<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
733<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
734<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#listStatus(org.apache.hadoop.fs.Path[])">listStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;files)</CODE>
735
736<BR>
737&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filter files/directories in the given list of paths using default
738 path filter.</TD>
739</TR>
740<TR BGCOLOR="white" CLASS="TableRowColor">
741<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
742<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
743<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#listStatus(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.PathFilter)">listStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;files,
744           <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)</CODE>
745
746<BR>
747&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filter files/directories in the given list of paths using user-supplied
748 path filter.</TD>
749</TR>
750<TR BGCOLOR="white" CLASS="TableRowColor">
751<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
752<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[]</CODE></FONT></TD>
753<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#listStatus(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.PathFilter)">listStatus</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
754           <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)</CODE>
755
756<BR>
757&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filter files/directories in the given path using the user-supplied path
758 filter.</TD>
759</TR>
760<TR BGCOLOR="white" CLASS="TableRowColor">
761<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
762<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
763<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#makeQualified(org.apache.hadoop.fs.Path)">makeQualified</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</CODE>
764
765<BR>
766&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make sure that a path specifies a FileSystem.</TD>
767</TR>
768<TR BGCOLOR="white" CLASS="TableRowColor">
769<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
770<CODE>static&nbsp;boolean</CODE></FONT></TD>
771<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#mkdirs(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)">mkdirs</A></B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&nbsp;fs,
772       <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dir,
773       <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</CODE>
774
775<BR>
776&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create a directory with the provided permission
777 The permission of the directory is set to be the provided permission as in
778 setPermission, not permission&~umask</TD>
779</TR>
780<TR BGCOLOR="white" CLASS="TableRowColor">
781<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
782<CODE>&nbsp;boolean</CODE></FONT></TD>
783<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#mkdirs(org.apache.hadoop.fs.Path)">mkdirs</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
784
785<BR>
786&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#mkdirs(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><CODE>mkdirs(Path, FsPermission)</CODE></A> with default permission.</TD>
787</TR>
788<TR BGCOLOR="white" CLASS="TableRowColor">
789<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
790<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
791<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#mkdirs(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)">mkdirs</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
792       <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</CODE>
793
794<BR>
795&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make the given file and all non-existent parents into
796 directories.</TD>
797</TR>
798<TR BGCOLOR="white" CLASS="TableRowColor">
799<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
800<CODE>&nbsp;void</CODE></FONT></TD>
801<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#moveFromLocalFile(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)">moveFromLocalFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;srcs,
802                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
803
804<BR>
805&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src files is on the local disk.</TD>
806</TR>
807<TR BGCOLOR="white" CLASS="TableRowColor">
808<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
809<CODE>&nbsp;void</CODE></FONT></TD>
810<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#moveFromLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">moveFromLocalFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
811                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
812
813<BR>
814&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is on the local disk.</TD>
815</TR>
816<TR BGCOLOR="white" CLASS="TableRowColor">
817<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
818<CODE>&nbsp;void</CODE></FONT></TD>
819<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#moveToLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">moveToLocalFile</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
820                <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
821
822<BR>
823&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The src file is under FS, and the dst is on the local disk.</TD>
824</TR>
825<TR BGCOLOR="white" CLASS="TableRowColor">
826<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
827<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataInputStream.html" title="class in org.apache.hadoop.fs">FSDataInputStream</A></CODE></FONT></TD>
828<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#open(org.apache.hadoop.fs.Path)">open</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)</CODE>
829
830<BR>
831&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataInputStream at the indicated Path.</TD>
832</TR>
833<TR BGCOLOR="white" CLASS="TableRowColor">
834<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
835<CODE>abstract &nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSDataInputStream.html" title="class in org.apache.hadoop.fs">FSDataInputStream</A></CODE></FONT></TD>
836<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#open(org.apache.hadoop.fs.Path, int)">open</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
837     int&nbsp;bufferSize)</CODE>
838
839<BR>
840&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens an FSDataInputStream at the indicated Path.</TD>
841</TR>
842<TR BGCOLOR="white" CLASS="TableRowColor">
843<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
844<CODE>static&nbsp;void</CODE></FONT></TD>
845<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#printStatistics()">printStatistics</A></B>()</CODE>
846
847<BR>
848&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
849</TR>
850<TR BGCOLOR="white" CLASS="TableRowColor">
851<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
852<CODE>protected &nbsp;void</CODE></FONT></TD>
853<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#processDeleteOnExit()">processDeleteOnExit</A></B>()</CODE>
854
855<BR>
856&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete all files that were marked as delete-on-exit.</TD>
857</TR>
858<TR BGCOLOR="white" CLASS="TableRowColor">
859<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
860<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
861<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#rename(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">rename</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
862       <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)</CODE>
863
864<BR>
865&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renames Path src to Path dst.</TD>
866</TR>
867<TR BGCOLOR="white" CLASS="TableRowColor">
868<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
869<CODE>static&nbsp;void</CODE></FONT></TD>
870<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setDefaultUri(org.apache.hadoop.conf.Configuration, java.lang.String)">setDefaultUri</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
871              <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;uri)</CODE>
872
873<BR>
874&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the default filesystem URI in a configuration.</TD>
875</TR>
876<TR BGCOLOR="white" CLASS="TableRowColor">
877<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
878<CODE>static&nbsp;void</CODE></FONT></TD>
879<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setDefaultUri(org.apache.hadoop.conf.Configuration, java.net.URI)">setDefaultUri</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
880              <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;uri)</CODE>
881
882<BR>
883&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the default filesystem URI in a configuration.</TD>
884</TR>
885<TR BGCOLOR="white" CLASS="TableRowColor">
886<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
887<CODE>&nbsp;void</CODE></FONT></TD>
888<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setOwner(org.apache.hadoop.fs.Path, java.lang.String, java.lang.String)">setOwner</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
889         <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;username,
890         <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;groupname)</CODE>
891
892<BR>
893&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set owner of a path (i.e.</TD>
894</TR>
895<TR BGCOLOR="white" CLASS="TableRowColor">
896<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
897<CODE>&nbsp;void</CODE></FONT></TD>
898<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setPermission(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)">setPermission</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
899              <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</CODE>
900
901<BR>
902&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set permission of a path.</TD>
903</TR>
904<TR BGCOLOR="white" CLASS="TableRowColor">
905<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
906<CODE>&nbsp;boolean</CODE></FONT></TD>
907<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setReplication(org.apache.hadoop.fs.Path, short)">setReplication</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
908               short&nbsp;replication)</CODE>
909
910<BR>
911&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set replication for an existing file.</TD>
912</TR>
913<TR BGCOLOR="white" CLASS="TableRowColor">
914<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
915<CODE>&nbsp;void</CODE></FONT></TD>
916<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setTimes(org.apache.hadoop.fs.Path, long, long)">setTimes</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
917         long&nbsp;mtime,
918         long&nbsp;atime)</CODE>
919
920<BR>
921&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set access time of a file</TD>
922</TR>
923<TR BGCOLOR="white" CLASS="TableRowColor">
924<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
925<CODE>&nbsp;void</CODE></FONT></TD>
926<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setVerifyChecksum(boolean)">setVerifyChecksum</A></B>(boolean&nbsp;verifyChecksum)</CODE>
927
928<BR>
929&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the verify checksum flag.</TD>
930</TR>
931<TR BGCOLOR="white" CLASS="TableRowColor">
932<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
933<CODE>abstract &nbsp;void</CODE></FONT></TD>
934<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setWorkingDirectory(org.apache.hadoop.fs.Path)">setWorkingDirectory</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;new_dir)</CODE>
935
936<BR>
937&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current working directory for the given file system.</TD>
938</TR>
939<TR BGCOLOR="white" CLASS="TableRowColor">
940<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
941<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
942<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#startLocalOutput(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)">startLocalOutput</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;fsOutputFile,
943                 <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;tmpLocalFile)</CODE>
944
945<BR>
946&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a local File that the user can write output to.</TD>
947</TR>
948</TABLE>
949&nbsp;<A NAME="methods_inherited_from_class_org.apache.hadoop.conf.Configured"><!-- --></A>
950<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
951<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
952<TH ALIGN="left"><B>Methods inherited from class org.apache.hadoop.conf.<A HREF="../../../../org/apache/hadoop/conf/Configured.html" title="class in org.apache.hadoop.conf">Configured</A></B></TH>
953</TR>
954<TR BGCOLOR="white" CLASS="TableRowColor">
955<TD><CODE><A HREF="../../../../org/apache/hadoop/conf/Configured.html#getConf()">getConf</A>, <A HREF="../../../../org/apache/hadoop/conf/Configured.html#setConf(org.apache.hadoop.conf.Configuration)">setConf</A></CODE></TD>
956</TR>
957</TABLE>
958&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
959<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
960<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
961<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>
962</TR>
963<TR BGCOLOR="white" CLASS="TableRowColor">
964<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
965</TR>
966</TABLE>
967&nbsp;
968<P>
969
970<!-- ============ FIELD DETAIL =========== -->
971
972<A NAME="field_detail"><!-- --></A>
973<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
974<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
975<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
976<B>Field Detail</B></FONT></TH>
977</TR>
978</TABLE>
979
980<A NAME="LOG"><!-- --></A><H3>
981LOG</H3>
982<PRE>
983public static final org.apache.commons.logging.Log <B>LOG</B></PRE>
984<DL>
985<DL>
986</DL>
987</DL>
988<HR>
989
990<A NAME="statistics"><!-- --></A><H3>
991statistics</H3>
992<PRE>
993protected <A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A> <B>statistics</B></PRE>
994<DL>
995<DD>The statistics for this file system.
996<P>
997<DL>
998</DL>
999</DL>
1000
1001<!-- ========= CONSTRUCTOR DETAIL ======== -->
1002
1003<A NAME="constructor_detail"><!-- --></A>
1004<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1005<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1006<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1007<B>Constructor Detail</B></FONT></TH>
1008</TR>
1009</TABLE>
1010
1011<A NAME="FileSystem()"><!-- --></A><H3>
1012FileSystem</H3>
1013<PRE>
1014protected <B>FileSystem</B>()</PRE>
1015<DL>
1016</DL>
1017
1018<!-- ============ METHOD DETAIL ========== -->
1019
1020<A NAME="method_detail"><!-- --></A>
1021<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1022<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1023<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1024<B>Method Detail</B></FONT></TH>
1025</TR>
1026</TABLE>
1027
1028<A NAME="get(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1029get</H3>
1030<PRE>
1031public static <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> <B>get</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
1032                      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>
1033<DL>
1034<DD>Returns the configured filesystem implementation.
1035<P>
1036<DD><DL>
1037</DL>
1038</DD>
1039<DD><DL>
1040
1041<DT><B>Throws:</B>
1042<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>
1043</DD>
1044</DL>
1045<HR>
1046
1047<A NAME="getDefaultUri(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1048getDefaultUri</H3>
1049<PRE>
1050public static <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A> <B>getDefaultUri</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</PRE>
1051<DL>
1052<DD>Get the default filesystem URI from a configuration.
1053<P>
1054<DD><DL>
1055</DL>
1056</DD>
1057<DD><DL>
1058<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to access
1059<DT><B>Returns:</B><DD>the uri of the default filesystem</DL>
1060</DD>
1061</DL>
1062<HR>
1063
1064<A NAME="setDefaultUri(org.apache.hadoop.conf.Configuration, java.net.URI)"><!-- --></A><H3>
1065setDefaultUri</H3>
1066<PRE>
1067public static void <B>setDefaultUri</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
1068                                 <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;uri)</PRE>
1069<DL>
1070<DD>Set the default filesystem URI in a configuration.
1071<P>
1072<DD><DL>
1073</DL>
1074</DD>
1075<DD><DL>
1076<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to alter<DD><CODE>uri</CODE> - the new default filesystem uri</DL>
1077</DD>
1078</DL>
1079<HR>
1080
1081<A NAME="setDefaultUri(org.apache.hadoop.conf.Configuration, java.lang.String)"><!-- --></A><H3>
1082setDefaultUri</H3>
1083<PRE>
1084public static void <B>setDefaultUri</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf,
1085                                 <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;uri)</PRE>
1086<DL>
1087<DD>Set the default filesystem URI in a configuration.
1088<P>
1089<DD><DL>
1090</DL>
1091</DD>
1092<DD><DL>
1093<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to alter<DD><CODE>uri</CODE> - the new default filesystem uri</DL>
1094</DD>
1095</DL>
1096<HR>
1097
1098<A NAME="initialize(java.net.URI, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1099initialize</H3>
1100<PRE>
1101public void <B>initialize</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;name,
1102                       <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
1103                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>
1104<DL>
1105<DD>Called after a new FileSystem instance is constructed.
1106<P>
1107<DD><DL>
1108</DL>
1109</DD>
1110<DD><DL>
1111<DT><B>Parameters:</B><DD><CODE>name</CODE> - a uri whose authority section names the host, port, etc.
1112   for this FileSystem<DD><CODE>conf</CODE> - the configuration
1113<DT><B>Throws:</B>
1114<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>
1115</DD>
1116</DL>
1117<HR>
1118
1119<A NAME="getUri()"><!-- --></A><H3>
1120getUri</H3>
1121<PRE>
1122public abstract <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A> <B>getUri</B>()</PRE>
1123<DL>
1124<DD>Returns a URI whose scheme and authority identify this FileSystem.
1125<P>
1126<DD><DL>
1127</DL>
1128</DD>
1129<DD><DL>
1130</DL>
1131</DD>
1132</DL>
1133<HR>
1134
1135<A NAME="getName()"><!-- --></A><H3>
1136getName</H3>
1137<PRE>
1138public <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>getName</B>()</PRE>
1139<DL>
1140<DD><B>Deprecated.</B>&nbsp;<I>call #getUri() instead.</I>
1141<P>
1142<DD><DL>
1143</DL>
1144</DD>
1145<DD><DL>
1146</DL>
1147</DD>
1148</DL>
1149<HR>
1150
1151<A NAME="getNamed(java.lang.String, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1152getNamed</H3>
1153<PRE>
1154public static <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> <B>getNamed</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,
1155                                  <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
1156                           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>
1157<DL>
1158<DD><B>Deprecated.</B>&nbsp;<I>call #get(URI,Configuration) instead.</I>
1159<P>
1160<DD><DL>
1161</DL>
1162</DD>
1163<DD><DL>
1164
1165<DT><B>Throws:</B>
1166<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>
1167</DD>
1168</DL>
1169<HR>
1170
1171<A NAME="getLocal(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1172getLocal</H3>
1173<PRE>
1174public static <A HREF="../../../../org/apache/hadoop/fs/LocalFileSystem.html" title="class in org.apache.hadoop.fs">LocalFileSystem</A> <B>getLocal</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
1175                                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>
1176<DL>
1177<DD>Get the local file syste
1178<P>
1179<DD><DL>
1180</DL>
1181</DD>
1182<DD><DL>
1183<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to configure the file system with
1184<DT><B>Returns:</B><DD>a LocalFileSystem
1185<DT><B>Throws:</B>
1186<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>
1187</DD>
1188</DL>
1189<HR>
1190
1191<A NAME="get(java.net.URI, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
1192get</H3>
1193<PRE>
1194public static <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> <B>get</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>&nbsp;uri,
1195                             <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
1196                      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>
1197<DL>
1198<DD>Returns the FileSystem for this URI's scheme and authority.  The scheme
1199 of the URI determines a configuration property name,
1200 <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
1201 The entire URI is passed to the FileSystem instance's initialize method.
1202<P>
1203<DD><DL>
1204</DL>
1205</DD>
1206<DD><DL>
1207
1208<DT><B>Throws:</B>
1209<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>
1210</DD>
1211</DL>
1212<HR>
1213
1214<A NAME="closeAll()"><!-- --></A><H3>
1215closeAll</H3>
1216<PRE>
1217public static void <B>closeAll</B>()
1218                     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>
1219<DL>
1220<DD>Close all cached filesystems. Be sure those filesystems are not
1221 used anymore.
1222<P>
1223<DD><DL>
1224</DL>
1225</DD>
1226<DD><DL>
1227
1228<DT><B>Throws:</B>
1229<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>
1230</DD>
1231</DL>
1232<HR>
1233
1234<A NAME="makeQualified(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1235makeQualified</H3>
1236<PRE>
1237public <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>makeQualified</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</PRE>
1238<DL>
1239<DD>Make sure that a path specifies a FileSystem.
1240<P>
1241<DD><DL>
1242</DL>
1243</DD>
1244<DD><DL>
1245</DL>
1246</DD>
1247</DL>
1248<HR>
1249
1250<A NAME="create(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><!-- --></A><H3>
1251create</H3>
1252<PRE>
1253public static <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&nbsp;fs,
1254                                        <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;file,
1255                                        <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)
1256                                 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>
1257<DL>
1258<DD>create a file with the provided permission
1259 The permission of the file is set to be the provided permission as in
1260 setPermission, not permission&~umask
1261 
1262 It is implemented using two RPCs. It is understood that it is inefficient,
1263 but the implementation is thread-safe. The other option is to change the
1264 value of umask in configuration to be 0, but it is not thread-safe.
1265<P>
1266<DD><DL>
1267</DL>
1268</DD>
1269<DD><DL>
1270<DT><B>Parameters:</B><DD><CODE>fs</CODE> - file system handle<DD><CODE>file</CODE> - the name of the file to be created<DD><CODE>permission</CODE> - the permission of the file
1271<DT><B>Returns:</B><DD>an output stream
1272<DT><B>Throws:</B>
1273<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>
1274</DD>
1275</DL>
1276<HR>
1277
1278<A NAME="mkdirs(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><!-- --></A><H3>
1279mkdirs</H3>
1280<PRE>
1281public static boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&nbsp;fs,
1282                             <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dir,
1283                             <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)
1284                      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>
1285<DL>
1286<DD>create a directory with the provided permission
1287 The permission of the directory is set to be the provided permission as in
1288 setPermission, not permission&~umask
1289<P>
1290<DD><DL>
1291</DL>
1292</DD>
1293<DD><DL>
1294<DT><B>Parameters:</B><DD><CODE>fs</CODE> - file system handle<DD><CODE>dir</CODE> - the name of the directory to be created<DD><CODE>permission</CODE> - the permission of the directory
1295<DT><B>Returns:</B><DD>true if the directory creation succeeds; false otherwise
1296<DT><B>Throws:</B>
1297<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><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><CODE>create(FileSystem, Path, FsPermission)</CODE></A></DL>
1298</DD>
1299</DL>
1300<HR>
1301
1302<A NAME="checkPath(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1303checkPath</H3>
1304<PRE>
1305protected void <B>checkPath</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</PRE>
1306<DL>
1307<DD>Check that a Path belongs to this FileSystem.
1308<P>
1309<DD><DL>
1310</DL>
1311</DD>
1312<DD><DL>
1313</DL>
1314</DD>
1315</DL>
1316<HR>
1317
1318<A NAME="getFileBlockLocations(org.apache.hadoop.fs.FileStatus, long, long)"><!-- --></A><H3>
1319getFileBlockLocations</H3>
1320<PRE>
1321public <A HREF="../../../../org/apache/hadoop/fs/BlockLocation.html" title="class in org.apache.hadoop.fs">BlockLocation</A>[] <B>getFileBlockLocations</B>(<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>&nbsp;file,
1322                                             long&nbsp;start,
1323                                             long&nbsp;len)
1324                                      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>
1325<DL>
1326<DD>Return an array containing hostnames, offset and size of
1327 portions of the given file.  For a nonexistent
1328 file or regions, null will be returned.
1329
1330 This call is most helpful with DFS, where it returns
1331 hostnames of machines that contain the given file.
1332
1333 The FileSystem will simply return an elt containing 'localhost'.
1334<P>
1335<DD><DL>
1336</DL>
1337</DD>
1338<DD><DL>
1339
1340<DT><B>Throws:</B>
1341<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>
1342</DD>
1343</DL>
1344<HR>
1345
1346<A NAME="open(org.apache.hadoop.fs.Path, int)"><!-- --></A><H3>
1347open</H3>
1348<PRE>
1349public abstract <A HREF="../../../../org/apache/hadoop/fs/FSDataInputStream.html" title="class in org.apache.hadoop.fs">FSDataInputStream</A> <B>open</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1350                                       int&nbsp;bufferSize)
1351                                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>
1352<DL>
1353<DD>Opens an FSDataInputStream at the indicated Path.
1354<P>
1355<DD><DL>
1356</DL>
1357</DD>
1358<DD><DL>
1359<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.
1360<DT><B>Throws:</B>
1361<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>
1362</DD>
1363</DL>
1364<HR>
1365
1366<A NAME="open(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1367open</H3>
1368<PRE>
1369public <A HREF="../../../../org/apache/hadoop/fs/FSDataInputStream.html" title="class in org.apache.hadoop.fs">FSDataInputStream</A> <B>open</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1370                       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>
1371<DL>
1372<DD>Opens an FSDataInputStream at the indicated Path.
1373<P>
1374<DD><DL>
1375</DL>
1376</DD>
1377<DD><DL>
1378<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file to open
1379<DT><B>Throws:</B>
1380<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>
1381</DD>
1382</DL>
1383<HR>
1384
1385<A NAME="create(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1386create</H3>
1387<PRE>
1388public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1389                          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>
1390<DL>
1391<DD>Opens an FSDataOutputStream at the indicated Path.
1392 Files are overwritten by default.
1393<P>
1394<DD><DL>
1395</DL>
1396</DD>
1397<DD><DL>
1398
1399<DT><B>Throws:</B>
1400<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>
1401</DD>
1402</DL>
1403<HR>
1404
1405<A NAME="create(org.apache.hadoop.fs.Path, boolean)"><!-- --></A><H3>
1406create</H3>
1407<PRE>
1408public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1409                                 boolean&nbsp;overwrite)
1410                          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>
1411<DL>
1412<DD>Opens an FSDataOutputStream at the indicated Path.
1413<P>
1414<DD><DL>
1415</DL>
1416</DD>
1417<DD><DL>
1418
1419<DT><B>Throws:</B>
1420<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>
1421</DD>
1422</DL>
1423<HR>
1424
1425<A NAME="create(org.apache.hadoop.fs.Path, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1426create</H3>
1427<PRE>
1428public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1429                                 <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1430                          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>
1431<DL>
1432<DD>Create an FSDataOutputStream at the indicated Path with write-progress
1433 reporting.
1434 Files are overwritten by default.
1435<P>
1436<DD><DL>
1437</DL>
1438</DD>
1439<DD><DL>
1440
1441<DT><B>Throws:</B>
1442<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>
1443</DD>
1444</DL>
1445<HR>
1446
1447<A NAME="create(org.apache.hadoop.fs.Path, short)"><!-- --></A><H3>
1448create</H3>
1449<PRE>
1450public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1451                                 short&nbsp;replication)
1452                          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>
1453<DL>
1454<DD>Opens an FSDataOutputStream at the indicated Path.
1455 Files are overwritten by default.
1456<P>
1457<DD><DL>
1458</DL>
1459</DD>
1460<DD><DL>
1461
1462<DT><B>Throws:</B>
1463<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>
1464</DD>
1465</DL>
1466<HR>
1467
1468<A NAME="create(org.apache.hadoop.fs.Path, short, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1469create</H3>
1470<PRE>
1471public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1472                                 short&nbsp;replication,
1473                                 <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1474                          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>
1475<DL>
1476<DD>Opens an FSDataOutputStream at the indicated Path with write-progress
1477 reporting.
1478 Files are overwritten by default.
1479<P>
1480<DD><DL>
1481</DL>
1482</DD>
1483<DD><DL>
1484
1485<DT><B>Throws:</B>
1486<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>
1487</DD>
1488</DL>
1489<HR>
1490
1491<A NAME="create(org.apache.hadoop.fs.Path, boolean, int)"><!-- --></A><H3>
1492create</H3>
1493<PRE>
1494public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1495                                 boolean&nbsp;overwrite,
1496                                 int&nbsp;bufferSize)
1497                          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>
1498<DL>
1499<DD>Opens an FSDataOutputStream at the indicated Path.
1500<P>
1501<DD><DL>
1502</DL>
1503</DD>
1504<DD><DL>
1505<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>overwrite</CODE> - if a file with this name already exists, then if true,
1506   the file will be overwritten, and if false an error will be thrown.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.
1507<DT><B>Throws:</B>
1508<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>
1509</DD>
1510</DL>
1511<HR>
1512
1513<A NAME="create(org.apache.hadoop.fs.Path, boolean, int, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1514create</H3>
1515<PRE>
1516public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1517                                 boolean&nbsp;overwrite,
1518                                 int&nbsp;bufferSize,
1519                                 <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1520                          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>
1521<DL>
1522<DD>Opens an FSDataOutputStream at the indicated Path with write-progress
1523 reporting.
1524<P>
1525<DD><DL>
1526</DL>
1527</DD>
1528<DD><DL>
1529<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>overwrite</CODE> - if a file with this name already exists, then if true,
1530   the file will be overwritten, and if false an error will be thrown.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.
1531<DT><B>Throws:</B>
1532<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>
1533</DD>
1534</DL>
1535<HR>
1536
1537<A NAME="create(org.apache.hadoop.fs.Path, boolean, int, short, long)"><!-- --></A><H3>
1538create</H3>
1539<PRE>
1540public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1541                                 boolean&nbsp;overwrite,
1542                                 int&nbsp;bufferSize,
1543                                 short&nbsp;replication,
1544                                 long&nbsp;blockSize)
1545                          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>
1546<DL>
1547<DD>Opens an FSDataOutputStream at the indicated Path.
1548<P>
1549<DD><DL>
1550</DL>
1551</DD>
1552<DD><DL>
1553<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>overwrite</CODE> - if a file with this name already exists, then if true,
1554   the file will be overwritten, and if false an error will be thrown.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.<DD><CODE>replication</CODE> - required block replication for the file.
1555<DT><B>Throws:</B>
1556<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>
1557</DD>
1558</DL>
1559<HR>
1560
1561<A NAME="create(org.apache.hadoop.fs.Path, boolean, int, short, long, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1562create</H3>
1563<PRE>
1564public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1565                                 boolean&nbsp;overwrite,
1566                                 int&nbsp;bufferSize,
1567                                 short&nbsp;replication,
1568                                 long&nbsp;blockSize,
1569                                 <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1570                          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>
1571<DL>
1572<DD>Opens an FSDataOutputStream at the indicated Path with write-progress
1573 reporting.
1574<P>
1575<DD><DL>
1576</DL>
1577</DD>
1578<DD><DL>
1579<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>overwrite</CODE> - if a file with this name already exists, then if true,
1580   the file will be overwritten, and if false an error will be thrown.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.<DD><CODE>replication</CODE> - required block replication for the file.
1581<DT><B>Throws:</B>
1582<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>
1583</DD>
1584</DL>
1585<HR>
1586
1587<A NAME="create(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission, boolean, int, short, long, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1588create</H3>
1589<PRE>
1590public abstract <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>create</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1591                                          <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission,
1592                                          boolean&nbsp;overwrite,
1593                                          int&nbsp;bufferSize,
1594                                          short&nbsp;replication,
1595                                          long&nbsp;blockSize,
1596                                          <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1597                                   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>
1598<DL>
1599<DD>Opens an FSDataOutputStream at the indicated Path with write-progress
1600 reporting.
1601<P>
1602<DD><DL>
1603</DL>
1604</DD>
1605<DD><DL>
1606<DT><B>Parameters:</B><DD><CODE>f</CODE> - the file name to open<DD><CODE>permission</CODE> - <DD><CODE>overwrite</CODE> - if a file with this name already exists, then if true,
1607   the file will be overwritten, and if false an error will be thrown.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.<DD><CODE>replication</CODE> - required block replication for the file.<DD><CODE>blockSize</CODE> - <DD><CODE>progress</CODE> -
1608<DT><B>Throws:</B>
1609<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><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setPermission(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><CODE>setPermission(Path, FsPermission)</CODE></A></DL>
1610</DD>
1611</DL>
1612<HR>
1613
1614<A NAME="createNewFile(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1615createNewFile</H3>
1616<PRE>
1617public boolean <B>createNewFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1618                      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>
1619<DL>
1620<DD>Creates the given Path as a brand-new zero-length file.  If
1621 create fails, or if it already existed, return false.
1622<P>
1623<DD><DL>
1624</DL>
1625</DD>
1626<DD><DL>
1627
1628<DT><B>Throws:</B>
1629<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>
1630</DD>
1631</DL>
1632<HR>
1633
1634<A NAME="append(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1635append</H3>
1636<PRE>
1637public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>append</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1638                          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>
1639<DL>
1640<DD>Append to an existing file (optional operation).
1641 Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
1642<P>
1643<DD><DL>
1644</DL>
1645</DD>
1646<DD><DL>
1647<DT><B>Parameters:</B><DD><CODE>f</CODE> - the existing file to be appended.
1648<DT><B>Throws:</B>
1649<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>
1650</DD>
1651</DL>
1652<HR>
1653
1654<A NAME="append(org.apache.hadoop.fs.Path, int)"><!-- --></A><H3>
1655append</H3>
1656<PRE>
1657public <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>append</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1658                                 int&nbsp;bufferSize)
1659                          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>
1660<DL>
1661<DD>Append to an existing file (optional operation).
1662 Same as append(f, bufferSize, null).
1663<P>
1664<DD><DL>
1665</DL>
1666</DD>
1667<DD><DL>
1668<DT><B>Parameters:</B><DD><CODE>f</CODE> - the existing file to be appended.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.
1669<DT><B>Throws:</B>
1670<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>
1671</DD>
1672</DL>
1673<HR>
1674
1675<A NAME="append(org.apache.hadoop.fs.Path, int, org.apache.hadoop.util.Progressable)"><!-- --></A><H3>
1676append</H3>
1677<PRE>
1678public abstract <A HREF="../../../../org/apache/hadoop/fs/FSDataOutputStream.html" title="class in org.apache.hadoop.fs">FSDataOutputStream</A> <B>append</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1679                                          int&nbsp;bufferSize,
1680                                          <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A>&nbsp;progress)
1681                                   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>
1682<DL>
1683<DD>Append to an existing file (optional operation).
1684<P>
1685<DD><DL>
1686</DL>
1687</DD>
1688<DD><DL>
1689<DT><B>Parameters:</B><DD><CODE>f</CODE> - the existing file to be appended.<DD><CODE>bufferSize</CODE> - the size of the buffer to be used.<DD><CODE>progress</CODE> - for reporting progress if it is not null.
1690<DT><B>Throws:</B>
1691<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>
1692</DD>
1693</DL>
1694<HR>
1695
1696<A NAME="getReplication(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1697getReplication</H3>
1698<PRE>
1699<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
1700</FONT>public short <B>getReplication</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src)
1701                     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>
1702<DL>
1703<DD><B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I>
1704<P>
1705<DD>Get replication.
1706<P>
1707<DD><DL>
1708</DL>
1709</DD>
1710<DD><DL>
1711<DT><B>Parameters:</B><DD><CODE>src</CODE> - file name
1712<DT><B>Returns:</B><DD>file replication
1713<DT><B>Throws:</B>
1714<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>
1715</DD>
1716</DL>
1717<HR>
1718
1719<A NAME="setReplication(org.apache.hadoop.fs.Path, short)"><!-- --></A><H3>
1720setReplication</H3>
1721<PRE>
1722public boolean <B>setReplication</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
1723                              short&nbsp;replication)
1724                       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>
1725<DL>
1726<DD>Set replication for an existing file.
1727<P>
1728<DD><DL>
1729</DL>
1730</DD>
1731<DD><DL>
1732<DT><B>Parameters:</B><DD><CODE>src</CODE> - file name<DD><CODE>replication</CODE> - new replication
1733<DT><B>Returns:</B><DD>true if successful;
1734         false if file does not exist or is a directory
1735<DT><B>Throws:</B>
1736<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>
1737</DD>
1738</DL>
1739<HR>
1740
1741<A NAME="rename(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1742rename</H3>
1743<PRE>
1744public abstract boolean <B>rename</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
1745                               <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
1746                        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>
1747<DL>
1748<DD>Renames Path src to Path dst.  Can take place on local fs
1749 or remote DFS.
1750<P>
1751<DD><DL>
1752</DL>
1753</DD>
1754<DD><DL>
1755
1756<DT><B>Throws:</B>
1757<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>
1758</DD>
1759</DL>
1760<HR>
1761
1762<A NAME="delete(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1763delete</H3>
1764<PRE>
1765<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
1766</FONT>public abstract boolean <B>delete</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1767                        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>
1768<DL>
1769<DD><B>Deprecated.</B>&nbsp;<I>Use delete(Path, boolean) instead</I>
1770<P>
1771<DD><DL>
1772</DL>
1773</DD>
1774<DD><DL>
1775
1776<DT><B>Throws:</B>
1777<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>
1778</DD>
1779</DL>
1780<HR>
1781
1782<A NAME="delete(org.apache.hadoop.fs.Path, boolean)"><!-- --></A><H3>
1783delete</H3>
1784<PRE>
1785public abstract boolean <B>delete</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1786                               boolean&nbsp;recursive)
1787                        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>
1788<DL>
1789<DD>Delete a file.
1790<P>
1791<DD><DL>
1792</DL>
1793</DD>
1794<DD><DL>
1795<DT><B>Parameters:</B><DD><CODE>f</CODE> - the path to delete.<DD><CODE>recursive</CODE> - if path is a directory and set to
1796 true, the directory is deleted else throws an exception. In
1797 case of a file the recursive can be set to either true or false.
1798<DT><B>Returns:</B><DD>true if delete is successful else false.
1799<DT><B>Throws:</B>
1800<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>
1801</DD>
1802</DL>
1803<HR>
1804
1805<A NAME="deleteOnExit(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1806deleteOnExit</H3>
1807<PRE>
1808public boolean <B>deleteOnExit</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1809                     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>
1810<DL>
1811<DD>Mark a path to be deleted when FileSystem is closed.
1812 When the JVM shuts down,
1813 all FileSystem objects will be closed automatically.
1814 Then,
1815 the marked path will be deleted as a result of closing the FileSystem.
1816
1817 The path has to exist in the file system.
1818<P>
1819<DD><DL>
1820</DL>
1821</DD>
1822<DD><DL>
1823<DT><B>Parameters:</B><DD><CODE>f</CODE> - the path to delete.
1824<DT><B>Returns:</B><DD>true if deleteOnExit is successful, otherwise false.
1825<DT><B>Throws:</B>
1826<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>
1827</DD>
1828</DL>
1829<HR>
1830
1831<A NAME="processDeleteOnExit()"><!-- --></A><H3>
1832processDeleteOnExit</H3>
1833<PRE>
1834protected void <B>processDeleteOnExit</B>()</PRE>
1835<DL>
1836<DD>Delete all files that were marked as delete-on-exit. This recursively
1837 deletes all files in the specified paths.
1838<P>
1839<DD><DL>
1840</DL>
1841</DD>
1842<DD><DL>
1843</DL>
1844</DD>
1845</DL>
1846<HR>
1847
1848<A NAME="exists(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1849exists</H3>
1850<PRE>
1851public boolean <B>exists</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1852               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>
1853<DL>
1854<DD>Check if exists.
1855<P>
1856<DD><DL>
1857</DL>
1858</DD>
1859<DD><DL>
1860<DT><B>Parameters:</B><DD><CODE>f</CODE> - source file
1861<DT><B>Throws:</B>
1862<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>
1863</DD>
1864</DL>
1865<HR>
1866
1867<A NAME="isDirectory(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1868isDirectory</H3>
1869<PRE>
1870<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
1871</FONT>public boolean <B>isDirectory</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1872                    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>
1873<DL>
1874<DD><B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I>
1875<P>
1876<DD><DL>
1877</DL>
1878</DD>
1879<DD><DL>
1880
1881<DT><B>Throws:</B>
1882<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>
1883</DD>
1884</DL>
1885<HR>
1886
1887<A NAME="isFile(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1888isFile</H3>
1889<PRE>
1890public boolean <B>isFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1891               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>
1892<DL>
1893<DD>True iff the named path is a regular file.
1894<P>
1895<DD><DL>
1896</DL>
1897</DD>
1898<DD><DL>
1899
1900<DT><B>Throws:</B>
1901<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>
1902</DD>
1903</DL>
1904<HR>
1905
1906<A NAME="getLength(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1907getLength</H3>
1908<PRE>
1909<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
1910</FONT>public long <B>getLength</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1911               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>
1912<DL>
1913<DD><B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I>
1914<P>
1915<DD><DL>
1916</DL>
1917</DD>
1918<DD><DL>
1919
1920<DT><B>Throws:</B>
1921<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>
1922</DD>
1923</DL>
1924<HR>
1925
1926<A NAME="getContentSummary(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1927getContentSummary</H3>
1928<PRE>
1929public <A HREF="../../../../org/apache/hadoop/fs/ContentSummary.html" title="class in org.apache.hadoop.fs">ContentSummary</A> <B>getContentSummary</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1930                                 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>
1931<DL>
1932<DD>Return the <A HREF="../../../../org/apache/hadoop/fs/ContentSummary.html" title="class in org.apache.hadoop.fs"><CODE>ContentSummary</CODE></A> of a given <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs"><CODE>Path</CODE></A>.
1933<P>
1934<DD><DL>
1935</DL>
1936</DD>
1937<DD><DL>
1938
1939<DT><B>Throws:</B>
1940<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>
1941</DD>
1942</DL>
1943<HR>
1944
1945<A NAME="listStatus(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
1946listStatus</H3>
1947<PRE>
1948public abstract <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>listStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
1949                                 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>
1950<DL>
1951<DD>List the statuses of the files/directories in the given path if the path is
1952 a directory.
1953<P>
1954<DD><DL>
1955</DL>
1956</DD>
1957<DD><DL>
1958<DT><B>Parameters:</B><DD><CODE>f</CODE> - given path
1959<DT><B>Returns:</B><DD>the statuses of the files/directories in the given patch
1960<DT><B>Throws:</B>
1961<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>
1962</DD>
1963</DL>
1964<HR>
1965
1966<A NAME="listStatus(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.PathFilter)"><!-- --></A><H3>
1967listStatus</H3>
1968<PRE>
1969public <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>listStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
1970                               <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)
1971                        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>
1972<DL>
1973<DD>Filter files/directories in the given path using the user-supplied path
1974 filter.
1975<P>
1976<DD><DL>
1977</DL>
1978</DD>
1979<DD><DL>
1980<DT><B>Parameters:</B><DD><CODE>f</CODE> - a path name<DD><CODE>filter</CODE> - the user-supplied path filter
1981<DT><B>Returns:</B><DD>an array of FileStatus objects for the files under the given path
1982         after applying the filter
1983<DT><B>Throws:</B>
1984<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> - if encounter any problem while fetching the status</DL>
1985</DD>
1986</DL>
1987<HR>
1988
1989<A NAME="listStatus(org.apache.hadoop.fs.Path[])"><!-- --></A><H3>
1990listStatus</H3>
1991<PRE>
1992public <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>listStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;files)
1993                        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>
1994<DL>
1995<DD>Filter files/directories in the given list of paths using default
1996 path filter.
1997<P>
1998<DD><DL>
1999</DL>
2000</DD>
2001<DD><DL>
2002<DT><B>Parameters:</B><DD><CODE>files</CODE> - a list of paths
2003<DT><B>Returns:</B><DD>a list of statuses for the files under the given paths after
2004         applying the filter default Path filter
2005<DT><B>Throws:</B>
2006<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>
2007</DD>
2008</DL>
2009<HR>
2010
2011<A NAME="listStatus(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.PathFilter)"><!-- --></A><H3>
2012listStatus</H3>
2013<PRE>
2014public <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>listStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;files,
2015                               <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)
2016                        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>
2017<DL>
2018<DD>Filter files/directories in the given list of paths using user-supplied
2019 path filter.
2020<P>
2021<DD><DL>
2022</DL>
2023</DD>
2024<DD><DL>
2025<DT><B>Parameters:</B><DD><CODE>files</CODE> - a list of paths<DD><CODE>filter</CODE> - the user-supplied path filter
2026<DT><B>Returns:</B><DD>a list of statuses for the files under the given paths after
2027         applying the filter
2028<DT><B>Throws:</B>
2029<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>
2030</DD>
2031</DL>
2032<HR>
2033
2034<A NAME="globStatus(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2035globStatus</H3>
2036<PRE>
2037public <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>globStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;pathPattern)
2038                        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>
2039<DL>
2040<DD><p>Return all the files that match filePattern and are not checksum
2041 files. Results are sorted by their names.
2042 
2043 <p>
2044 A filename pattern is composed of <i>regular</i> characters and
2045 <i>special pattern matching</i> characters, which are:
2046
2047 <dl>
2048  <dd>
2049   <dl>
2050    <p>
2051    <dt> <tt> ? </tt>
2052    <dd> Matches any single character.
2053
2054    <p>
2055    <dt> <tt> * </tt>
2056    <dd> Matches zero or more characters.
2057
2058    <p>
2059    <dt> <tt> [<i>abc</i>] </tt>
2060    <dd> Matches a single character from character set
2061     <tt>{<i>a,b,c</i>}</tt>.
2062
2063    <p>
2064    <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
2065    <dd> Matches a single character from the character range
2066     <tt>{<i>a...b</i>}</tt>.  Note that character <tt><i>a</i></tt> must be
2067     lexicographically less than or equal to character <tt><i>b</i></tt>.
2068
2069    <p>
2070    <dt> <tt> [^<i>a</i>] </tt>
2071    <dd> Matches a single character that is not from character set or range
2072     <tt>{<i>a</i>}</tt>.  Note that the <tt>^</tt> character must occur
2073     immediately to the right of the opening bracket.
2074
2075    <p>
2076    <dt> <tt> \<i>c</i> </tt>
2077    <dd> Removes (escapes) any special meaning of character <i>c</i>.
2078
2079    <p>
2080    <dt> <tt> {ab,cd} </tt>
2081    <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
2082   
2083    <p>
2084    <dt> <tt> {ab,c{de,fh}} </tt>
2085    <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
2086
2087   </dl>
2088  </dd>
2089 </dl>
2090<P>
2091<DD><DL>
2092</DL>
2093</DD>
2094<DD><DL>
2095<DT><B>Parameters:</B><DD><CODE>pathPattern</CODE> - a regular expression specifying a pth pattern
2096<DT><B>Returns:</B><DD>an array of paths that match the path pattern
2097<DT><B>Throws:</B>
2098<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>
2099</DD>
2100</DL>
2101<HR>
2102
2103<A NAME="globStatus(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.PathFilter)"><!-- --></A><H3>
2104globStatus</H3>
2105<PRE>
2106public <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A>[] <B>globStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;pathPattern,
2107                               <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A>&nbsp;filter)
2108                        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>
2109<DL>
2110<DD>Return an array of FileStatus objects whose path names match pathPattern
2111 and is accepted by the user-supplied path filter. Results are sorted by
2112 their path names.
2113 Return null if pathPattern has no glob and the path does not exist.
2114 Return an empty array if pathPattern has a glob and no path matches it.
2115<P>
2116<DD><DL>
2117</DL>
2118</DD>
2119<DD><DL>
2120<DT><B>Parameters:</B><DD><CODE>pathPattern</CODE> - a regular expression specifying the path pattern<DD><CODE>filter</CODE> - a user-supplied path filter
2121<DT><B>Returns:</B><DD>an array of FileStatus objects
2122<DT><B>Throws:</B>
2123<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> - if any I/O error occurs when fetching file status</DL>
2124</DD>
2125</DL>
2126<HR>
2127
2128<A NAME="getHomeDirectory()"><!-- --></A><H3>
2129getHomeDirectory</H3>
2130<PRE>
2131public <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>getHomeDirectory</B>()</PRE>
2132<DL>
2133<DD>Return the current user's home directory in this filesystem.
2134 The default implementation returns "/user/$USER/".
2135<P>
2136<DD><DL>
2137</DL>
2138</DD>
2139<DD><DL>
2140</DL>
2141</DD>
2142</DL>
2143<HR>
2144
2145<A NAME="setWorkingDirectory(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2146setWorkingDirectory</H3>
2147<PRE>
2148public abstract void <B>setWorkingDirectory</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;new_dir)</PRE>
2149<DL>
2150<DD>Set the current working directory for the given file system. All relative
2151 paths will be resolved relative to it.
2152<P>
2153<DD><DL>
2154</DL>
2155</DD>
2156<DD><DL>
2157<DT><B>Parameters:</B><DD><CODE>new_dir</CODE> - </DL>
2158</DD>
2159</DL>
2160<HR>
2161
2162<A NAME="getWorkingDirectory()"><!-- --></A><H3>
2163getWorkingDirectory</H3>
2164<PRE>
2165public abstract <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>getWorkingDirectory</B>()</PRE>
2166<DL>
2167<DD>Get the current working directory for the given file system
2168<P>
2169<DD><DL>
2170</DL>
2171</DD>
2172<DD><DL>
2173
2174<DT><B>Returns:</B><DD>the directory pathname</DL>
2175</DD>
2176</DL>
2177<HR>
2178
2179<A NAME="mkdirs(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2180mkdirs</H3>
2181<PRE>
2182public boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
2183               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>
2184<DL>
2185<DD>Call <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#mkdirs(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><CODE>mkdirs(Path, FsPermission)</CODE></A> with default permission.
2186<P>
2187<DD><DL>
2188</DL>
2189</DD>
2190<DD><DL>
2191
2192<DT><B>Throws:</B>
2193<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>
2194</DD>
2195</DL>
2196<HR>
2197
2198<A NAME="mkdirs(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><!-- --></A><H3>
2199mkdirs</H3>
2200<PRE>
2201public abstract boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f,
2202                               <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)
2203                        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>
2204<DL>
2205<DD>Make the given file and all non-existent parents into
2206 directories. Has the semantics of Unix 'mkdir -p'.
2207 Existence of the directory hierarchy is not an error.
2208<P>
2209<DD><DL>
2210</DL>
2211</DD>
2212<DD><DL>
2213
2214<DT><B>Throws:</B>
2215<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>
2216</DD>
2217</DL>
2218<HR>
2219
2220<A NAME="copyFromLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2221copyFromLocalFile</H3>
2222<PRE>
2223public void <B>copyFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2224                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2225                       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>
2226<DL>
2227<DD>The src file is on the local disk.  Add it to FS at
2228 the given dst name and the source is kept intact afterwards
2229<P>
2230<DD><DL>
2231</DL>
2232</DD>
2233<DD><DL>
2234
2235<DT><B>Throws:</B>
2236<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>
2237</DD>
2238</DL>
2239<HR>
2240
2241<A NAME="moveFromLocalFile(org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2242moveFromLocalFile</H3>
2243<PRE>
2244public void <B>moveFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;srcs,
2245                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2246                       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>
2247<DL>
2248<DD>The src files is on the local disk.  Add it to FS at
2249 the given dst name, removing the source afterwards.
2250<P>
2251<DD><DL>
2252</DL>
2253</DD>
2254<DD><DL>
2255
2256<DT><B>Throws:</B>
2257<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>
2258</DD>
2259</DL>
2260<HR>
2261
2262<A NAME="moveFromLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2263moveFromLocalFile</H3>
2264<PRE>
2265public void <B>moveFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2266                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2267                       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>
2268<DL>
2269<DD>The src file is on the local disk.  Add it to FS at
2270 the given dst name, removing the source afterwards.
2271<P>
2272<DD><DL>
2273</DL>
2274</DD>
2275<DD><DL>
2276
2277<DT><B>Throws:</B>
2278<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>
2279</DD>
2280</DL>
2281<HR>
2282
2283<A NAME="copyFromLocalFile(boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2284copyFromLocalFile</H3>
2285<PRE>
2286public void <B>copyFromLocalFile</B>(boolean&nbsp;delSrc,
2287                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2288                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2289                       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>
2290<DL>
2291<DD>The src file is on the local disk.  Add it to FS at
2292 the given dst name.
2293 delSrc indicates if the source should be removed
2294<P>
2295<DD><DL>
2296</DL>
2297</DD>
2298<DD><DL>
2299
2300<DT><B>Throws:</B>
2301<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>
2302</DD>
2303</DL>
2304<HR>
2305
2306<A NAME="copyFromLocalFile(boolean, boolean, org.apache.hadoop.fs.Path[], org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2307copyFromLocalFile</H3>
2308<PRE>
2309public void <B>copyFromLocalFile</B>(boolean&nbsp;delSrc,
2310                              boolean&nbsp;overwrite,
2311                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]&nbsp;srcs,
2312                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2313                       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>
2314<DL>
2315<DD>The src files are on the local disk.  Add it to FS at
2316 the given dst name.
2317 delSrc indicates if the source should be removed
2318<P>
2319<DD><DL>
2320</DL>
2321</DD>
2322<DD><DL>
2323
2324<DT><B>Throws:</B>
2325<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>
2326</DD>
2327</DL>
2328<HR>
2329
2330<A NAME="copyFromLocalFile(boolean, boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2331copyFromLocalFile</H3>
2332<PRE>
2333public void <B>copyFromLocalFile</B>(boolean&nbsp;delSrc,
2334                              boolean&nbsp;overwrite,
2335                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2336                              <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2337                       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>
2338<DL>
2339<DD>The src file is on the local disk.  Add it to FS at
2340 the given dst name.
2341 delSrc indicates if the source should be removed
2342<P>
2343<DD><DL>
2344</DL>
2345</DD>
2346<DD><DL>
2347
2348<DT><B>Throws:</B>
2349<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>
2350</DD>
2351</DL>
2352<HR>
2353
2354<A NAME="copyToLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2355copyToLocalFile</H3>
2356<PRE>
2357public void <B>copyToLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2358                            <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2359                     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>
2360<DL>
2361<DD>The src file is under FS, and the dst is on the local disk.
2362 Copy it from FS control to the local dst name.
2363<P>
2364<DD><DL>
2365</DL>
2366</DD>
2367<DD><DL>
2368
2369<DT><B>Throws:</B>
2370<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>
2371</DD>
2372</DL>
2373<HR>
2374
2375<A NAME="moveToLocalFile(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2376moveToLocalFile</H3>
2377<PRE>
2378public void <B>moveToLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2379                            <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2380                     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>
2381<DL>
2382<DD>The src file is under FS, and the dst is on the local disk.
2383 Copy it from FS control to the local dst name.
2384 Remove the source afterwards
2385<P>
2386<DD><DL>
2387</DL>
2388</DD>
2389<DD><DL>
2390
2391<DT><B>Throws:</B>
2392<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>
2393</DD>
2394</DL>
2395<HR>
2396
2397<A NAME="copyToLocalFile(boolean, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2398copyToLocalFile</H3>
2399<PRE>
2400public void <B>copyToLocalFile</B>(boolean&nbsp;delSrc,
2401                            <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;src,
2402                            <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;dst)
2403                     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>
2404<DL>
2405<DD>The src file is under FS, and the dst is on the local disk.
2406 Copy it from FS control to the local dst name.
2407 delSrc indicates if the src will be removed or not.
2408<P>
2409<DD><DL>
2410</DL>
2411</DD>
2412<DD><DL>
2413
2414<DT><B>Throws:</B>
2415<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>
2416</DD>
2417</DL>
2418<HR>
2419
2420<A NAME="startLocalOutput(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2421startLocalOutput</H3>
2422<PRE>
2423public <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>startLocalOutput</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;fsOutputFile,
2424                             <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;tmpLocalFile)
2425                      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>
2426<DL>
2427<DD>Returns a local File that the user can write output to.  The caller
2428 provides both the eventual FS target name and the local working
2429 file.  If the FS is local, we write directly into the target.  If
2430 the FS is remote, we write into the tmp local area.
2431<P>
2432<DD><DL>
2433</DL>
2434</DD>
2435<DD><DL>
2436
2437<DT><B>Throws:</B>
2438<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>
2439</DD>
2440</DL>
2441<HR>
2442
2443<A NAME="completeLocalOutput(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2444completeLocalOutput</H3>
2445<PRE>
2446public void <B>completeLocalOutput</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;fsOutputFile,
2447                                <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;tmpLocalFile)
2448                         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>
2449<DL>
2450<DD>Called when we're all done writing to the target.  A local FS will
2451 do nothing, because we've written to exactly the right place.  A remote
2452 FS will copy the contents of tmpLocalFile to the correct target at
2453 fsOutputFile.
2454<P>
2455<DD><DL>
2456</DL>
2457</DD>
2458<DD><DL>
2459
2460<DT><B>Throws:</B>
2461<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>
2462</DD>
2463</DL>
2464<HR>
2465
2466<A NAME="close()"><!-- --></A><H3>
2467close</H3>
2468<PRE>
2469public void <B>close</B>()
2470           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>
2471<DL>
2472<DD>No more filesystem operations are needed.  Will
2473 release any held locks.
2474<P>
2475<DD><DL>
2476<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A></CODE></DL>
2477</DD>
2478<DD><DL>
2479
2480<DT><B>Throws:</B>
2481<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>
2482</DD>
2483</DL>
2484<HR>
2485
2486<A NAME="getUsed()"><!-- --></A><H3>
2487getUsed</H3>
2488<PRE>
2489public long <B>getUsed</B>()
2490             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>
2491<DL>
2492<DD>Return the total size of all files in the filesystem.
2493<P>
2494<DD><DL>
2495</DL>
2496</DD>
2497<DD><DL>
2498
2499<DT><B>Throws:</B>
2500<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>
2501</DD>
2502</DL>
2503<HR>
2504
2505<A NAME="getBlockSize(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2506getBlockSize</H3>
2507<PRE>
2508<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
2509</FONT>public long <B>getBlockSize</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
2510                  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>
2511<DL>
2512<DD><B>Deprecated.</B>&nbsp;<I>Use getFileStatus() instead</I>
2513<P>
2514<DD><DL>
2515</DL>
2516</DD>
2517<DD><DL>
2518
2519<DT><B>Throws:</B>
2520<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>
2521</DD>
2522</DL>
2523<HR>
2524
2525<A NAME="getDefaultBlockSize()"><!-- --></A><H3>
2526getDefaultBlockSize</H3>
2527<PRE>
2528public long <B>getDefaultBlockSize</B>()</PRE>
2529<DL>
2530<DD>Return the number of bytes that large input files should be optimally
2531 be split into to minimize i/o time.
2532<P>
2533<DD><DL>
2534</DL>
2535</DD>
2536<DD><DL>
2537</DL>
2538</DD>
2539</DL>
2540<HR>
2541
2542<A NAME="getDefaultReplication()"><!-- --></A><H3>
2543getDefaultReplication</H3>
2544<PRE>
2545public short <B>getDefaultReplication</B>()</PRE>
2546<DL>
2547<DD>Get the default replication.
2548<P>
2549<DD><DL>
2550</DL>
2551</DD>
2552<DD><DL>
2553</DL>
2554</DD>
2555</DL>
2556<HR>
2557
2558<A NAME="getFileStatus(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2559getFileStatus</H3>
2560<PRE>
2561public abstract <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs">FileStatus</A> <B>getFileStatus</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
2562                                  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>
2563<DL>
2564<DD>Return a file status object that represents the path.
2565<P>
2566<DD><DL>
2567</DL>
2568</DD>
2569<DD><DL>
2570<DT><B>Parameters:</B><DD><CODE>f</CODE> - The path we want information from
2571<DT><B>Returns:</B><DD>a FileStatus object
2572<DT><B>Throws:</B>
2573<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE> - when the path does not exist;
2574         IOException see specific implementation
2575<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>
2576</DD>
2577</DL>
2578<HR>
2579
2580<A NAME="getFileChecksum(org.apache.hadoop.fs.Path)"><!-- --></A><H3>
2581getFileChecksum</H3>
2582<PRE>
2583public <A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs">FileChecksum</A> <B>getFileChecksum</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;f)
2584                             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>
2585<DL>
2586<DD>Get the checksum of a file.
2587<P>
2588<DD><DL>
2589</DL>
2590</DD>
2591<DD><DL>
2592<DT><B>Parameters:</B><DD><CODE>f</CODE> - The file path
2593<DT><B>Returns:</B><DD>The file checksum.  The default return value is null,
2594  which indicates that no checksum algorithm is implemented
2595  in the corresponding FileSystem.
2596<DT><B>Throws:</B>
2597<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>
2598</DD>
2599</DL>
2600<HR>
2601
2602<A NAME="setVerifyChecksum(boolean)"><!-- --></A><H3>
2603setVerifyChecksum</H3>
2604<PRE>
2605public void <B>setVerifyChecksum</B>(boolean&nbsp;verifyChecksum)</PRE>
2606<DL>
2607<DD>Set the verify checksum flag. This is only applicable if the
2608 corresponding FileSystem supports checksum. By default doesn't do anything.
2609<P>
2610<DD><DL>
2611</DL>
2612</DD>
2613<DD><DL>
2614<DT><B>Parameters:</B><DD><CODE>verifyChecksum</CODE> - </DL>
2615</DD>
2616</DL>
2617<HR>
2618
2619<A NAME="setPermission(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.permission.FsPermission)"><!-- --></A><H3>
2620setPermission</H3>
2621<PRE>
2622public void <B>setPermission</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
2623                          <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)
2624                   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>
2625<DL>
2626<DD>Set permission of a path.
2627<P>
2628<DD><DL>
2629</DL>
2630</DD>
2631<DD><DL>
2632<DT><B>Parameters:</B><DD><CODE>p</CODE> - <DD><CODE>permission</CODE> -
2633<DT><B>Throws:</B>
2634<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>
2635</DD>
2636</DL>
2637<HR>
2638
2639<A NAME="setOwner(org.apache.hadoop.fs.Path, java.lang.String, java.lang.String)"><!-- --></A><H3>
2640setOwner</H3>
2641<PRE>
2642public void <B>setOwner</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
2643                     <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;username,
2644                     <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;groupname)
2645              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>
2646<DL>
2647<DD>Set owner of a path (i.e. a file or a directory).
2648 The parameters username and groupname cannot both be null.
2649<P>
2650<DD><DL>
2651</DL>
2652</DD>
2653<DD><DL>
2654<DT><B>Parameters:</B><DD><CODE>p</CODE> - The path<DD><CODE>username</CODE> - If it is null, the original username remains unchanged.<DD><CODE>groupname</CODE> - If it is null, the original groupname remains unchanged.
2655<DT><B>Throws:</B>
2656<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>
2657</DD>
2658</DL>
2659<HR>
2660
2661<A NAME="setTimes(org.apache.hadoop.fs.Path, long, long)"><!-- --></A><H3>
2662setTimes</H3>
2663<PRE>
2664public void <B>setTimes</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;p,
2665                     long&nbsp;mtime,
2666                     long&nbsp;atime)
2667              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>
2668<DL>
2669<DD>Set access time of a file
2670<P>
2671<DD><DL>
2672</DL>
2673</DD>
2674<DD><DL>
2675<DT><B>Parameters:</B><DD><CODE>p</CODE> - The path<DD><CODE>mtime</CODE> - Set the modification time of this file.
2676              The number of milliseconds since Jan 1, 1970.
2677              A value of -1 means that this call should not set modification time.<DD><CODE>atime</CODE> - Set the access time of this file.
2678              The number of milliseconds since Jan 1, 1970.
2679              A value of -1 means that this call should not set access time.
2680<DT><B>Throws:</B>
2681<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>
2682</DD>
2683</DL>
2684<HR>
2685
2686<A NAME="getStatistics()"><!-- --></A><H3>
2687getStatistics</H3>
2688<PRE>
2689public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>&gt; <B>getStatistics</B>()</PRE>
2690<DL>
2691<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getAllStatistics()"><CODE>getAllStatistics()</CODE></A> instead</I>
2692<P>
2693<DD>Get the Map of Statistics object indexed by URI Scheme.
2694<P>
2695<DD><DL>
2696</DL>
2697</DD>
2698<DD><DL>
2699
2700<DT><B>Returns:</B><DD>a Map having a key as URI scheme and value as Statistics object</DL>
2701</DD>
2702</DL>
2703<HR>
2704
2705<A NAME="getAllStatistics()"><!-- --></A><H3>
2706getAllStatistics</H3>
2707<PRE>
2708public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>&gt; <B>getAllStatistics</B>()</PRE>
2709<DL>
2710<DD>Return the FileSystem classes that have Statistics
2711<P>
2712<DD><DL>
2713</DL>
2714</DD>
2715<DD><DL>
2716</DL>
2717</DD>
2718</DL>
2719<HR>
2720
2721<A NAME="getStatistics(java.lang.String, java.lang.Class)"><!-- --></A><H3>
2722getStatistics</H3>
2723<PRE>
2724public static <A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A> <B>getStatistics</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;scheme,
2725                                                  <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 <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>&gt;&nbsp;cls)</PRE>
2726<DL>
2727<DD>Get the statistics for a particular file system
2728<P>
2729<DD><DL>
2730</DL>
2731</DD>
2732<DD><DL>
2733<DT><B>Parameters:</B><DD><CODE>cls</CODE> - the class to lookup
2734<DT><B>Returns:</B><DD>a statistics object</DL>
2735</DD>
2736</DL>
2737<HR>
2738
2739<A NAME="clearStatistics()"><!-- --></A><H3>
2740clearStatistics</H3>
2741<PRE>
2742public static void <B>clearStatistics</B>()</PRE>
2743<DL>
2744<DD><DL>
2745</DL>
2746</DD>
2747<DD><DL>
2748</DL>
2749</DD>
2750</DL>
2751<HR>
2752
2753<A NAME="printStatistics()"><!-- --></A><H3>
2754printStatistics</H3>
2755<PRE>
2756public static void <B>printStatistics</B>()
2757                            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>
2758<DL>
2759<DD><DL>
2760</DL>
2761</DD>
2762<DD><DL>
2763
2764<DT><B>Throws:</B>
2765<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>
2766</DD>
2767</DL>
2768<!-- ========= END OF CLASS DATA ========= -->
2769<HR>
2770
2771
2772<!-- ======= START OF BOTTOM NAVBAR ====== -->
2773<A NAME="navbar_bottom"><!-- --></A>
2774<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
2775<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
2776<TR>
2777<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
2778<A NAME="navbar_bottom_firstrow"><!-- --></A>
2779<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
2780  <TR ALIGN="center" VALIGN="top">
2781  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
2782  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
2783  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
2784  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FileSystem.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
2785  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
2786  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
2787  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
2788  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
2789  </TR>
2790</TABLE>
2791</TD>
2792<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
2793</EM>
2794</TD>
2795</TR>
2796
2797<TR>
2798<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2799&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
2800&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
2801<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2802  <A HREF="../../../../index.html?org/apache/hadoop/fs/FileSystem.html" target="_top"><B>FRAMES</B></A>  &nbsp;
2803&nbsp;<A HREF="FileSystem.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
2804&nbsp;<SCRIPT type="text/javascript">
2805  <!--
2806  if(window==top) {
2807    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
2808  }
2809  //-->
2810</SCRIPT>
2811<NOSCRIPT>
2812  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
2813</NOSCRIPT>
2814
2815
2816</FONT></TD>
2817</TR>
2818<TR>
2819<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2820  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
2821<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2822DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
2823</TR>
2824</TABLE>
2825<A NAME="skip-navbar_bottom"></A>
2826<!-- ======== END OF BOTTOM NAVBAR ======= -->
2827
2828<HR>
2829Copyright &copy; 2009 The Apache Software Foundation
2830</BODY>
2831</HTML>
Note: See TracBrowser for help on using the repository browser.