@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.
|
static String[] |
getHeaderFields()
Returns the names of the fields from the summary header.
|
long |
getLength() |
long |
getQuota()
Return the directory quota
|
static String[] |
getQuotaHeaderFields()
Returns the names of the fields used in the quota summary.
|
long |
getSpaceConsumed()
Returns storage space consumed
|
long |
getSpaceQuota()
Returns storage space quota
|
static String |
getStorageTypeHeader(List<StorageType> storageTypes)
return the header of with the StorageTypes
|
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.
|
String |
toString(boolean qOption,
boolean hOption,
boolean tOption,
List<StorageType> types)
Return the string representation of the object in the output format.
|
@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 static String getStorageTypeHeader(List<StorageType> storageTypes)
storageTypes
- public static String[] getHeaderFields()
public static String[] getQuotaHeaderFields()
public 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 usedpublic String toString(boolean qOption, boolean hOption, boolean tOption, List<StorageType> types)
qOption
- a flag indicating if quota needs to be printed or nothOption
- a flag indicating if human readable output if to be usedtOption
- a flag indicating if display quota by storage typestypes
- Storage types to displayCopyright © 2015 Apache Software Foundation. All rights reserved.