public class TrackedFileSummary extends FileSummary
The methods in this class for reading obsolete offsets may be used by multiple threads without synchronization even while another thread is adding offsets. This is possible because elements are never deleted from the lists. The thread adding obsolete offsets does so under the log write latch to prevent multiple threads from adding concurrently.
obsoleteINCount, obsoleteLNCount, obsoleteLNSize, obsoleteLNSizeCounted, totalCount, totalINCount, totalINSize, totalLNCount, totalLNSize, totalSize
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowFlush()
Returns whether this summary is allowed or prohibited from being flushed
or evicted during cleaning.
|
long |
getFileNumber()
Returns the file number being tracked.
|
long[] |
getObsoleteOffsets()
Returns obsolete offsets as an array of longs, or null if none.
|
void |
reset()
Overrides reset for a tracked file, and is called when a FileSummaryLN
is written to the log.
|
add, dumpLog, getEntriesCounted, getLogSize, getNonObsoleteCount, getObsoleteINSize, getObsoleteLNSize, getObsoleteSize, getTransactionId, isEmpty, readFromLog, toString, writeToLog
public boolean getAllowFlush()
public long getFileNumber()
public void reset()
Must be called under the log write latch.
reset
in class FileSummary
public long[] getObsoleteOffsets()