[120] | 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> |
---|
| 7 | FileSystem (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"> |
---|
| 15 | function 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> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileSystem.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A> |
---|
| 59 | <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> |
---|
| 62 | <A HREF="FileSystem.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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"> |
---|
| 91 | org.apache.hadoop.fs</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class 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> |
---|
| 111 | An 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 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 | </TD> |
---|
| 148 | </TR> |
---|
| 149 | </TABLE> |
---|
| 150 | <!-- =========== 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 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 | </TD> |
---|
| 165 | </TR> |
---|
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 168 | <CODE>protected <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 | The statistics for this file system.</TD> |
---|
| 173 | </TR> |
---|
| 174 | </TABLE> |
---|
| 175 | |
---|
| 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 | </TD> |
---|
| 191 | </TR> |
---|
| 192 | </TABLE> |
---|
| 193 | |
---|
| 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> <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> f)</CODE> |
---|
| 206 | |
---|
| 207 | <BR> |
---|
| 208 | 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> <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> f, |
---|
| 214 | int bufferSize)</CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | 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 <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> f, |
---|
| 223 | int bufferSize, |
---|
| 224 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 225 | |
---|
| 226 | <BR> |
---|
| 227 | 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 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> path)</CODE> |
---|
| 233 | |
---|
| 234 | <BR> |
---|
| 235 | 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 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 | </TD> |
---|
| 244 | </TR> |
---|
| 245 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 247 | <CODE> 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 | 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 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 | 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> 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> fsOutputFile, |
---|
| 265 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpLocalFile)</CODE> |
---|
| 266 | |
---|
| 267 | <BR> |
---|
| 268 | 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> 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 delSrc, |
---|
| 274 | boolean overwrite, |
---|
| 275 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] srcs, |
---|
| 276 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 277 | |
---|
| 278 | <BR> |
---|
| 279 | 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> 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 delSrc, |
---|
| 285 | boolean overwrite, |
---|
| 286 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 287 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 288 | |
---|
| 289 | <BR> |
---|
| 290 | 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> 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 delSrc, |
---|
| 296 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 297 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 298 | |
---|
| 299 | <BR> |
---|
| 300 | 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> 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> src, |
---|
| 306 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 307 | |
---|
| 308 | <BR> |
---|
| 309 | 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> 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 delSrc, |
---|
| 315 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 316 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 317 | |
---|
| 318 | <BR> |
---|
| 319 | 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> 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> src, |
---|
| 325 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 326 | |
---|
| 327 | <BR> |
---|
| 328 | 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 <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> fs, |
---|
| 334 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> file, |
---|
| 335 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission)</CODE> |
---|
| 336 | |
---|
| 337 | <BR> |
---|
| 338 | 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> <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> f)</CODE> |
---|
| 348 | |
---|
| 349 | <BR> |
---|
| 350 | 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> <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> f, |
---|
| 356 | boolean overwrite)</CODE> |
---|
| 357 | |
---|
| 358 | <BR> |
---|
| 359 | 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> <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> f, |
---|
| 365 | boolean overwrite, |
---|
| 366 | int bufferSize)</CODE> |
---|
| 367 | |
---|
| 368 | <BR> |
---|
| 369 | 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> <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> f, |
---|
| 375 | boolean overwrite, |
---|
| 376 | int bufferSize, |
---|
| 377 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 378 | |
---|
| 379 | <BR> |
---|
| 380 | 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> <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> f, |
---|
| 387 | boolean overwrite, |
---|
| 388 | int bufferSize, |
---|
| 389 | short replication, |
---|
| 390 | long blockSize)</CODE> |
---|
| 391 | |
---|
| 392 | <BR> |
---|
| 393 | 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> <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> f, |
---|
| 399 | boolean overwrite, |
---|
| 400 | int bufferSize, |
---|
| 401 | short replication, |
---|
| 402 | long blockSize, |
---|
| 403 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 404 | |
---|
| 405 | <BR> |
---|
| 406 | 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 <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> f, |
---|
| 413 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission, |
---|
| 414 | boolean overwrite, |
---|
| 415 | int bufferSize, |
---|
| 416 | short replication, |
---|
| 417 | long blockSize, |
---|
| 418 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 419 | |
---|
| 420 | <BR> |
---|
| 421 | 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> <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> f, |
---|
| 428 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 429 | |
---|
| 430 | <BR> |
---|
| 431 | 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> <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> f, |
---|
| 438 | short replication)</CODE> |
---|
| 439 | |
---|
| 440 | <BR> |
---|
| 441 | 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> <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> f, |
---|
| 447 | short replication, |
---|
| 448 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> progress)</CODE> |
---|
| 449 | |
---|
| 450 | <BR> |
---|
| 451 | 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> 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> f)</CODE> |
---|
| 458 | |
---|
| 459 | <BR> |
---|
| 460 | 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 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> f)</CODE> |
---|
| 466 | |
---|
| 467 | <BR> |
---|
| 468 | <B>Deprecated.</B> <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 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> f, |
---|
| 474 | boolean recursive)</CODE> |
---|
| 475 | |
---|
| 476 | <BR> |
---|
| 477 | 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> 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> f)</CODE> |
---|
| 483 | |
---|
| 484 | <BR> |
---|
| 485 | 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> 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> f)</CODE> |
---|
| 491 | |
---|
| 492 | <BR> |
---|
| 493 | 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 <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> conf)</CODE> |
---|
| 499 | |
---|
| 500 | <BR> |
---|
| 501 | 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 <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> uri, |
---|
| 507 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 508 | |
---|
| 509 | <BR> |
---|
| 510 | 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 <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><<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>></CODE></FONT></TD> |
---|
| 515 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getAllStatistics()">getAllStatistics</A></B>()</CODE> |
---|
| 516 | |
---|
| 517 | <BR> |
---|
| 518 | 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> 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> f)</CODE> |
---|
| 524 | |
---|
| 525 | <BR> |
---|
| 526 | <B>Deprecated.</B> <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> <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> f)</CODE> |
---|
| 532 | |
---|
| 533 | <BR> |
---|
| 534 | 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> 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 | 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> 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 | 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 <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> conf)</CODE> |
---|
| 557 | |
---|
| 558 | <BR> |
---|
| 559 | 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> <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> file, |
---|
| 565 | long start, |
---|
| 566 | long len)</CODE> |
---|
| 567 | |
---|
| 568 | <BR> |
---|
| 569 | 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> <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> f)</CODE> |
---|
| 576 | |
---|
| 577 | <BR> |
---|
| 578 | 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 <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> f)</CODE> |
---|
| 584 | |
---|
| 585 | <BR> |
---|
| 586 | 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> <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 | 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> 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> f)</CODE> |
---|
| 600 | |
---|
| 601 | <BR> |
---|
| 602 | <B>Deprecated.</B> <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 <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> conf)</CODE> |
---|
| 608 | |
---|
| 609 | <BR> |
---|
| 610 | 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> <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 | <B>Deprecated.</B> <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 <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> name, |
---|
| 624 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 625 | |
---|
| 626 | <BR> |
---|
| 627 | <B>Deprecated.</B> <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> 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> src)</CODE> |
---|
| 633 | |
---|
| 634 | <BR> |
---|
| 635 | <B>Deprecated.</B> <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 <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><<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>></CODE></FONT></TD> |
---|
| 640 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#getStatistics()">getStatistics</A></B>()</CODE> |
---|
| 641 | |
---|
| 642 | <BR> |
---|
| 643 | <B>Deprecated.</B> <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 <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> 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><? extends <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>> cls)</CODE> |
---|
| 650 | |
---|
| 651 | <BR> |
---|
| 652 | 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 <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 | 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> 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 | 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 <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 | 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> <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> pathPattern)</CODE> |
---|
| 682 | |
---|
| 683 | <BR> |
---|
| 684 | 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> <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> pathPattern, |
---|
| 691 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> filter)</CODE> |
---|
| 692 | |
---|
| 693 | <BR> |
---|
| 694 | 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> 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> name, |
---|
| 701 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 702 | |
---|
| 703 | <BR> |
---|
| 704 | 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> 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> f)</CODE> |
---|
| 710 | |
---|
| 711 | <BR> |
---|
| 712 | <B>Deprecated.</B> <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> 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> f)</CODE> |
---|
| 718 | |
---|
| 719 | <BR> |
---|
| 720 | 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 <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> f)</CODE> |
---|
| 726 | |
---|
| 727 | <BR> |
---|
| 728 | 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> <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>[] files)</CODE> |
---|
| 735 | |
---|
| 736 | <BR> |
---|
| 737 | 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> <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>[] files, |
---|
| 744 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> filter)</CODE> |
---|
| 745 | |
---|
| 746 | <BR> |
---|
| 747 | 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> <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> f, |
---|
| 754 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> filter)</CODE> |
---|
| 755 | |
---|
| 756 | <BR> |
---|
| 757 | 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> <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> path)</CODE> |
---|
| 764 | |
---|
| 765 | <BR> |
---|
| 766 | 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 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> fs, |
---|
| 772 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dir, |
---|
| 773 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission)</CODE> |
---|
| 774 | |
---|
| 775 | <BR> |
---|
| 776 | 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> 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> f)</CODE> |
---|
| 784 | |
---|
| 785 | <BR> |
---|
| 786 | 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 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> f, |
---|
| 792 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission)</CODE> |
---|
| 793 | |
---|
| 794 | <BR> |
---|
| 795 | 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> 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>[] srcs, |
---|
| 802 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 803 | |
---|
| 804 | <BR> |
---|
| 805 | 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> 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> src, |
---|
| 811 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 812 | |
---|
| 813 | <BR> |
---|
| 814 | 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> 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> src, |
---|
| 820 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 821 | |
---|
| 822 | <BR> |
---|
| 823 | 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> <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> f)</CODE> |
---|
| 829 | |
---|
| 830 | <BR> |
---|
| 831 | 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 <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> f, |
---|
| 837 | int bufferSize)</CODE> |
---|
| 838 | |
---|
| 839 | <BR> |
---|
| 840 | 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 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 | </TD> |
---|
| 849 | </TR> |
---|
| 850 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 851 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 852 | <CODE>protected 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 | 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 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> src, |
---|
| 862 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dst)</CODE> |
---|
| 863 | |
---|
| 864 | <BR> |
---|
| 865 | 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 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> 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> uri)</CODE> |
---|
| 872 | |
---|
| 873 | <BR> |
---|
| 874 | 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 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> 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> uri)</CODE> |
---|
| 881 | |
---|
| 882 | <BR> |
---|
| 883 | 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> 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> 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> 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> groupname)</CODE> |
---|
| 891 | |
---|
| 892 | <BR> |
---|
| 893 | 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> 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> p, |
---|
| 899 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission)</CODE> |
---|
| 900 | |
---|
| 901 | <BR> |
---|
| 902 | 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> 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> src, |
---|
| 908 | short replication)</CODE> |
---|
| 909 | |
---|
| 910 | <BR> |
---|
| 911 | 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> 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> p, |
---|
| 917 | long mtime, |
---|
| 918 | long atime)</CODE> |
---|
| 919 | |
---|
| 920 | <BR> |
---|
| 921 | 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> void</CODE></FONT></TD> |
---|
| 926 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileSystem.html#setVerifyChecksum(boolean)">setVerifyChecksum</A></B>(boolean verifyChecksum)</CODE> |
---|
| 927 | |
---|
| 928 | <BR> |
---|
| 929 | 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 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> new_dir)</CODE> |
---|
| 935 | |
---|
| 936 | <BR> |
---|
| 937 | 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> <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> fsOutputFile, |
---|
| 943 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> tmpLocalFile)</CODE> |
---|
| 944 | |
---|
| 945 | <BR> |
---|
| 946 | Returns a local File that the user can write output to.</TD> |
---|
| 947 | </TR> |
---|
| 948 | </TABLE> |
---|
| 949 | <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 | <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 | |
---|
| 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> |
---|
| 981 | LOG</H3> |
---|
| 982 | <PRE> |
---|
| 983 | public 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> |
---|
| 991 | statistics</H3> |
---|
| 992 | <PRE> |
---|
| 993 | protected <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> |
---|
| 1012 | FileSystem</H3> |
---|
| 1013 | <PRE> |
---|
| 1014 | protected <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> |
---|
| 1029 | get</H3> |
---|
| 1030 | <PRE> |
---|
| 1031 | public 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> 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> |
---|
| 1048 | getDefaultUri</H3> |
---|
| 1049 | <PRE> |
---|
| 1050 | public 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> 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> |
---|
| 1065 | setDefaultUri</H3> |
---|
| 1066 | <PRE> |
---|
| 1067 | public static void <B>setDefaultUri</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> 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> 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> |
---|
| 1082 | setDefaultUri</H3> |
---|
| 1083 | <PRE> |
---|
| 1084 | public static void <B>setDefaultUri</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> 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> 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> |
---|
| 1099 | initialize</H3> |
---|
| 1100 | <PRE> |
---|
| 1101 | public 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> name, |
---|
| 1102 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> 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> |
---|
| 1120 | getUri</H3> |
---|
| 1121 | <PRE> |
---|
| 1122 | public 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> |
---|
| 1136 | getName</H3> |
---|
| 1137 | <PRE> |
---|
| 1138 | public <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> <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> |
---|
| 1152 | getNamed</H3> |
---|
| 1153 | <PRE> |
---|
| 1154 | public 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> name, |
---|
| 1155 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> 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> <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> |
---|
| 1172 | getLocal</H3> |
---|
| 1173 | <PRE> |
---|
| 1174 | public 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> 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> |
---|
| 1192 | get</H3> |
---|
| 1193 | <PRE> |
---|
| 1194 | public 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> uri, |
---|
| 1195 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> 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> |
---|
| 1215 | closeAll</H3> |
---|
| 1216 | <PRE> |
---|
| 1217 | public 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> |
---|
| 1235 | makeQualified</H3> |
---|
| 1236 | <PRE> |
---|
| 1237 | public <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> 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> |
---|
| 1251 | create</H3> |
---|
| 1252 | <PRE> |
---|
| 1253 | public 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> fs, |
---|
| 1254 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> file, |
---|
| 1255 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> 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> |
---|
| 1279 | mkdirs</H3> |
---|
| 1280 | <PRE> |
---|
| 1281 | public static boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs, |
---|
| 1282 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dir, |
---|
| 1283 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> 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> |
---|
| 1303 | checkPath</H3> |
---|
| 1304 | <PRE> |
---|
| 1305 | protected void <B>checkPath</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1319 | getFileBlockLocations</H3> |
---|
| 1320 | <PRE> |
---|
| 1321 | public <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> file, |
---|
| 1322 | long start, |
---|
| 1323 | long 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> |
---|
| 1347 | open</H3> |
---|
| 1348 | <PRE> |
---|
| 1349 | public 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> f, |
---|
| 1350 | int 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> |
---|
| 1367 | open</H3> |
---|
| 1368 | <PRE> |
---|
| 1369 | public <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> 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> |
---|
| 1386 | create</H3> |
---|
| 1387 | <PRE> |
---|
| 1388 | public <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> 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> |
---|
| 1406 | create</H3> |
---|
| 1407 | <PRE> |
---|
| 1408 | public <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> f, |
---|
| 1409 | boolean 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> |
---|
| 1426 | create</H3> |
---|
| 1427 | <PRE> |
---|
| 1428 | public <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> f, |
---|
| 1429 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1448 | create</H3> |
---|
| 1449 | <PRE> |
---|
| 1450 | public <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> f, |
---|
| 1451 | short 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> |
---|
| 1469 | create</H3> |
---|
| 1470 | <PRE> |
---|
| 1471 | public <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> f, |
---|
| 1472 | short replication, |
---|
| 1473 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1492 | create</H3> |
---|
| 1493 | <PRE> |
---|
| 1494 | public <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> f, |
---|
| 1495 | boolean overwrite, |
---|
| 1496 | int 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> |
---|
| 1514 | create</H3> |
---|
| 1515 | <PRE> |
---|
| 1516 | public <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> f, |
---|
| 1517 | boolean overwrite, |
---|
| 1518 | int bufferSize, |
---|
| 1519 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1538 | create</H3> |
---|
| 1539 | <PRE> |
---|
| 1540 | public <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> f, |
---|
| 1541 | boolean overwrite, |
---|
| 1542 | int bufferSize, |
---|
| 1543 | short replication, |
---|
| 1544 | long 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> |
---|
| 1562 | create</H3> |
---|
| 1563 | <PRE> |
---|
| 1564 | public <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> f, |
---|
| 1565 | boolean overwrite, |
---|
| 1566 | int bufferSize, |
---|
| 1567 | short replication, |
---|
| 1568 | long blockSize, |
---|
| 1569 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1588 | create</H3> |
---|
| 1589 | <PRE> |
---|
| 1590 | public 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> f, |
---|
| 1591 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> permission, |
---|
| 1592 | boolean overwrite, |
---|
| 1593 | int bufferSize, |
---|
| 1594 | short replication, |
---|
| 1595 | long blockSize, |
---|
| 1596 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1615 | createNewFile</H3> |
---|
| 1616 | <PRE> |
---|
| 1617 | public boolean <B>createNewFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1635 | append</H3> |
---|
| 1636 | <PRE> |
---|
| 1637 | public <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> 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> |
---|
| 1655 | append</H3> |
---|
| 1656 | <PRE> |
---|
| 1657 | public <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> f, |
---|
| 1658 | int 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> |
---|
| 1676 | append</H3> |
---|
| 1677 | <PRE> |
---|
| 1678 | public 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> f, |
---|
| 1679 | int bufferSize, |
---|
| 1680 | <A HREF="../../../../org/apache/hadoop/util/Progressable.html" title="interface in org.apache.hadoop.util">Progressable</A> 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> |
---|
| 1697 | getReplication</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> 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> <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> |
---|
| 1720 | setReplication</H3> |
---|
| 1721 | <PRE> |
---|
| 1722 | public boolean <B>setReplication</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 1723 | short 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> |
---|
| 1742 | rename</H3> |
---|
| 1743 | <PRE> |
---|
| 1744 | public abstract boolean <B>rename</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 1745 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1763 | delete</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> 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> <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> |
---|
| 1783 | delete</H3> |
---|
| 1784 | <PRE> |
---|
| 1785 | public abstract boolean <B>delete</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> f, |
---|
| 1786 | boolean 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> |
---|
| 1806 | deleteOnExit</H3> |
---|
| 1807 | <PRE> |
---|
| 1808 | public boolean <B>deleteOnExit</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1832 | processDeleteOnExit</H3> |
---|
| 1833 | <PRE> |
---|
| 1834 | protected 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> |
---|
| 1849 | exists</H3> |
---|
| 1850 | <PRE> |
---|
| 1851 | public boolean <B>exists</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1868 | isDirectory</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> 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> <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> |
---|
| 1888 | isFile</H3> |
---|
| 1889 | <PRE> |
---|
| 1890 | public boolean <B>isFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 1907 | getLength</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> 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> <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> |
---|
| 1927 | getContentSummary</H3> |
---|
| 1928 | <PRE> |
---|
| 1929 | public <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> 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> |
---|
| 1946 | listStatus</H3> |
---|
| 1947 | <PRE> |
---|
| 1948 | public 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> 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> |
---|
| 1967 | listStatus</H3> |
---|
| 1968 | <PRE> |
---|
| 1969 | public <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> f, |
---|
| 1970 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> 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> |
---|
| 1990 | listStatus</H3> |
---|
| 1991 | <PRE> |
---|
| 1992 | public <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>[] 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> |
---|
| 2012 | listStatus</H3> |
---|
| 2013 | <PRE> |
---|
| 2014 | public <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>[] files, |
---|
| 2015 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> 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> |
---|
| 2035 | globStatus</H3> |
---|
| 2036 | <PRE> |
---|
| 2037 | public <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> 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> |
---|
| 2104 | globStatus</H3> |
---|
| 2105 | <PRE> |
---|
| 2106 | public <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> pathPattern, |
---|
| 2107 | <A HREF="../../../../org/apache/hadoop/fs/PathFilter.html" title="interface in org.apache.hadoop.fs">PathFilter</A> 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> |
---|
| 2129 | getHomeDirectory</H3> |
---|
| 2130 | <PRE> |
---|
| 2131 | public <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> |
---|
| 2146 | setWorkingDirectory</H3> |
---|
| 2147 | <PRE> |
---|
| 2148 | public abstract void <B>setWorkingDirectory</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2163 | getWorkingDirectory</H3> |
---|
| 2164 | <PRE> |
---|
| 2165 | public 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> |
---|
| 2180 | mkdirs</H3> |
---|
| 2181 | <PRE> |
---|
| 2182 | public boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2199 | mkdirs</H3> |
---|
| 2200 | <PRE> |
---|
| 2201 | public abstract boolean <B>mkdirs</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> f, |
---|
| 2202 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> 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> |
---|
| 2221 | copyFromLocalFile</H3> |
---|
| 2222 | <PRE> |
---|
| 2223 | public void <B>copyFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2224 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2242 | moveFromLocalFile</H3> |
---|
| 2243 | <PRE> |
---|
| 2244 | public void <B>moveFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] srcs, |
---|
| 2245 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2263 | moveFromLocalFile</H3> |
---|
| 2264 | <PRE> |
---|
| 2265 | public void <B>moveFromLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2266 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2284 | copyFromLocalFile</H3> |
---|
| 2285 | <PRE> |
---|
| 2286 | public void <B>copyFromLocalFile</B>(boolean delSrc, |
---|
| 2287 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2288 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2307 | copyFromLocalFile</H3> |
---|
| 2308 | <PRE> |
---|
| 2309 | public void <B>copyFromLocalFile</B>(boolean delSrc, |
---|
| 2310 | boolean overwrite, |
---|
| 2311 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] srcs, |
---|
| 2312 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2331 | copyFromLocalFile</H3> |
---|
| 2332 | <PRE> |
---|
| 2333 | public void <B>copyFromLocalFile</B>(boolean delSrc, |
---|
| 2334 | boolean overwrite, |
---|
| 2335 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2336 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2355 | copyToLocalFile</H3> |
---|
| 2356 | <PRE> |
---|
| 2357 | public void <B>copyToLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2358 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2376 | moveToLocalFile</H3> |
---|
| 2377 | <PRE> |
---|
| 2378 | public void <B>moveToLocalFile</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2379 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2398 | copyToLocalFile</H3> |
---|
| 2399 | <PRE> |
---|
| 2400 | public void <B>copyToLocalFile</B>(boolean delSrc, |
---|
| 2401 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> src, |
---|
| 2402 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2421 | startLocalOutput</H3> |
---|
| 2422 | <PRE> |
---|
| 2423 | public <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> fsOutputFile, |
---|
| 2424 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2444 | completeLocalOutput</H3> |
---|
| 2445 | <PRE> |
---|
| 2446 | public void <B>completeLocalOutput</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> fsOutputFile, |
---|
| 2447 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> |
---|
| 2467 | close</H3> |
---|
| 2468 | <PRE> |
---|
| 2469 | public 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> |
---|
| 2487 | getUsed</H3> |
---|
| 2488 | <PRE> |
---|
| 2489 | public 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> |
---|
| 2506 | getBlockSize</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> 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> <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> |
---|
| 2526 | getDefaultBlockSize</H3> |
---|
| 2527 | <PRE> |
---|
| 2528 | public 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> |
---|
| 2543 | getDefaultReplication</H3> |
---|
| 2544 | <PRE> |
---|
| 2545 | public 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> |
---|
| 2559 | getFileStatus</H3> |
---|
| 2560 | <PRE> |
---|
| 2561 | public 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> 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> |
---|
| 2581 | getFileChecksum</H3> |
---|
| 2582 | <PRE> |
---|
| 2583 | public <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> 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> |
---|
| 2603 | setVerifyChecksum</H3> |
---|
| 2604 | <PRE> |
---|
| 2605 | public void <B>setVerifyChecksum</B>(boolean 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> |
---|
| 2620 | setPermission</H3> |
---|
| 2621 | <PRE> |
---|
| 2622 | public void <B>setPermission</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> p, |
---|
| 2623 | <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> 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> |
---|
| 2640 | setOwner</H3> |
---|
| 2641 | <PRE> |
---|
| 2642 | public void <B>setOwner</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> 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> 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> 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> |
---|
| 2662 | setTimes</H3> |
---|
| 2663 | <PRE> |
---|
| 2664 | public void <B>setTimes</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> p, |
---|
| 2665 | long mtime, |
---|
| 2666 | long 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> |
---|
| 2687 | getStatistics</H3> |
---|
| 2688 | <PRE> |
---|
| 2689 | public 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><<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>> <B>getStatistics</B>()</PRE> |
---|
| 2690 | <DL> |
---|
| 2691 | <DD><B>Deprecated.</B> <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> |
---|
| 2706 | getAllStatistics</H3> |
---|
| 2707 | <PRE> |
---|
| 2708 | public 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><<A HREF="../../../../org/apache/hadoop/fs/FileSystem.Statistics.html" title="class in org.apache.hadoop.fs">FileSystem.Statistics</A>> <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> |
---|
| 2722 | getStatistics</H3> |
---|
| 2723 | <PRE> |
---|
| 2724 | public 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> 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><? extends <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A>> 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> |
---|
| 2740 | clearStatistics</H3> |
---|
| 2741 | <PRE> |
---|
| 2742 | public 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> |
---|
| 2754 | printStatistics</H3> |
---|
| 2755 | <PRE> |
---|
| 2756 | public 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> </TD> |
---|
| 2782 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 2783 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 2784 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileSystem.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 2785 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 2786 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 2787 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 2788 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../org/apache/hadoop/fs/FileStatus.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A> |
---|
| 2800 | <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> |
---|
| 2803 | <A HREF="FileSystem.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 2804 | <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 2821 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 2822 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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> |
---|
| 2829 | Copyright © 2009 The Apache Software Foundation |
---|
| 2830 | </BODY> |
---|
| 2831 | </HTML> |
---|