|
||||||||||
| 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 |
|
ContentSummary(long length,
long fileCount,
long directoryCount,
long quota,
long spaceConsumed,
long spaceQuota)
Constructor |
|
| Method Summary | |
|---|---|
long |
getDirectoryCount()
|
long |
getFileCount()
|
static String |
getHeader(boolean qOption)
Return the header of the output. |
long |
getLength()
|
long |
getQuota()
Return the directory quota |
long |
getSpaceConsumed()
Retuns (disk) space consumed |
long |
getSpaceQuota()
Returns (disk) space quota |
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
String |
toString(boolean qOption)
Return the string representation of the object in the output format. |
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)
public ContentSummary(long length,
long fileCount,
long directoryCount,
long quota,
long spaceConsumed,
long spaceQuota)
| Method Detail |
|---|
public long getLength()
public long getDirectoryCount()
public long getFileCount()
public long getQuota()
public long getSpaceConsumed()
public long getSpaceQuota()
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 static String getHeader(boolean qOption)
qOption - a flag indicating if quota needs to be printed or not
public String toString()
toString in class Objectpublic String toString(boolean qOption)
qOption - a flag indicating if quota needs to be printed or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||