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

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

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 32.5 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:50 UTC 2009 -->
6<TITLE>
7FileStatus (Hadoop 0.20.1 API)
8</TITLE>
9
10<META NAME="date" CONTENT="2009-09-01">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="FileStatus (Hadoop 0.20.1 API)";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FileStatus.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.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/FileStatus.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="FileStatus.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.hadoop.fs</FONT>
92<BR>
93Class FileStatus</H2>
94<PRE>
95<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.fs.FileStatus</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A>, <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>FileStatus</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A></DL>
104</PRE>
105
106<P>
107Interface that represents the client side information for a file.
108<P>
109
110<P>
111<HR>
112
113<P>
114
115<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116
117<A NAME="constructor_summary"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121<B>Constructor Summary</B></FONT></TH>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#FileStatus()">FileStatus</A></B>()</CODE>
125
126<BR>
127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#FileStatus(long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path)">FileStatus</A></B>(long&nbsp;length,
131           boolean&nbsp;isdir,
132           int&nbsp;block_replication,
133           long&nbsp;blocksize,
134           long&nbsp;modification_time,
135           long&nbsp;access_time,
136           <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission,
137           <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;owner,
138           <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;group,
139           <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</CODE>
140
141<BR>
142&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#FileStatus(long, boolean, int, long, long, org.apache.hadoop.fs.Path)">FileStatus</A></B>(long&nbsp;length,
146           boolean&nbsp;isdir,
147           int&nbsp;block_replication,
148           long&nbsp;blocksize,
149           long&nbsp;modification_time,
150           <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</CODE>
151
152<BR>
153&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154</TR>
155</TABLE>
156&nbsp;
157<!-- ========== METHOD SUMMARY =========== -->
158
159<A NAME="method_summary"><!-- --></A>
160<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
163<B>Method Summary</B></FONT></TH>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167<CODE>&nbsp;int</CODE></FONT></TD>
168<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#compareTo(java.lang.Object)">compareTo</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
169
170<BR>
171&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compare this object to another object</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>&nbsp;boolean</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compare if this object is equal to another object</TD>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183<CODE>&nbsp;long</CODE></FONT></TD>
184<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getAccessTime()">getAccessTime</A></B>()</CODE>
185
186<BR>
187&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the access time of the file.</TD>
188</TR>
189<TR BGCOLOR="white" CLASS="TableRowColor">
190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191<CODE>&nbsp;long</CODE></FONT></TD>
192<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getBlockSize()">getBlockSize</A></B>()</CODE>
193
194<BR>
195&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the block size of the file.</TD>
196</TR>
197<TR BGCOLOR="white" CLASS="TableRowColor">
198<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
200<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getGroup()">getGroup</A></B>()</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the group associated with the file.</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE>&nbsp;long</CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getLen()">getLen</A></B>()</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<CODE>&nbsp;long</CODE></FONT></TD>
216<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getModificationTime()">getModificationTime</A></B>()</CODE>
217
218<BR>
219&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the modification time of the file.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getOwner()">getOwner</A></B>()</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the owner of the file.</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getPath()">getPath</A></B>()</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A></CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getPermission()">getPermission</A></B>()</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get FsPermission associated with the file.</TD>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247<CODE>&nbsp;short</CODE></FONT></TD>
248<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#getReplication()">getReplication</A></B>()</CODE>
249
250<BR>
251&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the replication factor of a file.</TD>
252</TR>
253<TR BGCOLOR="white" CLASS="TableRowColor">
254<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255<CODE>&nbsp;int</CODE></FONT></TD>
256<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#hashCode()">hashCode</A></B>()</CODE>
257
258<BR>
259&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hash code value for the object, which is defined as
260 the hash code of the path name.</TD>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264<CODE>&nbsp;boolean</CODE></FONT></TD>
265<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#isDir()">isDir</A></B>()</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is this a directory?</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>&nbsp;void</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#readFields(java.io.DataInput)">readFields</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)</CODE>
274
275<BR>
276&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deserialize the fields of this object from <code>in</code>.</TD>
277</TR>
278<TR BGCOLOR="white" CLASS="TableRowColor">
279<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280<CODE>protected &nbsp;void</CODE></FONT></TD>
281<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#setGroup(java.lang.String)">setGroup</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;group)</CODE>
282
283<BR>
284&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets group.</TD>
285</TR>
286<TR BGCOLOR="white" CLASS="TableRowColor">
287<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288<CODE>protected &nbsp;void</CODE></FONT></TD>
289<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#setOwner(java.lang.String)">setOwner</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;owner)</CODE>
290
291<BR>
292&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets owner.</TD>
293</TR>
294<TR BGCOLOR="white" CLASS="TableRowColor">
295<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296<CODE>protected &nbsp;void</CODE></FONT></TD>
297<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#setPermission(org.apache.hadoop.fs.permission.FsPermission)">setPermission</A></B>(<A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</CODE>
298
299<BR>
300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets permission.</TD>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304<CODE>&nbsp;void</CODE></FONT></TD>
305<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FileStatus.html#write(java.io.DataOutput)">write</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)</CODE>
306
307<BR>
308&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serialize the fields of this object to <code>out</code>.</TD>
309</TR>
310</TABLE>
311&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
312<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
313<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
314<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>
315</TR>
316<TR BGCOLOR="white" CLASS="TableRowColor">
317<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#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#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>
318</TR>
319</TABLE>
320&nbsp;
321<P>
322
323<!-- ========= CONSTRUCTOR DETAIL ======== -->
324
325<A NAME="constructor_detail"><!-- --></A>
326<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
327<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
328<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
329<B>Constructor Detail</B></FONT></TH>
330</TR>
331</TABLE>
332
333<A NAME="FileStatus()"><!-- --></A><H3>
334FileStatus</H3>
335<PRE>
336public <B>FileStatus</B>()</PRE>
337<DL>
338</DL>
339<HR>
340
341<A NAME="FileStatus(long, boolean, int, long, long, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
342FileStatus</H3>
343<PRE>
344public <B>FileStatus</B>(long&nbsp;length,
345                  boolean&nbsp;isdir,
346                  int&nbsp;block_replication,
347                  long&nbsp;blocksize,
348                  long&nbsp;modification_time,
349                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</PRE>
350<DL>
351</DL>
352<HR>
353
354<A NAME="FileStatus(long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path)"><!-- --></A><H3>
355FileStatus</H3>
356<PRE>
357public <B>FileStatus</B>(long&nbsp;length,
358                  boolean&nbsp;isdir,
359                  int&nbsp;block_replication,
360                  long&nbsp;blocksize,
361                  long&nbsp;modification_time,
362                  long&nbsp;access_time,
363                  <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission,
364                  <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;owner,
365                  <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;group,
366                  <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>&nbsp;path)</PRE>
367<DL>
368</DL>
369
370<!-- ============ METHOD DETAIL ========== -->
371
372<A NAME="method_detail"><!-- --></A>
373<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
374<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
375<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
376<B>Method Detail</B></FONT></TH>
377</TR>
378</TABLE>
379
380<A NAME="getLen()"><!-- --></A><H3>
381getLen</H3>
382<PRE>
383public long <B>getLen</B>()</PRE>
384<DL>
385<DD><DL>
386</DL>
387</DD>
388<DD><DL>
389</DL>
390</DD>
391</DL>
392<HR>
393
394<A NAME="isDir()"><!-- --></A><H3>
395isDir</H3>
396<PRE>
397public boolean <B>isDir</B>()</PRE>
398<DL>
399<DD>Is this a directory?
400<P>
401<DD><DL>
402</DL>
403</DD>
404<DD><DL>
405
406<DT><B>Returns:</B><DD>true if this is a directory</DL>
407</DD>
408</DL>
409<HR>
410
411<A NAME="getBlockSize()"><!-- --></A><H3>
412getBlockSize</H3>
413<PRE>
414public long <B>getBlockSize</B>()</PRE>
415<DL>
416<DD>Get the block size of the file.
417<P>
418<DD><DL>
419</DL>
420</DD>
421<DD><DL>
422
423<DT><B>Returns:</B><DD>the number of bytes</DL>
424</DD>
425</DL>
426<HR>
427
428<A NAME="getReplication()"><!-- --></A><H3>
429getReplication</H3>
430<PRE>
431public short <B>getReplication</B>()</PRE>
432<DL>
433<DD>Get the replication factor of a file.
434<P>
435<DD><DL>
436</DL>
437</DD>
438<DD><DL>
439
440<DT><B>Returns:</B><DD>the replication factor of a file.</DL>
441</DD>
442</DL>
443<HR>
444
445<A NAME="getModificationTime()"><!-- --></A><H3>
446getModificationTime</H3>
447<PRE>
448public long <B>getModificationTime</B>()</PRE>
449<DL>
450<DD>Get the modification time of the file.
451<P>
452<DD><DL>
453</DL>
454</DD>
455<DD><DL>
456
457<DT><B>Returns:</B><DD>the modification time of file in milliseconds since January 1, 1970 UTC.</DL>
458</DD>
459</DL>
460<HR>
461
462<A NAME="getAccessTime()"><!-- --></A><H3>
463getAccessTime</H3>
464<PRE>
465public long <B>getAccessTime</B>()</PRE>
466<DL>
467<DD>Get the access time of the file.
468<P>
469<DD><DL>
470</DL>
471</DD>
472<DD><DL>
473
474<DT><B>Returns:</B><DD>the access time of file in milliseconds since January 1, 1970 UTC.</DL>
475</DD>
476</DL>
477<HR>
478
479<A NAME="getPermission()"><!-- --></A><H3>
480getPermission</H3>
481<PRE>
482public <A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A> <B>getPermission</B>()</PRE>
483<DL>
484<DD>Get FsPermission associated with the file.
485<P>
486<DD><DL>
487</DL>
488</DD>
489<DD><DL>
490
491<DT><B>Returns:</B><DD>permssion. If a filesystem does not have a notion of permissions
492         or if permissions could not be determined, then default
493         permissions equivalent of "rwxrwxrwx" is returned.</DL>
494</DD>
495</DL>
496<HR>
497
498<A NAME="getOwner()"><!-- --></A><H3>
499getOwner</H3>
500<PRE>
501public <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>getOwner</B>()</PRE>
502<DL>
503<DD>Get the owner of the file.
504<P>
505<DD><DL>
506</DL>
507</DD>
508<DD><DL>
509
510<DT><B>Returns:</B><DD>owner of the file. The string could be empty if there is no
511         notion of owner of a file in a filesystem or if it could not
512         be determined (rare).</DL>
513</DD>
514</DL>
515<HR>
516
517<A NAME="getGroup()"><!-- --></A><H3>
518getGroup</H3>
519<PRE>
520public <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>getGroup</B>()</PRE>
521<DL>
522<DD>Get the group associated with the file.
523<P>
524<DD><DL>
525</DL>
526</DD>
527<DD><DL>
528
529<DT><B>Returns:</B><DD>group for the file. The string could be empty if there is no
530         notion of group of a file in a filesystem or if it could not
531         be determined (rare).</DL>
532</DD>
533</DL>
534<HR>
535
536<A NAME="getPath()"><!-- --></A><H3>
537getPath</H3>
538<PRE>
539public <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>getPath</B>()</PRE>
540<DL>
541<DD><DL>
542</DL>
543</DD>
544<DD><DL>
545</DL>
546</DD>
547</DL>
548<HR>
549
550<A NAME="setPermission(org.apache.hadoop.fs.permission.FsPermission)"><!-- --></A><H3>
551setPermission</H3>
552<PRE>
553protected void <B>setPermission</B>(<A HREF="../../../../org/apache/hadoop/fs/permission/FsPermission.html" title="class in org.apache.hadoop.fs.permission">FsPermission</A>&nbsp;permission)</PRE>
554<DL>
555<DD>Sets permission.
556<P>
557<DD><DL>
558</DL>
559</DD>
560<DD><DL>
561<DT><B>Parameters:</B><DD><CODE>permission</CODE> - if permission is null, default value is set</DL>
562</DD>
563</DL>
564<HR>
565
566<A NAME="setOwner(java.lang.String)"><!-- --></A><H3>
567setOwner</H3>
568<PRE>
569protected void <B>setOwner</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;owner)</PRE>
570<DL>
571<DD>Sets owner.
572<P>
573<DD><DL>
574</DL>
575</DD>
576<DD><DL>
577<DT><B>Parameters:</B><DD><CODE>owner</CODE> - if it is null, default value is set</DL>
578</DD>
579</DL>
580<HR>
581
582<A NAME="setGroup(java.lang.String)"><!-- --></A><H3>
583setGroup</H3>
584<PRE>
585protected void <B>setGroup</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;group)</PRE>
586<DL>
587<DD>Sets group.
588<P>
589<DD><DL>
590</DL>
591</DD>
592<DD><DL>
593<DT><B>Parameters:</B><DD><CODE>group</CODE> - if it is null, default value is set</DL>
594</DD>
595</DL>
596<HR>
597
598<A NAME="write(java.io.DataOutput)"><!-- --></A><H3>
599write</H3>
600<PRE>
601public void <B>write</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)
602           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>
603<DL>
604<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">Writable</A></CODE></B></DD>
605<DD>Serialize the fields of this object to <code>out</code>.
606<P>
607<DD><DL>
608<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">write</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
609</DD>
610<DD><DL>
611<DT><B>Parameters:</B><DD><CODE>out</CODE> - <code>DataOuput</code> to serialize this object into.
612<DT><B>Throws:</B>
613<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>
614</DD>
615</DL>
616<HR>
617
618<A NAME="readFields(java.io.DataInput)"><!-- --></A><H3>
619readFields</H3>
620<PRE>
621public void <B>readFields</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)
622                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>
623<DL>
624<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">Writable</A></CODE></B></DD>
625<DD>Deserialize the fields of this object from <code>in</code>
626 
627 <p>For efficiency, implementations should attempt to re-use storage in the
628 existing object where possible.</p>
629<P>
630<DD><DL>
631<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">readFields</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
632</DD>
633<DD><DL>
634<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>DataInput</code> to deseriablize this object from.
635<DT><B>Throws:</B>
636<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>
637</DD>
638</DL>
639<HR>
640
641<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
642compareTo</H3>
643<PRE>
644public int <B>compareTo</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
645<DL>
646<DD>Compare this object to another object
647<P>
648<DD><DL>
649<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A></CODE></DL>
650</DD>
651<DD><DL>
652<DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to be compared.
653<DT><B>Returns:</B><DD>a negative integer, zero, or a positive integer as this object
654   is less than, equal to, or greater than the specified object.
655<DT><B>Throws:</B>
656<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</A></CODE> - if the specified object's is not of
657         type FileStatus</DL>
658</DD>
659</DL>
660<HR>
661
662<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
663equals</H3>
664<PRE>
665public boolean <B>equals</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
666<DL>
667<DD>Compare if this object is equal to another object
668<P>
669<DD><DL>
670<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
671</DD>
672<DD><DL>
673<DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to be compared.
674<DT><B>Returns:</B><DD>true if two file status has the same path name; false if not.</DL>
675</DD>
676</DL>
677<HR>
678
679<A NAME="hashCode()"><!-- --></A><H3>
680hashCode</H3>
681<PRE>
682public int <B>hashCode</B>()</PRE>
683<DL>
684<DD>Returns a hash code value for the object, which is defined as
685 the hash code of the path name.
686<P>
687<DD><DL>
688<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
689</DD>
690<DD><DL>
691
692<DT><B>Returns:</B><DD>a hash code value for the path name.</DL>
693</DD>
694</DL>
695<!-- ========= END OF CLASS DATA ========= -->
696<HR>
697
698
699<!-- ======= START OF BOTTOM NAVBAR ====== -->
700<A NAME="navbar_bottom"><!-- --></A>
701<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
702<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
703<TR>
704<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
705<A NAME="navbar_bottom_firstrow"><!-- --></A>
706<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
707  <TR ALIGN="center" VALIGN="top">
708  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
709  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
710  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
711  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FileStatus.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
712  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
713  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
714  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
715  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
716  </TR>
717</TABLE>
718</TD>
719<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
720</EM>
721</TD>
722</TR>
723
724<TR>
725<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
726&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
727&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
728<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
729  <A HREF="../../../../index.html?org/apache/hadoop/fs/FileStatus.html" target="_top"><B>FRAMES</B></A>  &nbsp;
730&nbsp;<A HREF="FileStatus.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
731&nbsp;<SCRIPT type="text/javascript">
732  <!--
733  if(window==top) {
734    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
735  }
736  //-->
737</SCRIPT>
738<NOSCRIPT>
739  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
740</NOSCRIPT>
741
742
743</FONT></TD>
744</TR>
745<TR>
746<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
747  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
748<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
749DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
750</TR>
751</TABLE>
752<A NAME="skip-navbar_bottom"></A>
753<!-- ======== END OF BOTTOM NAVBAR ======= -->
754
755<HR>
756Copyright &copy; 2009 The Apache Software Foundation
757</BODY>
758</HTML>
Note: See TracBrowser for help on using the repository browser.