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.
|
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer buf,
byte entryVersion)
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
DatabaseExceptionpublic int getEntriesCounted()
public int getNonObsoleteCount()
public void reset()
public void add(FileSummary o)
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer buf)
LoggablewriteToLog in interface Loggablebuf - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer buf,
byte entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, byte)public void dumpLog(java.lang.StringBuffer buf,
boolean verbose)
LoggabledumpLog in interface Loggablebuf - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableAlways return false, this item should never be compared.public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004,2008 Oracle. All rights reserved.