org.terrier.structures.collections
Class FSOrderedMapFile.MapFileInMemory<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<IK,IV>
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
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 interface java.util.Map |
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
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
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