|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.OffsetList
class OffsetList
List of LSN offsets as a linked list of segments. The reasons for using a list of this type and not a java.util.List are:
The algorithms here use traversal of the list segments rather than recursion to avoid using a lot of stack space.
Field Summary | |
---|---|
(package private) static int |
SEGMENT_CAPACITY
|
Constructor Summary | |
---|---|
OffsetList()
|
Method Summary | |
---|---|
(package private) boolean |
add(long value,
boolean checkDupOffsets)
Adds the given value and returns whether a new segment was allocated. |
(package private) boolean |
contains(long offset)
Returns whether this list contains the given offset. |
(package private) boolean |
merge(OffsetList other)
Merges the given list and returns whether a segment was freed. |
(package private) long[] |
toArray()
Returns an array of all values as longs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int SEGMENT_CAPACITY
Constructor Detail |
---|
OffsetList()
Method Detail |
---|
boolean add(long value, boolean checkDupOffsets)
boolean merge(OffsetList other)
long[] toArray()
boolean contains(long offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |