Writable@Public @Evolving public class ContentSummary extends QuotaUsage implements Writable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ContentSummary.Builder |
We don't use generics.
|
QUOTA_HEADER, QUOTA_HEADER_FIELDS, QUOTA_STRING_FORMAT, SPACE_QUOTA_STRING_FORMAT| Constructor | 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 | Description |
|---|---|---|
boolean |
equals(java.lang.Object to) |
|
long |
getDirectoryCount() |
|
java.lang.String |
getErasureCodingPolicy() |
|
static java.lang.String |
getErasureCodingPolicyHeader() |
|
long |
getFileCount() |
|
static java.lang.String |
getHeader(boolean qOption) |
Return the header of the output.
|
static java.lang.String[] |
getHeaderFields() |
Returns the names of the fields from the summary header.
|
long |
getLength() |
|
static java.lang.String[] |
getQuotaHeaderFields() |
Returns the names of the fields used in the quota summary.
|
long |
getSnapshotDirectoryCount() |
|
long |
getSnapshotFileCount() |
|
static java.lang.String |
getSnapshotHeader() |
|
long |
getSnapshotLength() |
|
long |
getSnapshotSpaceConsumed() |
|
int |
hashCode() |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
java.lang.String |
toErasureCodingPolicy() |
|
java.lang.String |
toSnapshot(boolean hOption) |
Return the string representation of the snapshot counts in the output
format.
|
java.lang.String |
toString() |
|
java.lang.String |
toString(boolean qOption) |
Return the string representation of the object in the output format.
|
java.lang.String |
toString(boolean qOption,
boolean hOption) |
Return the string representation of the object in the output format.
|
java.lang.String |
toString(boolean qOption,
boolean hOption,
boolean xOption) |
Return the string representation of the object in the output format.
|
java.lang.String |
toString(boolean qOption,
boolean hOption,
boolean tOption,
boolean xOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
java.lang.String |
toString(boolean qOption,
boolean hOption,
boolean tOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
getFileAndDirectoryCount, getHeader, getQuota, getQuotaUsage, getSpaceConsumed, getSpaceQuota, getStorageTypeHeader, getTypeConsumed, getTypeQuota, getTypesQuotaUsage, isTypeConsumedAvailable, isTypeQuotaSet, setQuota, setSpaceConsumed, setSpaceQuota, toString@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 java.lang.String getErasureCodingPolicy()
@Private
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.@Private
public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.public boolean equals(java.lang.Object to)
equals in class QuotaUsagepublic int hashCode()
hashCode in class QuotaUsagepublic static java.lang.String getHeader(boolean qOption)
qOption - a flag indicating if quota needs to be printed or notpublic static java.lang.String getErasureCodingPolicyHeader()
public static java.lang.String getSnapshotHeader()
public static java.lang.String[] getHeaderFields()
public static java.lang.String[] getQuotaHeaderFields()
public java.lang.String toString()
toString in class QuotaUsagepublic java.lang.String toString(boolean qOption)
toString in class QuotaUsageqOption - a flag indicating if quota needs to be printed or notpublic java.lang.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 java.lang.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 java.lang.String toString(boolean qOption,
boolean hOption,
boolean tOption,
java.util.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 java.lang.String toString(boolean qOption,
boolean hOption,
boolean tOption,
boolean xOption,
java.util.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 java.lang.String toErasureCodingPolicy()
public java.lang.String toSnapshot(boolean hOption)
hOption - flag indicating human readable or notCopyright © 2008–2025 Apache Software Foundation. All rights reserved.