org.siebengeisslein.indexedlist
Class RefKeys

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.indexedlist.RefKeys
All Implemented Interfaces:
Instrumented, BTreeNodeKeys<Ref>

public class RefKeys
extends Persistent
implements BTreeNodeKeys<Ref>


Constructor Summary
RefKeys(int nodeSize)
           
 
Method Summary
 int findIndex(Ref key)
           
 int findIndex(Ref key, java.util.Comparator<Ref> c)
          This code is duplicated in all BTreeNodeKeys implementations for performance reasons (replacing keys[pos] with get(pos) would result in an additional readLock() call on the keys).
 Ref get(int i)
           
 Ref getLastKey()
           
 int getMaxSize()
           
 int insert(Ref key)
           
 void remove(int index)
           
 void set(int index, Ref key)
           
 int size()
           
 BTreeNodeKeys split(int splitIndex)
           
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefKeys

public RefKeys(int nodeSize)
Method Detail

get

public Ref get(int i)
Specified by:
get in interface BTreeNodeKeys<Ref>

getMaxSize

public int getMaxSize()
Specified by:
getMaxSize in interface BTreeNodeKeys<Ref>

size

public int size()
Specified by:
size in interface BTreeNodeKeys<Ref>

insert

public int insert(Ref key)
Specified by:
insert in interface BTreeNodeKeys<Ref>

set

public void set(int index,
                Ref key)
Specified by:
set in interface BTreeNodeKeys<Ref>

findIndex

public int findIndex(Ref key)
Specified by:
findIndex in interface BTreeNodeKeys<Ref>

getLastKey

public Ref getLastKey()
Specified by:
getLastKey in interface BTreeNodeKeys<Ref>

split

public BTreeNodeKeys split(int splitIndex)
Specified by:
split in interface BTreeNodeKeys<Ref>

remove

public void remove(int index)
Specified by:
remove in interface BTreeNodeKeys<Ref>

findIndex

public int findIndex(Ref key,
                     java.util.Comparator<Ref> c)
This code is duplicated in all BTreeNodeKeys implementations for performance reasons (replacing keys[pos] with get(pos) would result in an additional readLock() call on the keys).

Specified by:
findIndex in interface BTreeNodeKeys<Ref>