@InterfaceAudience.Public @InterfaceStability.Evolving public class ContentSummary extends Object implements Writable
Constructor and Description |
---|
ContentSummary()
Deprecated.
|
ContentSummary(long length,
long fileCount,
long directoryCount)
Deprecated.
|
ContentSummary(long length,
long fileCount,
long directoryCount,
long quota,
long spaceConsumed,
long spaceQuota)
Deprecated.
|
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 storage space consumed
|
long |
getSpaceQuota()
Returns storage space quota
|
long |
getTypeConsumed(StorageType type)
Returns storage type consumed
|
long |
getTypeQuota(StorageType type)
Returns storage type quota
|
boolean |
isTypeConsumedAvailable()
Returns true if any storage type consumption information is available
|
boolean |
isTypeQuotaSet()
Returns true if any storage type quota has been set
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readFields, write
@Deprecated public ContentSummary()
@Deprecated public ContentSummary(long length, long fileCount, long directoryCount)
@Deprecated 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 long getTypeQuota(StorageType type)
public long getTypeConsumed(StorageType type)
public boolean isTypeQuotaSet()
public boolean isTypeConsumedAvailable()
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 © 2018 Apache Software Foundation. All rights reserved.