jdbm.helper
Interface JdbmBase<K,V>

Type Parameters:
K - key type
V - value type
All Known Subinterfaces:
PrimaryHashMap<K,V>, PrimaryMap<K,V>, PrimaryStoreMap<K,V>, PrimaryTreeMap<K,V>
All Known Implementing Classes:
AbstractPrimaryMap, BTree, BTreeSecondarySortedMap, BTreeSortedMap, HTree, HTreeMap, HTreeSecondaryMap, PrimaryStoreMapImpl

public interface JdbmBase<K,V>

common interface for Trees and PrimaryMaps

Author:
Jan Kotek

Method Summary
 void addRecordListener(RecordListener<K,V> listener)
          add RecordListener which is notified about record changes
 V find(K k)
          Find Value for given Key
 RecordManager getRecordManager()
           
 void removeRecordListener(RecordListener<K,V> listener)
          remove RecordListener which is notified about record changes
 

Method Detail

getRecordManager

RecordManager getRecordManager()
Returns:
underlying record manager

addRecordListener

void addRecordListener(RecordListener<K,V> listener)
add RecordListener which is notified about record changes

Parameters:
listener -

removeRecordListener

void removeRecordListener(RecordListener<K,V> listener)
remove RecordListener which is notified about record changes

Parameters:
listener -

find

V find(K k)
       throws java.io.IOException
Find Value for given Key

Parameters:
k - key
Returns:
value or null if not found
Throws:
java.io.IOException


Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net