jdbm.btree
Class BTreeSecondarySortedMap<A,K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by jdbm.helper.AbstractPrimaryMap<K,V>
          extended by jdbm.btree.BTreeSortedMap<A,java.lang.Iterable<K>>
              extended by jdbm.btree.BTreeSecondarySortedMap<A,K,V>
All Implemented Interfaces:
java.util.Map<A,java.lang.Iterable<K>>, java.util.SortedMap<A,java.lang.Iterable<K>>, JdbmBase<A,java.lang.Iterable<K>>, PrimaryHashMap<A,java.lang.Iterable<K>>, PrimaryMap<A,java.lang.Iterable<K>>, PrimaryTreeMap<A,java.lang.Iterable<K>>, SecondaryTreeMap<A,K,V>

public class BTreeSecondarySortedMap<A,K,V>
extends BTreeSortedMap<A,java.lang.Iterable<K>>
implements SecondaryTreeMap<A,K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
BTreeSecondarySortedMap(BTree<A,java.lang.Iterable<K>> tree, JdbmBase<K,V> b)
           
 
Method Summary
 V getPrimaryValue(K k)
          Convert primary key to primary value.
 java.lang.Iterable<V> getPrimaryValues(A a)
          Returns values from primary map which are matching given secondary key
 
Methods inherited from class jdbm.btree.BTreeSortedMap
addRecordListener, clear, comparator, containsKey, entrySet, firstKey, get, getRecordManager, getTree, headMap, inBounds, lastKey, newIntegerKey, newLongKey, put, remove, removeRecordListener, subMap, tailMap
 
Methods inherited from class jdbm.helper.AbstractPrimaryMap
find, inverseHashView, secondaryHashMap, secondaryHashMap, secondaryHashMapManyToOne, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne
 
Methods inherited from class java.util.AbstractMap
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.SortedMap
comparator, entrySet, firstKey, headMap, keySet, lastKey, subMap, tailMap, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 
Methods inherited from interface jdbm.PrimaryMap
inverseHashView, secondaryHashMap, secondaryHashMap, secondaryHashMapManyToOne, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne
 
Methods inherited from interface jdbm.helper.JdbmBase
find
 

Constructor Detail

BTreeSecondarySortedMap

public BTreeSecondarySortedMap(BTree<A,java.lang.Iterable<K>> tree,
                               JdbmBase<K,V> b)
Method Detail

getPrimaryValue

public V getPrimaryValue(K k)
Description copied from interface: SecondaryTreeMap
Convert primary key to primary value. This will query primary table and returns result, it is little shortcut.

Specified by:
getPrimaryValue in interface SecondaryTreeMap<A,K,V>
Parameters:
k - primary key
Returns:
value from primary table

getPrimaryValues

public java.lang.Iterable<V> getPrimaryValues(A a)
Description copied from interface: SecondaryTreeMap
Returns values from primary map which are matching given secondary key

Specified by:
getPrimaryValues in interface SecondaryTreeMap<A,K,V>
Returns:
Iterable over values, this never returns null.


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