@InterfaceAudience.Public @InterfaceStability.Evolving public class ContentSummary extends Object implements Writable
Constructor and Description |
---|
ContentSummary()
Constructor
|
ContentSummary(long length,
long fileCount,
long directoryCount)
Constructor
|
ContentSummary(long length,
long fileCount,
long directoryCount,
long quota,
long spaceConsumed,
long spaceQuota)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString(boolean qOption,
boolean hOption)
Return the string representation of the object in the output format.
|
public ContentSummary()
public ContentSummary(long length, long fileCount, long directoryCount)
public ContentSummary(long length, long fileCount, long directoryCount, long quota, long spaceConsumed, long spaceQuota)
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 notpublic String toString(boolean qOption)
qOption
- a flag indicating if quota needs to be printed or notpublic String toString(boolean qOption, boolean hOption)
qOption
- a flag indicating if quota needs to be printed or nothOption
- a flag indicating if human readable output if to be usedCopyright © 2015 Apache Software Foundation. All Rights Reserved.