|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.ContentSummary
@InterfaceAudience.Public @InterfaceStability.Evolving 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 |
String |
toString()
|
String |
toString(boolean qOption)
Return the string representation of the object in the output format. |
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 static String getHeader(boolean qOption)
qOption
- a flag indicating if quota needs to be printed or not
public String toString()
toString
in class Object
public 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 |