com.sleepycat.je.cleaner
Class PackedObsoleteInfo
java.lang.Object
java.io.OutputStream
com.sleepycat.util.FastOutputStream
com.sleepycat.bind.tuple.TupleOutput
com.sleepycat.je.cleaner.PackedObsoleteInfo
- All Implemented Interfaces:
- Closeable, Flushable
public class PackedObsoleteInfo
- extends TupleOutput
A sequence of obsolete info.
To save memory, a TupleOutput is used to contain a sequence of {LSN-file,
LSN-offset, isLN, size} tuples. Packed integers are used and memory is saved
by not using an Object for each tuple, as would be needed in a Java
collection.
An OffsetList was not used because it does not use packed integers.
PackedOffsets was not used because it depends on offsets being sorted in
ascending order.
Methods inherited from class com.sleepycat.bind.tuple.TupleOutput |
getBigDecimalMaxByteLength, getBigIntegerByteLength, getSortedBigDecimalMaxByteLength, writeBigDecimal, writeBigInteger, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeFloat, writeInt, writeLong, writePackedInt, writePackedLong, writeShort, writeSortedBigDecimal, writeSortedDouble, writeSortedFloat, writeSortedPackedInt, writeSortedPackedLong, writeString, writeString, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort |
Methods inherited from class com.sleepycat.util.FastOutputStream |
addSize, getBufferBytes, getBufferLength, getBufferOffset, makeSpace, reset, size, toByteArray, toString, toString, write, write, write, writeFast, writeFast, writeFast, writeTo |
PackedObsoleteInfo
public PackedObsoleteInfo()
getMemorySize
public int getMemorySize()
copyObsoleteInfo
public void copyObsoleteInfo(PackedObsoleteInfo other)
addObsoleteInfo
public void addObsoleteInfo(long obsoleteLsn,
boolean isObsoleteLN,
int obsoleteSize)
countObsoleteInfo
public void countObsoleteInfo(UtilizationTracker tracker,
DatabaseImpl nodeDb)
Copyright (c) 2004-2012 Oracle. All rights reserved.