|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.ContentSummary
public class ContentSummary
Store the summary of a content (a directory or a file).
| Constructor Summary | |
|---|---|
ContentSummary()
Constructor |
|
ContentSummary(long length,
long fileCount,
long directoryCount)
Constructor |
|
| Method Summary | |
|---|---|
long |
getDirectoryCount()
|
long |
getFileCount()
|
long |
getLength()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSummary()
public ContentSummary(long length,
long fileCount,
long directoryCount)
| Method Detail |
|---|
public long getLength()
public long getDirectoryCount()
public long getFileCount()
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||