|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.OffsetList
public 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.
Nested Class Summary | |
---|---|
static class |
OffsetList.Segment
One segment of a OffsetList containing at most SEGMENT_CAPACITY values. |
Field Summary | |
---|---|
(package private) static int |
SEGMENT_CAPACITY
|
(package private) static int |
TOO_BIG_FOR_SELF_CHECK
|
Constructor Summary | |
---|---|
OffsetList()
|
Method Summary | |
---|---|
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. |
int |
size()
|
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
static final int TOO_BIG_FOR_SELF_CHECK
Constructor Detail |
---|
public OffsetList()
Method Detail |
---|
public boolean add(long value, boolean checkDupOffsets)
public int size()
boolean merge(OffsetList other)
public long[] toArray()
boolean contains(long offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |