public class FileSummary extends java.lang.Object implements Loggable
Modifier and Type | Field and Description |
---|---|
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.
|
void |
dumpLog(java.lang.StringBuffer buf,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getEntriesCounted()
Returns the total number of entries counted.
|
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.
|
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 totalCount
public int totalSize
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() throws DatabaseException
DatabaseException
public int getEntriesCounted()
public int getNonObsoleteCount()
public void reset()
public void add(FileSummary 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 java.lang.String toString()
toString
in class java.lang.Object