@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
|
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 (disk) space consumed
|
long |
getSpaceQuota()
Returns (disk) space quota
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
String |
toString(boolean qOption)
Return the string representation of the object in the output format.
|
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
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 long getLength()
public long getDirectoryCount()
public long getFileCount()
public long getQuota()
public long getSpaceConsumed()
public long getSpaceQuota()
@InterfaceAudience.Private public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
@InterfaceAudience.Private public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
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 notCopyright © 2013 Apache Software Foundation. All rights reserved.