@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
|
ContentSummary(long length,
long fileCount,
long directoryCount,
long quota,
long spaceConsumed,
long spaceQuota,
long snapshotLength,
long snapshotFileCount,
long snapshotDirectoryCount,
long snapshotSpaceConsumed)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object to) |
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 |
getSnapshotDirectoryCount() |
long |
getSnapshotFileCount() |
long |
getSnapshotLength() |
long |
getSnapshotSpaceConsumed() |
long |
getSpaceConsumed()
Retuns (disk) space consumed
|
long |
getSpaceQuota()
Returns (disk) space quota
|
int |
hashCode() |
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.
|
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 ContentSummary(long length, long fileCount, long directoryCount, long quota, long spaceConsumed, long spaceQuota, long snapshotLength, long snapshotFileCount, long snapshotDirectoryCount, long snapshotSpaceConsumed)
public long getLength()
public long getSnapshotLength()
public long getDirectoryCount()
public long getSnapshotDirectoryCount()
public long getFileCount()
public long getSnapshotFileCount()
public long getQuota()
public long getSpaceConsumed()
public long getSnapshotSpaceConsumed()
public long getSpaceQuota()
public static String getHeader(boolean qOption)
qOption
- a flag indicating if quota needs to be printed or notpublic 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 usedtoString(boolean, boolean, boolean)
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 outputCopyright © 2021 Apache Software Foundation. All Rights Reserved.