@InterfaceAudience.Public @InterfaceStability.Evolving public class ContentSummary extends QuotaUsage implements Writable
QUOTA_HEADER, QUOTA_HEADER_FIELDS, QUOTA_STRING_FORMAT, SPACE_QUOTA_STRING_FORMAT
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 |
---|---|
boolean |
equals(Object to) |
long |
getDirectoryCount() |
String |
getErasureCodingPolicy() |
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() |
static String[] |
getQuotaHeaderFields()
Returns the names of the fields used in the quota summary.
|
long |
getSnapshotDirectoryCount() |
long |
getSnapshotFileCount() |
static String |
getSnapshotHeader() |
long |
getSnapshotLength() |
long |
getSnapshotSpaceConsumed() |
int |
hashCode() |
String |
toSnapshot(boolean hOption)
Return the string representation of the snapshot counts in the output
format.
|
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 xOption)
Return the string representation of the object in the output format.
|
String |
toString(boolean qOption,
boolean hOption,
boolean tOption,
boolean xOption,
List<StorageType> types)
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.
|
getFileAndDirectoryCount, getHeader, getQuota, getQuotaUsage, getSpaceConsumed, getSpaceQuota, getStorageTypeHeader, getTypeConsumed, getTypeQuota, getTypesQuotaUsage, isTypeConsumedAvailable, isTypeQuotaSet, setQuota, setSpaceConsumed, setSpaceQuota, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
readFields, write
@Deprecated public ContentSummary()
@Deprecated public ContentSummary(long length, long fileCount, long directoryCount)
length
- length.fileCount
- file count.directoryCount
- directory count.@Deprecated public ContentSummary(long length, long fileCount, long directoryCount, long quota, long spaceConsumed, long spaceQuota)
length
- length.fileCount
- file count.directoryCount
- directory count.quota
- quota.spaceConsumed
- space consumed.spaceQuota
- space quota.public long getLength()
public long getSnapshotLength()
public long getDirectoryCount()
public long getSnapshotDirectoryCount()
public long getFileCount()
public long getSnapshotFileCount()
public long getSnapshotSpaceConsumed()
public String getErasureCodingPolicy()
public boolean equals(Object to)
equals
in class QuotaUsage
public int hashCode()
hashCode
in class QuotaUsage
public static String getHeader(boolean qOption)
qOption
- a flag indicating if quota needs to be printed or notpublic static String getSnapshotHeader()
public static String[] getHeaderFields()
public static String[] getQuotaHeaderFields()
public String toString()
toString
in class QuotaUsage
public String toString(boolean qOption)
toString
in class QuotaUsage
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 usedtoString(boolean, boolean, boolean, boolean, List)
public String toString(boolean qOption, boolean hOption, boolean xOption)
qOption
- a flag indicating if quota needs to be printed or nothOption
- a flag indicating if human readable output is to be usedxOption
- a flag indicating if calculation from snapshots is to be
included in the outputtoString(boolean, boolean, boolean, boolean, List)
public 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 displaytoString(boolean, boolean, boolean, boolean, List)
public String toString(boolean qOption, boolean hOption, boolean tOption, boolean xOption, List<StorageType> types)
qOption
- a flag indicating if quota needs to be printed or nothOption
- a flag indicating if human readable output is to be usedtOption
- a flag indicating if display quota by storage typesxOption
- a flag indicating if calculation from snapshots is to be
included in the outputtypes
- Storage types to displaypublic String toSnapshot(boolean hOption)
hOption
- flag indicating human readable or notCopyright © 2023 Apache Software Foundation. All rights reserved.