jdbm.btree
Class BTreeSecondarySortedMap<A,K,V>
java.lang.Object
java.util.AbstractMap<K,V>
jdbm.helper.AbstractPrimaryMap<K,V>
jdbm.btree.BTreeSortedMap<A,java.lang.Iterable<K>>
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 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> |
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, comparator, containsKey, entrySet, firstKey, get, getRecordManager, getTree, headMap, inBounds, lastKey, newIntegerKey, newLongKey, put, remove, removeRecordListener, subMap, tailMap |
Methods inherited from class java.util.AbstractMap |
clear, 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 |
BTreeSecondarySortedMap
public BTreeSecondarySortedMap(BTree<A,java.lang.Iterable<K>> tree,
JdbmBase<K,V> b)
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