com.sleepycat.je.cleaner
Class OffsetList.Segment

java.lang.Object
  extended by com.sleepycat.je.cleaner.OffsetList.Segment
Enclosing class:
OffsetList

public static class OffsetList.Segment
extends Object

One segment of a OffsetList containing at most SEGMENT_CAPACITY values. public for Sizeof.


Constructor Summary
OffsetList.Segment()
           
 
Method Summary
(package private)  OffsetList.Segment add(long value)
          Call this method on the tail.
(package private)  long get(int i)
          Returns the value at the given index from this segment only.
(package private)  OffsetList.Segment next()
          Returns the next segment or null if this is the tail segment.
(package private)  void setNext(OffsetList.Segment next)
          Sets the next pointer during a merge.
(package private)  int size()
          Returns the number of values in this segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffsetList.Segment

public OffsetList.Segment()
Method Detail

add

OffsetList.Segment add(long value)
Call this method on the tail. The new tail is returned, if allocating a new tail is necessary.


get

long get(int i)
Returns the value at the given index from this segment only.


next

OffsetList.Segment next()
Returns the next segment or null if this is the tail segment.


setNext

void setNext(OffsetList.Segment next)
Sets the next pointer during a merge.


size

int size()
Returns the number of values in this segment.



Copyright 2004,2008 Oracle. All rights reserved.