org.terrier.structures.collections
Class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<IK,IV>
          extended by org.terrier.structures.collections.FSOrderedMapFile.MapFileInMemory<IK,IV>
All Implemented Interfaces:
Serializable, Cloneable, Map<IK,IV>, NavigableMap<IK,IV>, SortedMap<IK,IV>
Enclosing class:
FSOrderedMapFile<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>

public static class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
extends TreeMap<IK,IV>
implements Map<IK,IV>

MapFileInMemory class

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
FSOrderedMapFile.MapFileInMemory(DataInputStream dataInputStream, int length, FixedSizeWriteableFactory<IK> keyfactory, FixedSizeWriteableFactory<IV> valuefactory)
          constructor
FSOrderedMapFile.MapFileInMemory(String filename, FixedSizeWriteableFactory<IK> _keyFactory, FixedSizeWriteableFactory<IV> _valueFactory)
          constructor
 
Method Summary
 void clear()
           
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

FSOrderedMapFile.MapFileInMemory

public FSOrderedMapFile.MapFileInMemory(String filename,
                                        FixedSizeWriteableFactory<IK> _keyFactory,
                                        FixedSizeWriteableFactory<IV> _valueFactory)
                                 throws IOException
constructor

Parameters:
filename -
_keyFactory -
_valueFactory -
Throws:
IOException

FSOrderedMapFile.MapFileInMemory

public FSOrderedMapFile.MapFileInMemory(DataInputStream dataInputStream,
                                        int length,
                                        FixedSizeWriteableFactory<IK> keyfactory,
                                        FixedSizeWriteableFactory<IV> valuefactory)
                                 throws IOException
constructor

Parameters:
dataInputStream -
length -
keyfactory -
valuefactory -
Throws:
IOException
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
Overrides:
clear in class TreeMap<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>


Terrier 3.6. Copyright © 2004-2011 University of Glasgow