Modifier and Type | Field and Description |
---|---|
int |
obsoleteINCount |
int |
obsoleteLNCount |
int |
obsoleteLNSize |
int |
obsoleteLNSizeCounted |
int |
totalINCount |
int |
totalINSize |
int |
totalLNCount |
int |
totalLNSize |
Constructor and Description |
---|
DbFileSummary()
Creates an empty summary.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DbFileSummary o)
Add the totals of the given summary object to the totals of this object.
|
void |
dumpLog(java.lang.StringBuffer buf,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getLogSize() |
int |
getNonObsoleteCount()
Returns the number of non-obsolete LN and IN entries.
|
int |
getObsoleteINSize()
Returns the approximate byte size of all obsolete IN entries.
|
int |
getObsoleteLNSize()
Returns the approximate byte size of all obsolete LN entries.
|
int |
getObsoleteSize()
Returns an estimate of the total bytes that are obsolete.
|
long |
getTransactionId()
Never called.
|
boolean |
isEmpty()
Returns whether this summary contains any non-zero totals.
|
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer buf,
byte entryTypeVersion)
Initialize this object from the data in itemBuf.
|
void |
reset()
Reset all totals to zero.
|
java.lang.String |
toString() |
void |
writeToLog(java.nio.ByteBuffer buf)
Serialize this object into the buffer.
|
public int totalINCount
public int totalINSize
public int totalLNCount
public int totalLNSize
public int obsoleteINCount
public int obsoleteLNCount
public int obsoleteLNSize
public int obsoleteLNSizeCounted
public boolean isEmpty()
public int getObsoleteLNSize()
public int getObsoleteINSize()
public int getObsoleteSize()
public int getNonObsoleteCount()
public void reset()
public void add(DbFileSummary o)
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer buf)
Loggable
writeToLog
in interface Loggable
buf
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer buf, byte entryTypeVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer buf, boolean verbose)
Loggable
dumpLog
in interface Loggable
buf
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Always return false, this item should never be compared.
public java.lang.String toString()
toString
in class java.lang.Object