E
- The type for the stored element (either a value or a page)K
- The type of the BTree keyV
- The type of the BTree valuepublic class ReferenceHolder<E,K,V> extends Object implements ElementHolder<E,K,V>
Constructor and Description |
---|
ReferenceHolder(BTree<K,V> btree,
E element,
long offset,
long lastOffset)
Create a new holder storing an offset and a SoftReference containing the element.
|
public E getValue(BTree<K,V> btree) throws EndOfFileExceededException, IOException
getValue
in interface ElementHolder<E,K,V>
btree
- The Btree storing the elementIOException
EndOfFileExceededException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.