| Modifier and Type | Field and Description |
|---|---|
int |
maxLNSize |
int |
obsoleteINCount |
int |
obsoleteLNCount |
int |
obsoleteLNSize |
int |
obsoleteLNSizeCounted |
int |
totalCount |
int |
totalINCount |
int |
totalINSize |
int |
totalLNCount |
int |
totalLNSize |
int |
totalSize |
| Constructor and Description |
|---|
FileSummary()
Creates an empty summary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(FileSummary o)
Add the totals of the given summary object to the totals of this object.
|
FileSummary |
clone() |
void |
dumpLog(StringBuilder buf,
boolean verbose)
Write the object into the string buffer for log dumping.
|
float |
getAvgObsoleteLNSizeNotCounted()
Returns the average size for LNs with sizes not counted, or NaN if
there are no such LNs.
|
int |
getLogSize() |
int |
getMaxObsoleteLNSize()
Returns the maximum possible obsolete LN size, using the maximum LN size
for LN sizes that were not counted.
|
int |
getMaxObsoleteSize()
Returns an estimate of the total bytes that are obsolete, using
getMaxObsoleteLNSize instead of getObsoleteLNSize.
|
int |
getObsoleteINSize()
Returns the approximate byte size of all obsolete IN entries.
|
int |
getObsoleteLNSize()
Returns the approximate byte size of all obsolete LN entries, using the
average LN size for LN sizes that were not counted.
|
int |
getObsoleteSize()
Returns an estimate of the total bytes that are obsolete, using
getObsoleteLNSize instead of getMaxObsoleteLNSize.
|
long |
getTransactionId()
Never called.
|
boolean |
isEmpty()
Returns whether this summary contains any non-zero totals.
|
boolean |
logicalEquals(Loggable other)
Always return false, this item should never be compared.
|
void |
readFromLog(ByteBuffer buf,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
reset()
Reset all totals to zero.
|
String |
toString() |
int |
utilization()
Calculates utilization percentage using average LN sizes.
|
static int |
utilization(long obsoleteSize,
long totalSize)
Calculates a utilization percentage.
|
void |
writeToLog(ByteBuffer buf)
Serialize this object into the buffer.
|
public int totalCount
public int totalSize
public int totalINCount
public int totalINSize
public int totalLNCount
public int totalLNSize
public int maxLNSize
public int obsoleteINCount
public int obsoleteLNCount
public int obsoleteLNSize
public int obsoleteLNSizeCounted
public FileSummary clone()
public boolean isEmpty()
public int getObsoleteLNSize()
public float getAvgObsoleteLNSizeNotCounted()
public int getMaxObsoleteLNSize()
public int getObsoleteINSize()
public int getObsoleteSize()
public int getMaxObsoleteSize()
public int utilization()
public static int utilization(long obsoleteSize,
long totalSize)
public void reset()
public void add(FileSummary o)
public int getLogSize()
getLogSize in interface Loggablepublic void writeToLog(ByteBuffer buf)
LoggablewriteToLog in interface Loggablebuf - is the destination bufferpublic void readFromLog(ByteBuffer buf, int entryVersion)
LoggablereadFromLog in interface Loggablebuf - the source bufferentryVersion - the log version of the datapublic void dumpLog(StringBuilder buf, boolean verbose)
Loggablepublic long getTransactionId()
getTransactionId in interface Loggablepublic boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableCopyright © 2024. All rights reserved.